+ Reply to Thread
Results 1 to 3 of 3

Using LINEST to derive a multiple polynomial equation

  1. #1
    Registered User
    Join Date
    12-06-2014
    Location
    Nigeria
    MS-Off Ver
    2013
    Posts
    2

    Using LINEST to derive a multiple polynomial equation

    Hello,

    I am using LINEST to derive a formula for y from an array of known y values and two input parameters, x1 and x2.

    Since y varies non-linearly with both x1 and x2, I have added two more input parameters x1^2 and x2^2.

    I am getting fairly good correlation, but I am wondering if I can further improve the correlation by adding more input parameters such as x1^3, x2^3, or even x1*x2?

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

    Re: Using LINEST to derive a multiple polynomial equation

    The short answer to your question is, yes. Adding another parameter to your regression will almost universally "improve" the fit. And you can continue adding parameters until you reach the point where Excel's (or whatever program you are using for the regression) algorithm rejects additional parameters or becomes numerically unstable, or until you fit the data exactly.

    The longer and harder part of your question is how to truly justify these additional parameters. I am not familiar with them, but I understand that there are statistical tests out there that can be used when deciding if an additional parameter truly improves the fit or not -- is truly "significant" in the regression. For a longer, harder answer to your question, you might search out these tests and study what is meant when a parameter is truly significant and when it is not.

    Another thing I find when I start to get tempted to add cubic and quartic terms to a regression is to wonder if a generic polynomial is the best equation to use for the regression. This further broadens the question beyond "Excel" and into the expected mathematical models that would be expected to represent your data. In the end, your question is not a trivial question, and there is much for you to consider.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-06-2014
    Location
    Nigeria
    MS-Off Ver
    2013
    Posts
    2

    Re: Using LINEST to derive a multiple polynomial equation

    Thank you for your help. I experimented with adding a few variables and as you mentioned it does not make much difference. What was particularly surprising is that when I tried using powers of the variables that one would anticipate as being close approximation to the physical model (in this case x1^2, x2^0.5), it made little or no difference compared to using simply x1^2, x1^3, x2^2,x2^3 etc.

+ 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. LINEST for specifying polynomial regression function
    By InderpalHothi in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-27-2014, 03:11 PM
  2. Converting a polynomial LINEST formula to VBA
    By AARONWEBSTER in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2012, 12:23 PM
  3. Extract polynomial coefficients with LinEst in VBA
    By shamedt in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-22-2011, 08:45 PM
  4. Replies: 5
    Last Post: 06-25-2009, 10:25 AM
  5. [SOLVED] Derive an equation from plotted data
    By jwiam45 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-14-2006, 07:10 PM

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