ECON2228 Notes 10
Christopher F Baum
Boston College Economics
2014–2015
cfb (BC Econ) ECON2228 Notes 10 2014–2015 1 / 48
ECON2228 Notes 10 Christopher F Baum Boston College Economics - - PowerPoint PPT Presentation
ECON2228 Notes 10 Christopher F Baum Boston College Economics 20142015 cfb (BC Econ) ECON2228 Notes 10 20142015 1 / 48 Serial correlation and heteroskedasticity in time series regressions Chapter 12: Serial correlation and
cfb (BC Econ) ECON2228 Notes 10 2014–2015 1 / 48
Serial correlation and heteroskedasticity in time series regressions
cfb (BC Econ) ECON2228 Notes 10 2014–2015 2 / 48
Serial correlation and heteroskedasticity in time series regressions
cfb (BC Econ) ECON2228 Notes 10 2014–2015 3 / 48
Serial correlation and heteroskedasticity in time series regressions
cfb (BC Econ) ECON2228 Notes 10 2014–2015 4 / 48
Serial correlation and heteroskedasticity in time series regressions
cfb (BC Econ) ECON2228 Notes 10 2014–2015 5 / 48
Serial correlation and heteroskedasticity in time series regressions
cfb (BC Econ) ECON2228 Notes 10 2014–2015 6 / 48
Serial correlation and heteroskedasticity in time series regressions
cfb (BC Econ) ECON2228 Notes 10 2014–2015 7 / 48
Serial correlation in the presence of lagged dependent variables
cfb (BC Econ) ECON2228 Notes 10 2014–2015 8 / 48
Serial correlation in the presence of lagged dependent variables
cfb (BC Econ) ECON2228 Notes 10 2014–2015 9 / 48
Serial correlation in the presence of lagged dependent variables
cfb (BC Econ) ECON2228 Notes 10 2014–2015 10 / 48
Serial correlation in the presence of lagged dependent variables
cfb (BC Econ) ECON2228 Notes 10 2014–2015 11 / 48
Serial correlation in the presence of lagged dependent variables
cfb (BC Econ) ECON2228 Notes 10 2014–2015 12 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 13 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 14 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 15 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 16 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 17 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 18 / 48
Testing for first-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 19 / 48
Testing for higher-order serial correlation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 20 / 48
Testing for higher-order serial correlation Breusch–Godfrey and Q tests
cfb (BC Econ) ECON2228 Notes 10 2014–2015 21 / 48
Testing for higher-order serial correlation Breusch–Godfrey and Q tests
cfb (BC Econ) ECON2228 Notes 10 2014–2015 22 / 48
Testing for higher-order serial correlation Breusch–Godfrey and Q tests
cfb (BC Econ) ECON2228 Notes 10 2014–2015 23 / 48
Testing for higher-order serial correlation Breusch–Godfrey and Q tests
cfb (BC Econ) ECON2228 Notes 10 2014–2015 24 / 48
Testing for higher-order serial correlation Breusch–Godfrey and Q tests
. summarize rs r20 Variable Obs Mean
Min Max rs 526 7.651513 3.553109 1.561667 16.18 r20 526 8.863726 3.224372 3.35 17.18 . eststo, ti("OLS VCE"):regress D.rs LD.r20, vsquish Source SS df MS Number of obs = 524 F( 1, 522) = 52.88 Model 13.8769739 1 13.8769739 Prob > F = 0.0000 Residual 136.988471 522 .262430021 R-squared = 0.0920 Adj R-squared = 0.0902 Total 150.865445 523 .288461654 Root MSE = .51228 D.rs Coef.
t P>|t| [95% Conf. Interval] r20 LD. .4882883 .0671484 7.27 0.000 .356374 .6202027 _cons .0040183 .022384 0.18 0.858
.0479921 (est1 stored)
cfb (BC Econ) ECON2228 Notes 10 2014–2015 25 / 48
Testing for higher-order serial correlation Breusch–Godfrey and Q tests
. predict double eps, residual (2 missing values generated) . estat bgodfrey, lags(6) Breusch-Godfrey LM test for autocorrelation lags(p) chi2 df Prob > chi2 6 17.237 6 0.0084 H0: no serial correlation . wntestq eps Portmanteau test for white noise Portmanteau (Q) statistic = 82.3882 Prob > chi2(40) = 0.0001
cfb (BC Econ) ECON2228 Notes 10 2014–2015 26 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 27 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 28 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 29 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 30 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 31 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 32 / 48
Correcting for serial correlation with strictly exogenous regressors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 33 / 48
Correcting for serial correlation with strictly exogenous regressors
. eststo, ti("GLS VCE"): prais D.rs LD.r20, nolog vsquish Prais-Winsten AR(1) regression -- iterated estimates Source SS df MS Number of obs = 524 F( 1, 522) = 25.73 Model 6.56420242 1 6.56420242 Prob > F = 0.0000 Residual 133.146932 522 .25507075 R-squared = 0.0470 Adj R-squared = 0.0452 Total 139.711134 523 .2671341 Root MSE = .50505 D.rs Coef.
t P>|t| [95% Conf. Interval] r20 LD. .3495857 .068912 5.07 0.000 .2142067 .4849647 _cons .0049985 .0272145 0.18 0.854
.0584619 rho .1895324 Durbin-Watson statistic (original) 1.702273 Durbin-Watson statistic (transformed) 2.007414 (est2 stored)
cfb (BC Econ) ECON2228 Notes 10 2014–2015 34 / 48
Robust inference in the presence of autocorrelation
cfb (BC Econ) ECON2228 Notes 10 2014–2015 35 / 48
Robust inference in the presence of autocorrelation Newey–West standard errrors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 36 / 48
Robust inference in the presence of autocorrelation Newey–West standard errrors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 37 / 48
Robust inference in the presence of autocorrelation Newey–West standard errrors
cfb (BC Econ) ECON2228 Notes 10 2014–2015 38 / 48
Robust inference in the presence of autocorrelation Newey–West standard errrors
. eststo, ti("Newey-West"): newey D.rs LD.r20, lag(6) vsquish Regression with Newey-West standard errors Number of obs = 524 maximum lag: 6 F( 1, 522) = 35.74 Prob > F = 0.0000 Newey-West D.rs Coef.
t P>|t| [95% Conf. Interval] r20 LD. .4882883 .0816725 5.98 0.000 .3278412 .6487354 _cons .0040183 .0256542 0.16 0.876
.0544166 (est3 stored)
cfb (BC Econ) ECON2228 Notes 10 2014–2015 39 / 48
Robust inference in the presence of autocorrelation Newey–West standard errrors
. esttab, nonum mti se star(* 0.1 ** 0.05 *** 0.01) OLS VCE GLS VCE Newey-West LD.r20 0.488*** 0.350*** 0.488*** (0.0671) (0.0689) (0.0817) _cons 0.00402 0.00500 0.00402 (0.0224) (0.0272) (0.0257) N 524 524 524 Standard errors in parentheses * p<0.1, ** p<0.05, *** p<0.01
cfb (BC Econ) ECON2228 Notes 10 2014–2015 40 / 48
Heteroskedasticity in the time series context
cfb (BC Econ) ECON2228 Notes 10 2014–2015 41 / 48
Heteroskedasticity in the time series context The ARCH model
cfb (BC Econ) ECON2228 Notes 10 2014–2015 42 / 48
Heteroskedasticity in the time series context The ARCH model
cfb (BC Econ) ECON2228 Notes 10 2014–2015 43 / 48
Heteroskedasticity in the time series context The ARCH model
cfb (BC Econ) ECON2228 Notes 10 2014–2015 44 / 48
Heteroskedasticity in the time series context The ARCH model
cfb (BC Econ) ECON2228 Notes 10 2014–2015 45 / 48
Heteroskedasticity in the time series context The ARCH model
. regress D.rs LD.r20, vsquish Source SS df MS Number of obs = 524 F( 1, 522) = 52.88 Model 13.8769739 1 13.8769739 Prob > F = 0.0000 Residual 136.988471 522 .262430021 R-squared = 0.0920 Adj R-squared = 0.0902 Total 150.865445 523 .288461654 Root MSE = .51228 D.rs Coef.
t P>|t| [95% Conf. Interval] r20 LD. .4882883 .0671484 7.27 0.000 .356374 .6202027 _cons .0040183 .022384 0.18 0.858
.0479921 . estat archlm, lag(6) LM test for autoregressive conditional heteroskedasticity (ARCH) lags(p) chi2 df Prob > chi2 6 13.361 6 0.0377 H0: no ARCH effects vs. H1: ARCH(p) disturbance
cfb (BC Econ) ECON2228 Notes 10 2014–2015 46 / 48
Heteroskedasticity in the time series context The ARCH model
. arch D.rs LD.r20, vsquish nolog arch(1) ARCH family regression Sample: 1952m5 - 1995m12 Number of obs = 524 Distribution: Gaussian Wald chi2(1) = 50.57 Log likelihood = -370.6064 Prob > chi2 = 0.0000 OPG D.rs Coef.
z P>|z| [95% Conf. Interval] rs r20 LD. .4458543 .0626973 7.11 0.000 .3229699 .5687387 _cons
.0235846
0.729
.0380427 ARCH arch L1. .3888359 .0729199 5.33 0.000 .2459155 .5317562 _cons .1819778 .0085672 21.24 0.000 .1651864 .1987692
cfb (BC Econ) ECON2228 Notes 10 2014–2015 47 / 48
Heteroskedasticity in the time series context The ARCH model
. arch D.rs LD.r20, vsquish nolog arch(1) garch(1) ARCH family regression Sample: 1952m5 - 1995m12 Number of obs = 524 Distribution: Gaussian Wald chi2(1) = 54.58 Log likelihood = -368.9344 Prob > chi2 = 0.0000 OPG D.rs Coef.
z P>|z| [95% Conf. Interval] rs r20 LD. .4524499 .0612444 7.39 0.000 .332413 .5724867 _cons
.0224823
0.451
.0271041 ARCH arch L1. .3843838 .0727441 5.28 0.000 .241808 .5269595 garch L1.
.0200969
0.000
_cons .2037547 .0120402 16.92 0.000 .1801563 .227353
cfb (BC Econ) ECON2228 Notes 10 2014–2015 48 / 48