Autocorrelation.ppt
《Autocorrelation.ppt》由会员分享,可在线阅读,更多相关《Autocorrelation.ppt(20页珍藏版)》请在麦多课文档分享上搜索。
1、Autocorrelation,Outline 1) What is it? 2) What are the consequences for our Least Squares estimator when we have an autocorrelated error? 3) How do we test for an autocorrelated error? 4) How do we correct a model that has an autocorrelated error?,What is Autocorrelation?,Linear Regression Model y =
2、 1 + 2x + e Error Term has a mean of zero: E(e) = 0 E(y) = 1 + 2x Error term has constant variance: Var(e) = E(e2) = 2 Error term is not correlated with itself (no serial correlation): Cov(ei,ej) = E(eiej) = 0 ij Data on X are not random and thus are uncorrelated with the error term: Cov(X,e) = E(Xe
3、) = 0,Review the assumption of Gauss-Markov,This is the assumption of a serially uncorrelated error. The error is assumed to be independent of its past; it has no memory of its past values. It is like flipping a coin.,A a serial correlated error (a.k.a. autocorrelated error) is one that has a memory
4、 of its past values. It is correlated with itself.,Autocorrelation is more commonly a problem for time-series data.,An example of an autocorrelated error:Here we have = 0.8. It means that 80% of the error in period t-1 is still felt in period t. The error in period t is comprised of 80% of last peri
5、ods error plus an error that is unique to period t. This is sometimes called an AR(1) model for “autoregressive of the first order”The autocorrelation coefficient must lie between 1 and 1: -1 1Anything outside this range is unstable and very unlikely for economic models,Autocorrelation can be positi
6、ve or negative: if 0 we say that the error has positive autocorrelation. A graph of the errors shows a tracking pattern:if 0 we say that the error has negative autocorrelation. A graph of the errors shows an oscillating pattern:In general measures the strength of the correlation between the errors a
7、t time t and their values lagged one period. There can be higher orders such as a second order AR(2) model:,The mean, variance and covariance for an AR(1) error:,What are the Implications for Least Squares?,We have to ask “where did we used the assumption”? Or “why was the assumption needed in the f
8、irst place?”We used the assumption in the derivation of the variance formulas for the least squares estimators, b1 and b2. For b2 this was,The assumption of a serially uncorrelated error is made when we say that the variance of a sum is equal to the sum of the variances. This is true only if the ran
9、dom variables are uncorrelated. See Chapter 2, pg. 31.,The proof that the least squares estimators is unbiased did not use the assumption of serially uncorrelated errors; therefore, this property of least squares continues to hold even in the presence of a autocorrelated error. The “B” in BLUE of th
10、e Gauss-Markov Theorem no longer holds. The variance formulas for the least squares estimators are incorrect invalidates hypoth tests and confidence intervals.,The large term in brackets shows how the Var(b2) formula changes to allow for an autocorrelated error.,The “correct” variance formula:,If 0
11、which is typically the case for economic models, it can be shown that the “incorrect” Var(b2) “correct” Var(b2).If we ignore the problem and use the “incorrect” Var(b2) we will overstate the reliability of the estimates, because we will report a standard error that is too small. The t-statistics wil
12、l be “falsely” large, leading to a false sense of precision.,How to Test for Autocorrelation,We test for autocorrelation similar to how we test for a heteroskedastic error: estimate the model using least squares and examine the residuals for a pattern.Visual Inspection: Plot residuals against time.
13、Do they have a systematic pattern that indicates a tracking pattern (for positive autocorrelation) or an oscillating pattern (for negative autocorrelation)?Example: a model of Job Vacancies and the Unemployment RatePage 278, Exercise 12.3ln(JV)t = 1 + 2 ln(U)t + etWhere JV are job vacancies, U is th
14、e unemployment rate.,Sum of Mean Source DF Squares Square F Value Pr FModel 1 8.72001 8.72001 107.36 |t|Intercept 1 3.50270 0.28288 12.38 .0001lu 1 -1.61159 0.15554 -10.36 .0001,ln(JV)t = 3.503 1.612 ln(U)t,2) Formal Test: Durbin-Watson Test This test is based on the residuals from the least squares
15、 regression. (remember that our test for heteroskedasticity was also based on the residuals from a least squares regression)If the error term has first-order serial correlation, et = et-1 + vt The residuals at t and t-1 ought to be correlated. Ho: = 0H1: 0 (positive autocorrelation is more likely in
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- AUTOCORRELATIONPPT
