+ Reply to Thread
Results 1 to 3 of 3

Adding a Polynomial Trendline Using Linest

  1. #1
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Adding a Polynomial Trendline Using Linest

    Hi everyone,

    I've been trying to generate a decent trendline for a graph that requires non-linear regression not available in excel. My idea was to add a cubic polynomial trendline that would fit the data well, but only if I exclude certain points. I manager to find the formula for this curve using LINEST, and I'm wondering if there is any way I can add a custom trendline to my chart using the formula.

    Thanks in advance,
    Daniel

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,849

    Re: Adding a Polynomial Trendline Using Linest

    Here's how I do it (note that almost all of the work is in the spreadsheet and not in the chart):

    1) Enter LINEST() function in the spreadsheet (a cubic polynomial will require a horizontal array of 4 cells, unless you are also outputting the additional statistics).
    2) Add a column of X values spanning the desired range of x values on the chart.
    3) Add a column adjacent to those X values to compute the regressed Y values (some form of =Ax^3+Bx^2+Cx+D with appropriate references to the LINEST() output and the column of X values.
    4) Go into the chart -> Select Data -> New Series -> select the appropriate ranges for X values (step 2) and Y values (step 3).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Adding a Polynomial Trendline Using Linest

    That makes a lot of sense! Thanks a lot

+ 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] Difference between trendline result in a graph and LINEST (polynomial 4 example)
    By derik111 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2012, 04:26 AM
  2. Want to easily change my polynomial trendline using linest
    By baxter78 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-02-2010, 01:30 AM
  3. [SOLVED] Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. [SOLVED] Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-01-2005, 04:05 AM

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