Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Moohwan
 
Posts: n/a
Default how to get covariance of the estimated coefficients using excel

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
robert111
 
Posts: n/a
Default how to get covariance of the estimated coefficients using excel


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


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=529497

  #3   Report Post  
Posted to microsoft.public.excel.misc
Jerry W. Lewis
 
Posts: n/a
Default how to get covariance of the estimated coefficients using excel

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

"Moohwan" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jerry W. Lewis
 
Posts: n/a
Default how to get covariance of the estimated coefficients using exce

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

Jerry

"Jerry W. Lewis" wrote:

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

"Moohwan" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.misc
Jerry W. Lewis
 
Posts: n/a
Default how to get covariance of the estimated coefficients using exce

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

Jerry

"robert111" wrote:


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


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=529497

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 08:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"