how to get covariance of the estimated coefficients using excel

G

Guest

I would like to report the estimated variances and covariances of the
estimated coefficients from regression using excel.
How could I do that?
 
R

robert111

If you know the statistical formulas for these, write appropriat
formulas. I know Excel does linear regression and has slope an
intercept functions but not sure about multiple regression, check tool
add-ins
 
G

Guest

Standard errors of estimates (square root of variances) are given by LINEST
with the optional 4th argument set to TRUE. Covariances are not natively
available, but can be calculated from first principles.

For simple linear regression, the covariance between slope and intercept
estimates is
=-1/sqrt(1+CVx^2)
where CVx is =STDEVP(xdata)/AVERAGE(xdata)

For more general models that are linear in the unknowns, the covariance
matrix for estimates is
MINVERSE(MMULT(TRANSPOSE(xmatrix),xmatrix))*S^2
where S is the standard deviation given by LINEST with the optional 4th
argument set to TRUE. As a calculation, this can run into numerical problems
with complicated models. If you have Excel 2003, compare the variance of
estimates from this calculation with what LINEST returns; if they do not
agree, then this approach needs more numeric precision than is available in
Excel (Excel like most software uses IEEE double precision).

Jerry
 
G

Guest

For truth in advertising, note that -1/sqrt(1+CVx^2) is the correlation, not
the covariance between slope and intercept estimates.

Jerry
 
G

Guest

LINEST does multiple regression, as does the Regression tool in the Analysis
ToolPak. Neither gives the covariance of estimates.

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top