计量经济第八章_第1页
计量经济第八章_第2页
计量经济第八章_第3页
计量经济第八章_第4页
计量经济第八章_第5页
已阅读5页,还剩24页未读 继续免费阅读

下载本文档

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

文档简介

1、计量经济第八章Introductory Econometrics, Lijun Jia1第1页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia2Lecture Outline 本课提要What is HSK什么是异方差Consequences of HSK异方差的影响HSK-Robust Inference after OLS estimationOLS估计后的“对异方差稳健”统计推断第2页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia3

2、Testing for HSK 检验异方差The Breuschn TestB-P 检验The White TestWhite检验第3页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia4Weighted Least squares加权最小二乘法WLS when HSK is known up to a multiplicative constant 当在比例意义上已知异方差时的加权最小二乘法WLS when HSK is of unknown form: the feasible GLS当异方差具有未知形式时的加权最

3、小二乘法:可行GLS第4页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia5What is Heteroskedasticity (HSK)什么是异方差 Recall the assumption of homoskedasticity implied that conditional on the explanatory variables, the variance of the unobserved error, u, was constant同方差假定意味着条件于解释变量,不可观测误差的方差为常数 If th

4、is is not true, that is if the variance of u is different for different values of the xs, then the errors are heteroskedastic如果u 的方差随x变化,那么误差是异方差的。第5页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia6.Education level primarysecondaryf(y|x)Illustration of Heteroskedasticity异方差图示college.

5、E(y|x) = b0 + b1xwage第6页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia7Why do we care?为何关心异方差?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

6、 or LM statistics for drawing inferences.如果标准差有偏,我们就不能应用通常的t统计量或F统计量来进行统计推断。第7页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia8Testing for HSK检验异方差Reason No. 1: We may prefer to see the usual OLS standard errors and test statistics reported unless there is evidence of heteroskedastic

7、ity.理由1:除非有证据显示异方差存在,我们仍会偏好于常规OLS的标准差及检验统计量。Reason No. 2: If heteroskedasticity is present, the OLS estimator is no longer the BLUE, then it is possible to obtain a better estimator than OLS.理由2:如果异方差存在,OLS不再是BLUE,那么就有可能得到比OLS更好的估计量。第8页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia9

8、The Breuschn Test for HSK用B-P检验异方差 Essentially we want to test H0: Var(u|x1, x2, xk) = s2, ( 8.11)which is equivalent to H0: E(u2|x1, x2, xk) = E(u2) = s2本质上,我们想检验H0: Var(u|x1, x2, xk) = s2 这等价于检验H0: E(u2|x1, x2, xk) = E(u2) = s2 (因为 zero conditional expectation) 第9页,共29页,2022年,5月20日,7点14分,星期三Introd

9、uctory Econometrics, Lijun Jia10If we assume the relationship between u2 and xj will be linear, can test it as a set of linear restrictions如果我们假设u2 和xj之间具有线性关系,则可以通过一组线性约束来完成检验。 So, for u2 = d0 + d1x1 + dk xk + v (8.12) this means testing H0: d1 = d2 = = dk = 0 (8.13)所以, 对于 u2 = d0 + d1x1 + dk xk +

10、v 这意味着检验 H0: d1 = d2 = = dk = 0第10页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia11The Breuschn Test for HSK用B-P检验检验异方差Under the null hypothesis, it is often reasonable to assume that the error v is independent of x1 , xk . 在零假设下,通常可以假定误差v与x1 , xk独立 Then either F or LM statistics fo

11、r overall significance of the independent variables in explaining u2 can be used to test HSK.那么,如果将u2视为被解释变量,检验全部解释变量显著性的F 统计量就可以用来检验异方差。They are asymptotically valid test since u2 is not normally distributed in the sample.由于u2在样本中不是正态分布,这些统计量只在渐近的意义下适用。第11页,共29页,2022年,5月20日,7点14分,星期三Introductory Ec

12、onometrics, Lijun Jia12The Breuschn Test for HSK用B-P检验异方差The error cannot be observed by can be estimated from OLS residuals.不可观测的误差可以通过OLS残差进行估计。 After regressing the residuals squared on all of the xs, can use the R2 to form an F or LM test.将残差平方对所有的 x 回归之后,可以通过R2构造F 检验。( 8.15) 第12页,共29页,2022年,5月2

13、0日,7点14分,星期三Introductory Econometrics, Lijun Jia13The Breuschn Test for HSK用B-P检验异方差第13页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia14The Breuschn Test for HSK用B-P检验检验异方差第14页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia15The Breuschn Test for HSK用B-P检验检验异方差第15页,共

14、29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia165.然后看F和LM值的大小,或者对应的p值。如果F和LM值很大或者p值很小,则可以拒绝零假设! 第16页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia17The White Test for HSK用White检验检验异方差 The Breusch-Pagan test will detect any linear forms of heteroskedasticityB-P检验可以识别任意

15、线性形式的异方差 The White test allows for nonlinearities by using squares and cross products of all the xsWhite检验通过加入 x 平方项和交叉项引入了一定的非线性。 Still just using an F or LM to test whether all the xj, xj2, and xjxh are jointly significant仍然是用F和LM检验来检验xj, xj2 , xjxh是否联合显著第17页,共29页,2022年,5月20日,7点14分,星期三Introductory

16、 Econometrics, Lijun Jia18The White Test for HSK用White检验检验异方差This can get to be unwieldy pretty quickly.这个办法很快就会显出其笨重之处。For example, if we have three explanatory variables, x1 ,x2 , and x3then the White test will have 9 restrictions: 3 on levels, 3 on squares, and 3 on cross-products.例如,如果我们有三个解释变量x

17、1 ,x2 , x3那么White检验有9个约束,三个对线性项,三个对平方项,三个对交叉项。(如8.19) With small samples, degrees of freedom will soon be run out with more regressors.在小样本情形,自由度将会随着解释变量数目增加而迅速减少。第18页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia19Alternate form of the White testWhite检验的变形 Consider that the fitted

18、values from OLS, , are a function of all the xs考虑到OLS的预测值是所有x的函数。 Thus, 2 will be a function of the squares and cross products. Therefore, and 2 can proxy for all of the xj, xj2, and xjxh. 因此, 2是平方项和交叉项的函数。 和 2可以用来替代所有的xj, xj2, xjxh第19页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia2

19、0Alternate form of the White testWhite检验的变形Regress the residuals squared on and 2 and use the R2 to form an F or LM statistic,将残差平方对 和 2回归(8.20), 用R2来构建F或LM统计量Now we only need to test 2 restrictions now.现在只需要检验两个约束Page 283 检验过程! 第20页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia21Wh

20、ite testKeep the R-squared from this regression,第21页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia22Weighted Least Squares加权最小二乘法 While its always possible to estimate robust standard errors for OLS estimates, if we know something about the specific form of the heteroskedasticity, w

21、e can transform the model into one that has homoskedastic errors called weighted least squares.对OLS估计稳健标准差总是可能办到的,但是,如果我们知道一些关于异方差结构的信息,我们可以将原模型转化为具有同方差的新模型,这称为加权最小二乘法。第22页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia23Weighted Least Squares加权最小二乘法In such cases weighted Least squar

22、es is more efficient estimates than OLS, and it produces t and F statistics that have t and F distributions.在这些情况中,加权最小二乘法比OLS更为有效。对应的t 和 F 统计量具有t 和 F 分布。第23页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia24Generalized Least Squares广义最小二乘法 Estimating the transformed equation by OLS i

23、s an example of generalized least squares (GLS) 通过OLS估计变换后的方程可以作为广义最小二乘法(GLS)的一个例子 GLS will be BLUE in this caseGLS在这种情形下为BLUE GLS is a weighted least squares (WLS) procedure where each squared residual is weighted by the inverse of Var(ui|xi) GLS是加权最小二乘法(WLS)在权重为Var(ui|xi)倒数时的特例。第24页,共29页,2022年,5月2

24、0日,7点14分,星期三Introductory Econometrics, Lijun Jia25Weighted Least Squares加权最小二乘法 While it is intuitive to see why performing OLS on a transformed equation is appropriate, it can be tedious to do the transformation尽管对变换后的模型做OLS是直观的,但是变换本身可能很繁琐。 Weighted least squares is a way of getting the same thing

25、, without the transformation 加权最小二乘法可以完成相同的目的,但是不需要进行变换。 Idea is to minimize the weighted sum of squares (weighted by 1/hi)想法是最小化加权平方和(权重为1/hi )第25页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics, Lijun Jia26Weighted Least Squares加权最小二乘法第26页,共29页,2022年,5月20日,7点14分,星期三Introductory Econometrics,

26、Lijun Jia27Feasible GLS可行GLS More typical is the case where you dont know the form of the heteroskedasticity更典型的情形是你并不知道异方差的形式 In this case, you need to estimate h(xi)此时,你需要估计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 be estimated 由于d未知,我们必须对它进行估计。第27页,共29页,2022年,5月20日,7点14分,星期三Intr

温馨提示

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

评论

0/150

提交评论