+ Reply to Thread
Results 1 to 3 of 3

Get polynomial regression coefficients excel

  1. #1
    Registered User
    Join Date
    09-08-2021
    Location
    Blerick
    MS-Off Ver
    MS 365
    Posts
    1

    Get polynomial regression coefficients excel

    Hi,

    I want to reproduce the regression coefficients one by one without using the scatterplot.

    I did this allready for the 1st order regression but want to do this as-well for the 3d order regression. Can anyone tell me how to calculate each coefficient individual?

    For example:

    Kolom A Kolom B
    2 0,5
    10 1,2
    21 3,2
    25 5
    41 5,5
    41 9
    43 9,3
    51 9,8
    55 11
    65 10
    67 11
    82 11,9
    86 12
    86 14,2
    90 15
    93 15,6

    1st order = 0,1532x + 0,7947
    where 0,1532 is the intercept and 0,7947 is the slope of the line
    which can be calculated with =INTERCEPT and =SLOPE.

    3d order is 0,00001x^3-0,0027x^2+0,2977x-0,9103
    How can I calculate those individual?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,979

    Re: Get polynomial regression coefficients excel

    There is no 2020 version of Excel - if you have MS365, please update your profile.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,432

    Re: Get polynomial regression coefficients excel

    You can use the LINEST() function to get the coefficients of any linear* function, including polynomials. The helpfile shows an example for a 3rd order polynomial (https://support.microsoft.com/en-us/...a-fa7abf772b6d towards the end of the Remarks section just before the Examples section).

    Something like =LINEST(known_y's,known_x's^{1,2,3,4}) for a 4th order polynomial.
    Something like =LINEST(ln(known_y's),ln(known_x's)) will give you a power trendline [ln(y)=m*ln(x)+b]
    Other variations are possible, the only limitation is the your regression equation must be linear or transformable into something linear*.

    * -- Note that for our purposes here, linear is much more than straight lines, but refers to the definition of linear function that you would learn in linear algebra.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel Solver-Polynomial Coefficients Resolved to Zero
    By at1597 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2021, 02:07 PM
  2. Replies: 4
    Last Post: 12-04-2014, 10:16 AM
  3. Polynomial coefficients
    By kc27315 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2008, 04:51 PM
  4. how to get coefficients for Polynomial regression as for rgp()
    By AZ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2006, 08:30 AM
  5. [SOLVED] How to calculate polynomial regression coefficients
    By Joham Shason via OfficeKB.com in forum Excel General
    Replies: 8
    Last Post: 08-08-2005, 07:05 PM
  6. Replies: 1
    Last Post: 01-12-2005, 06:35 PM
  7. extract coefficients of polynomial regression?
    By shepman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2005, 12:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1