ARIMA and ARFIMA models
Christopher F Baum
ECON 8823: Applied Econometrics
Boston College, Spring 2015
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 1 / 61
ARIMA and ARFIMA models Christopher F Baum ECON 8823: Applied - - PowerPoint PPT Presentation
ARIMA and ARFIMA models Christopher F Baum ECON 8823: Applied Econometrics Boston College, Spring 2015 Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 1 / 61 ARIMA and ARMAX models ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 1 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 2 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 3 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 4 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 5 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 6 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 7 / 61
ARIMA and ARMAX models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 8 / 61
ARIMA and ARMAX models
. use usmacro1 . arima cpi, arima(1, 1, 1) nolog ARIMA regression Sample: 1959q2 - 2010q3 Number of obs = 206 Wald chi2(2) = 12657.64 Log likelihood =
Prob > chi2 = 0.0000 OPG D.cpi Coef.
z P>|z| [95% Conf. Interval] cpi _cons .4711825 .0508081 9.27 0.000 .3716004 .5707646 ARMA ar L1.
.0590356
0.000
ma L1. .9775208 .0123013 79.46 0.000 .9534106 1.001631 /sigma .4011922 .008254 48.61 0.000 .3850146 .4173697 . estimates store e42a
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 9 / 61
ARIMA and ARMAX models
. use usmacro1 . arima D.cpi, ar(1 4) nolog ARIMA regression Sample: 1959q2 - 2010q3 Number of obs = 206 Wald chi2(2) = 105.12 Log likelihood = -112.7938 Prob > chi2 = 0.0000 OPG D.cpi Coef.
z P>|z| [95% Conf. Interval] cpi _cons .4578741 .1086742 4.21 0.000 .2448766 .6708716 ARMA ar L1. .3035501 .0686132 4.42 0.000 .1690707 .4380295 L4. .3342019 .0407126 8.21 0.000 .2544068 .413997 /sigma .4177019 .0071104 58.75 0.000 .4037658 .4316381
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 10 / 61
ARIMA and ARMAX models Forecasts from ARIMA models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 11 / 61
ARIMA and ARMAX models Forecasts from ARIMA models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 12 / 61
ARIMA and ARMAX models Forecasts from ARIMA models
1 2 xb prediction, one-step 1960q1 1970q1 1980q1 1990q1 2000q1 2010q1 yq
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 13 / 61
ARIMA and ARMAX models Forecasts from ARIMA models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 14 / 61
ARIMA and ARMAX models Forecasts from ARIMA models
20 40 60 80 100 120 y prediction, one-step
1 2 y residual, one-step 1960q1 1970q1 1980q1 1990q1 2000q1 2010q1 yq y residual, one-step y prediction, one-step
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 15 / 61
ARIMA and ARMAX models ARMAX estimation and dynamic forecasts
. arima d.cpi d.oilprice if tin(, 2008q4), ar(1) ma(1) nolog ARIMA regression Sample: 1959q2 - 2008q4 Number of obs = 199 Wald chi2(3) = 1829.64 Log likelihood = -27.08681 Prob > chi2 = 0.0000 OPG D.cpi Coef.
z P>|z| [95% Conf. Interval] cpi
D1. .0602003 .0021528 27.96 0.000 .0559808 .0644198 _cons .4397912 .1833278 2.40 0.016 .0804753 .7991071 ARMA ar L1. .9732011 .0296099 32.87 0.000 .9151667 1.031235 ma L1.
.0535747
0.000
/sigma .2765534 .0091383 30.26 0.000 .2586426 .2944642 . estimates store e42e
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 16 / 61
ARIMA and ARMAX models ARMAX estimation and dynamic forecasts
. predict double cpihat_s if tin(2006q1,), y (188 missing values generated) . label var cpihat_s "static forecast" . predict double cpihat_d if tin(2006q1,), dynamic(tq(2008q4)) y (188 missing values generated) . label var cpihat_d "dynamic forecast" . tw (tsline cpihat_s cpihat_d if !mi(cpihat_s)) /// > (scatter cpi yq if !mi(cpihat_s), c(i)), scheme(s2mono) /// > ti("Static and dynamic ex ante forecasts of US CPI") /// > t2("Forecast horizon: 2009q1-2010q3") legend(rows(1))
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 17 / 61
ARIMA and ARMAX models ARMAX estimation and dynamic forecasts
100 105 110 115 2006q3 2007q3 2008q3 2009q3 2010q3 yq static forecast dynamic forecast CPI Forecast horizon: 2009q1-2010q3
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 18 / 61
ARFIMA models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 19 / 61
ARFIMA models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 20 / 61
ARFIMA models
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 21 / 61
ARFIMA models The ARFIMA model
1See Baum and Wiggins (Stata Tech.Bull., 2000). Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 22 / 61
ARFIMA models The ARFIMA model
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 23 / 61
ARFIMA models The ARFIMA model
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 24 / 61
ARFIMA models The ARFIMA model
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 25 / 61
ARFIMA models Approaches to estimation of the ARFIMA model
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 26 / 61
ARFIMA models Semiparametric estimators for I(d) series
2See Baum and Röom (Stata Tech. Bull., 2001). Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 27 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 28 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 29 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 30 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 31 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 32 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 33 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 34 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 35 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 36 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 37 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 38 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 39 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 40 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 41 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 42 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 43 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 44 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 45 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 46 / 61
ARFIMA models Semiparametric estimators for I(d) series
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 47 / 61
ARFIMA models Applications
. use http://fmwww.bc.edu/ec-p/data/Mills2d/SP500A.DTA, clear . lomodrs sp500ar Lo Modified R/S test for sp500ar Critical values for H0: sp500ar is not long-range dependent 90%: [ 0.861, 1.747 ] 95%: [ 0.809, 1.862 ] 99%: [ 0.721, 2.098 ] Test statistic: .781 (1 lags via Andrews criterion) N = 124
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 48 / 61
ARFIMA models Applications
. lomodrs sp500ar, max(0) Hurst-Mandelbrot Classical R/S test for sp500ar Critical values for H0: sp500ar is not long-range dependent 90%: [ 0.861, 1.747 ] 95%: [ 0.809, 1.862 ] 99%: [ 0.721, 2.098 ] Test statistic: .799 N = 124 . lomodrs sp500ar if tin(1946,) Lo Modified R/S test for sp500ar Critical values for H0: sp500ar is not long-range dependent 90%: [ 0.861, 1.747 ] 95%: [ 0.809, 1.862 ] 99%: [ 0.721, 2.098 ] Test statistic: 1.29 (0 lags via Andrews criterion) N = 50
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 49 / 61
ARFIMA models Applications
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 50 / 61
ARFIMA models Applications
. use http://fmwww.bc.edu/ec-p/data/Mills2d/FTA.DTA, clear . gphudak ftaret,power(0.5 0.6 0.7) GPH estimate of fractional differencing parameter
Power Ords Est d StdErr t(H0: d=0) P>|t| StdErr z(H0: d=0) P>|z|
20
.1603
0.990 .1875
0.991 .6 35 .228244 .1459 1.5645 0.128 .1302 1.7529 0.080 .7 64 .141861 .08992 1.5776 0.120 .09127 1.5544 0.120
ARIMA and ARFIMA models Boston College, Spring 2015 51 / 61
ARFIMA models Applications
. modlpr ftaret, power(0.5 0.55:0.8) Modified LPR estimate of fractional differencing parameter for ftaret
Ords Est d Std Err t(H0: d=0) P>|t| z(H0: d=1) P>|z|
19 .0231191 .139872 0.1653 0.870
0.000 .55 25 .2519889 .1629533 1.5464 0.135
0.000 .6 34 .2450011 .1359888 1.8016 0.080
0.000 .65 46 .1024504 .1071614 0.9560 0.344
0.000 .7 63 .1601207 .0854082 1.8748 0.065
0.000 .75 84 .1749659 .08113 2.1566 0.034
0.000 .8 113 .0969439 .0676039 1.4340 0.154
0.000
Robinson estimates of fractional differencing parameter for ftaret
Ords Est d Std Err t(H0: d=0) P>|t|
205 .1253645 .0446745 2.8062 0.005
ARIMA and ARFIMA models Boston College, Spring 2015 52 / 61
ARFIMA models Applications
. roblpr ftap ftadiv Robinson estimates of fractional differencing parameters Power = .9 Ords = 205
| Est d Std Err t P>|t|
ftap | .8698092 .0163302 53.2640 0.000 ftadiv | .8717427 .0163302 53.3824 0.000
F(1,406) = .00701 Prob > F = 0.9333 . constraint define 1 ftap=ftadiv . roblpr ftap ftadiv ftaret, c(1) Robinson estimates of fractional differencing parameters Power = .9 Ords = 205
| Est d Std Err t P>|t|
ftap | .8707759 .0205143 42.4473 0.000 ftadiv | .8707759 .0205143 42.4473 0.000 ftaret | .1253645 .0290116 4.3212 0.000
F(1,610) = 440.11 Prob > F = 0.0000
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 53 / 61
ARFIMA models Applications
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 54 / 61
ARFIMA models Applications
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 55 / 61
ARFIMA models Applications
. webuse mloa . arima S12.log, ar(1) ma(2) vsquish nolog ARIMA regression Sample: 1960m1 - 1990m12 Number of obs = 372 Wald chi2(2) = 500.41 Log likelihood = 2001.564 Prob > chi2 = 0.0000 OPG S12.log Coef.
z P>|z| [95% Conf. Interval] log _cons .0036754 .0002475 14.85 0.000 .0031903 .0041605 ARMA ar L1. .7354346 .0357715 20.56 0.000 .6653237 .8055456 ma L2. .1353086 .0513156 2.64 0.008 .0347319 .2358853 /sigma .0011129 .0000401 27.77 0.000 .0010344 .0011914 Note: The test of the variance against zero is one sided, and the two-sided confidence interval is truncated at zero. . psdensity d_arma omega1
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 56 / 61
ARFIMA models Applications
. arfima S12.log, ar(1) ma(2) vsquish nolog ARFIMA regression Sample: 1960m1 - 1990m12 Number of obs = 372 Wald chi2(3) = 248.87 Log likelihood = 2006.0805 Prob > chi2 = 0.0000 OIM S12.log Coef.
z P>|z| [95% Conf. Interval] S12.log _cons .003616 .0012968 2.79 0.005 .0010743 .0061578 ARFIMA ar L1. .2160894 .1015596 2.13 0.033 .0170362 .4151426 ma L2. .1633916 .051691 3.16 0.002 .062079 .2647041 d .4042573 .080546 5.02 0.000 .2463899 .5621246 /sigma2 1.20e-06 8.84e-08 13.63 0.000 1.03e-06 1.38e-06 Note: The test of the variance against zero is one sided, and the two-sided confidence interval is truncated at zero.
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 57 / 61
ARFIMA models Applications
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 58 / 61
ARFIMA models Applications
. psdensity d_arfima omega2 . psdensity ds_arfima omega3, smemory . line d_arma d_arfima omega1, name(lmem) scheme(s2mono) nodraw ylab(,angle(0)) . line d_arma ds_arfima omega1, name(smem) scheme(s2mono) nodraw ylab(,angle(0) > ) . graph combine lmem smem, cols(1) xcommon /// > ti("ARMA and ARFIMA implied spectral densities") . gr export 82308b.pdf, replace (file /Users/cfbaum/Dropbox/baum/EC823 S2013/82308b.pdf written in PDF format)
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 59 / 61
ARFIMA models Applications 1 2 3 4 5 1 2 3 Frequency ARMA spectral density ARFIMA long-memory spectral density .5 1 1.5 1 2 3 Frequency ARMA spectral density ARFIMA short-memory spectral density
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 60 / 61
ARFIMA models Applications
Christopher F Baum (BC / DIW) ARIMA and ARFIMA models Boston College, Spring 2015 61 / 61