How to use Excel’s LINEST() function to return multivariate regression - 10 min. screencast
by David Harper, CFA, FRM, CIPM
I like the LINEST() function for regression results because it's dynamic. You don't need to re-run it if the data changes. To illustrate, I am using Gujarati's dataset: a hypothetical antique clock auction. The dependent variable is the price paid for an antique clock, by the winning bidder. The independent or explanatory variables are the age of the clock (X2) and the number of bidders (X3):
LINEST() returns an array. Before entering, select a RANGE. And to finish the formula, don't finish with the ENTER key. Finish with CTRL+SHIFT+ENTER.
A few things about the output:
- It is a three-variable regression (one dependent, Y, plus two independents). So, the d.f. are 29 (32 observations - 3) and the regression has four (not three) standard errors: there is a standard error for each variable plus a standard error for the slope coefficient.
- The first two rows are telling:
- The first row contains the coefficients. In this case, the line is: Y = -1336 + 12.7(X2) + 85.8(X3)
- The second row contains corresponding standard errors (the standard deviations of the sample variation in the coefficients). We can divide the second row into the first row to obtain computed (student's) t values. For example, 85.764/8.802 = 9.7. That's far greater than 2.x, so this tells us the X3 coefficient (number of bidders) is statistically significant. In other words, its true value is probably not zero.
Here is the screencast:


Comments
wow, thanks a ton,
it really saved a lot of time, to do the regression of multiparamter dependent variable ,
after having it linearised in its domain, for the exponential domain, of variance.
Thank Mr. Harper!
Well explained! 2 thumbs up for your patience and presentation!
pretty sweet! this really helped. thanks for making this!
Thanks a lot! Great work!
Hi !
I am unable to do this. Getting some error. Can u pls help me with this?
This was an excellent tutorial. Thank you very much David!
Hey, thx for the very nice video. Yet, I have one follow up question. Maybe someone can help me. Is there the possibility to do the linest funktion and tell the system to only produce specific values? For example, I have a very large dataset which would ask me to re-do this procedure 7000 times. Yet, I only need the intercept and the standard error of the regression.
Any idea is highly appreciated!!!
Best,
CFWF
What is the limit to the number of independent variables when using the LINEST function in Excel? I was able to get it to work fine at 16, but not at all with 32. Do you have any suggestions on how to handle a model with 96 independent variables?
That was the most helpful explaination of linest. Thank you! I particularily liked the fact that you rephrased the terminology a number of times to make the concept “stick.”
Leave a Comment