伍德里奇计量经济学讲义3.ppt_第1页
伍德里奇计量经济学讲义3.ppt_第2页
伍德里奇计量经济学讲义3.ppt_第3页
伍德里奇计量经济学讲义3.ppt_第4页
伍德里奇计量经济学讲义3.ppt_第5页
已阅读5页,还剩17页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1,Multiple Regression Analysis,y = b0 + b1x1 + b2x2 + . . . bkxk + u 6. Heteroskedasticity,2,What is Heteroskedasticity,Recall the assumption of homoskedasticity implied that conditional on the explanatory variables, the variance of the unobserved error, u, was constant If this is not true, that is

2、if the variance of u is different for different values of the xs, then the errors are heteroskedastic Example: estimating returns to education and ability is unobservable, and think the variance in ability differs by educational attainment,3,.,x,x1,x2,y,f(y|x),Example of Heteroskedasticity,x3,.,.,E(

3、y|x) = b0 + b1x,4,Why Worry About Heteroskedasticity?,OLS is still unbiased and consistent, even if we do not assume homoskedasticity The standard errors of the estimates are biased if we have heteroskedasticity If the standard errors are biased, we can not use the usual t statistics or F statistics

4、 or LM statistics for drawing inferences,5,Variance with Heteroskedasticity,6,Variance with Heteroskedasticity,7,Robust Standard Errors,Now that we have a consistent estimate of the variance, the square root can be used as a standard error for inference Typically call these robust standard errors So

5、metimes the estimated variance is corrected for degrees of freedom by multiplying by n/(n k 1) As n its all the same, though,8,Robust Standard Errors (cont),Important to remember that these robust standard errors only have asymptotic justification with small sample sizes t statistics formed with rob

6、ust standard errors will not have a distribution close to the t, and inferences will not be correct In Stata, robust standard errors are easily obtained using the robust option of reg,9,A Robust LM Statistic,Run OLS on the restricted model and save the residuals Regress each of the excluded variable

7、s on all of the included variables (q different regressions) and save each set of residuals 1, 2, , q Regress a variable defined to be = 1 on 1 , 2 , , q , with no intercept The LM statistic is n SSR1, where SSR1 is the sum of squared residuals from this final regression,10,Testing for Heteroskedast

8、icity,Essentially want to test H0: Var(u|x1, x2, xk) = s2, which is equivalent to H0: E(u2|x1, x2, xk) = E(u2) = s2 If assume the relationship between u2 and xj will be linear, can test as a linear restriction So, for u2 = d0 + d1x1 + dk xk + v) this means testing H0: d1 = d2 = = dk = 0,11,The Breus

9、ch-Pagan Test,Dont observe the error, but can estimate it with the residuals from the OLS regression After regressing the residuals squared on all of the xs, can use the R2 to form an F or LM test The F statistic is just the reported F statistic for overall significance of the regression, F = R2/k/(

10、1 R2)/(n k 1), which is distributed Fk, n k - 1 The LM statistic is LM = nR2, which is distributed c2k,12,The White Test,The Breusch-Pagan test will detect any linear forms of heteroskedasticity The White test allows for nonlinearities by using squares and crossproducts of all the xs Still just usin

11、g an F or LM to test whether all the xj, xj2, and xjxh are jointly significant This can get to be unwieldy pretty quickly,13,Alternate form of the White test,Consider that the fitted values from OLS, , are a function of all the xs Thus, 2 will be a function of the squares and crossproducts and and 2

12、 can proxy for all of the xj, xj2, and xjxh, so Regress the residuals squared on and 2 and use the R2 to form an F or LM statistic Note only testing for 2 restrictions now,14,Weighted Least Squares,While its always possible to estimate robust standard errors for OLS estimates, if we know something a

13、bout the specific form of the heteroskedasticity, we can obtain more efficient estimates than OLS The basic idea is going to be to transform the model into one that has homoskedastic errors called weighted least squares,15,Case of form being known up to a multiplicative constant,Suppose the heterosk

14、edasticity can be modeled as Var(u|x) = s2h(x), where the trick is to figure out what h(x) hi looks like E(ui/hi|x) = 0, because hi is only a function of x, and Var(ui/hi|x) = s2, because we know Var(u|x) = s2hi So, if we divided our whole equation by hi we would have a model where the error is homo

15、skedastic,16,Generalized Least Squares,Estimating the transformed equation by OLS is an example of generalized least squares (GLS) GLS will be BLUE in this case GLS is a weighted least squares (WLS) procedure where each squared residual is weighted by the inverse of Var(ui|xi),17,Weighted Least Squa

16、res,While it is intuitive to see why performing OLS on a transformed equation is appropriate, it can be tedious to do the transformation Weighted least squares is a way of getting the same thing, without the transformation Idea is to minimize the weighted sum of squares (weighted by 1/hi),18,More on

17、 WLS,WLS is great if we know what Var(ui|xi) looks like In most cases, wont know form of heteroskedasticity Example where do is if data is aggregated, but model is individual level Want to weight each aggregate observation by the inverse of the number of individuals,19,Feasible GLS,More typical is t

18、he case where you dont know the form of the heteroskedasticity In this case, you need to estimate h(xi) Typically, we start with the assumption of a fairly flexible model, such as Var(u|x) = s2exp(d0 + d1x1 + + dkxk) Since we dont know the d, must estimate,20,Feasible GLS (continued),Our assumption

19、implies that u2 = s2exp(d0 + d1x1 + + dkxk)v Where E(v|x) = 1, then if E(v) = 1 ln(u2) = a0 + d1x1 + + dkxk + e Where E(e) = 1 and e is independent of x Now, we know that is an estimate of u, so we can estimate this by OLS,21,Feasible GLS (continued),Now, an estimate of h is obtained as = exp(), and the inverse of this is

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论