Professional Documents
Culture Documents
Polynomial Regression
Polynomial Regression
Polynomial Regression
Polynomial regression
Polynomial regression. How can I fit my X, Y data to a polynomial using LINEST? As can be seem from the trendline in the chart below, the data in A2:B5 fits a third order polynomial. You wish to have the coefficients in worksheet cells as shown in A15:D15 or you wish to have the full LINEST statistics as in A17:D21
Note: when the data is in rows rather than columns the array for the powers of x must be a row array. This is achieved by the use of semi-colons as separator. For example =LINEST(ystuff, xstuff^{1;2;3})
For convenience, the ranges A2:A5 and B2:B5 have been named "x" and "y" respectively. Select A15:D15 (you need four columns for the three coefficients plus the intercept), enter the formula =LINEST(y, x^{1, 2, 3}) and press SHIFT+CTRL+ENTER. If you wish to work without range names, use =LINEST(B2:B5,A2:A5^{1, 2, 3}). For the full statistics, select a range of 5 rows by 4 columns, use the formula =LINEST(y, x^{1, 2, 3}, , TRUE) and complete it with SHIFT+CTRL+ENTER.
people.stfx.ca/bliengme/ExcelTips/Polynomial.htm
1/2
21/10/13
Polynomial regression
January 2006
people.stfx.ca/bliengme/ExcelTips/Polynomial.htm
2/2