Time Series ARIMA Models Example Ani Katchova

© 2013 by Ani Katchova. All rights reserved.

Time Series ARIMA Models Example

 We have time series data on ppi (producer price index). Data are quarterly from 1960 to 2002.  Summary statistics: Mean(ppi)=64, mean ((Δppi)=0.464. Graphs in Stata Differenced variable (Δppi)

1960q1

-4

20

40

-2

producer price index 60 80

producer price index, D 0 2

100

4

120

Original variable (ppi)

1970q1

1980q1 time in quarters

1990q1

2000q1

1960q1

1970q1

1980q1 time in quarters

1990q1

2000q1

 Original variable does not look stationary.  Differenced variable looks stationary (although the variance increases).

1

Graphs in R of the original and differenced variable

Graphs in SAS of the original and differenced variable

2

Dickey-Fuller Test

Const L1.y or yt-1

Original variable D.y or Δyt 0.5036* -0.0006 (-0.26)

With trend D.y or Δyt 0.5861* -0.0084 (-0.793)

LD.y or Δyt-1

-0.4452* (-6.86)

Trend or t Test stat p-value Conclusion

Differenced variable D2.y or ΔΔyt 0.2067*

0.0050 -0.26 0.398(Stata) 0.927(SAS) Variable is not stationary

-0.793 0.99 (SAS) 0.96 (Stata & R) Variable is not trend stationary

-6.86 <0.001 Differenced variable is stationary

 The Dickey Fuller test shows that the original variable is not stationary, but the differences variable is stationary so we need to use differences d=1 in the ARIMA models.

3

Correlograms, Autocorrelation function (ACF), and partial autocorrelation function (PACF) Original variable (ppi) LAG ACF 1 0.990 2 0.978 3 0.966 4 0.952 5 0.937 6 0.923 7 0.908 8 0.894 9 0.880 10 0.866

Differenced variable (Δppi) LAG ACF 1 0.553 2 0.336 3 0.319 4 0.217 5 0.086 6 0.153 7 0.082 8 -0.078 9 -0.080 10 0.023

PACF 0.999 -0.555 -0.069 -0.209 0.023 0.125 -0.153 0.114 0.210 0.049

4

PACF 0.555 0.066 0.203 -0.031 -0.130 0.149 -0.118 -0.213 -0.051 0.166

-1.00

Partial autocorrelations of ppi -0.50 0.00 0.50

Autocorrelations of ppi -0.50 0.00 0.50

1.00

1.00

ACF and PACF of original variable

0

10

20 Lag

Bartlett's formula for MA(q) 95% confidence bands

30

40

0

10

20 Lag

30

40

95% Confidence bands [se = 1/sqrt(n)]

For original variable, ACF is a slow decay function (indicating non-stationarity) and PACF cuts off at lag 1 or 2. 5

6

Partial autocorrelations of D.ppi -0.200.00 0.20 0.40 0.60

Autocorrelations of D.ppi -0.200.00 0.20 0.40 0.60

ACF or PACF of the differenced variable

0

10

20 Lag

Bartlett's formula for MA(q) 95% confidence bands

30

40

0

10

20 Lag

30

40

95% Confidence bands [se = 1/sqrt(n)]

 For differenced variable, ACF tails off and PACF cuts off after lag 1 – use AR(1)? 7

8

ARIMA Models

Const L1.ar L2.ar L1.ma L2.ma L3.ma AIC BIC

ARIMA ARIMA ARIMA ARIMA ARIMA ARIMA ARIMA ARIMA ARIMA (1,0,0) (2,0,0) (0,0,1) (1,0,1) (1,1,0) (0,1,1) (1,1,1) (1,1,3) (2,1,3) 64.37 64.18 64.69* 64.67* 0.46* 0.47* 0.43* 0.43* 0.44* 0.999* 1.64* 0.99* 0.55* 0.72* 0.73* 1.51* -0.64* -0.71* 1.00* 0.53* 0.48* -0.25* -0.24 -1.05* -0.10 0.21 0.12 0.32* 502 424 1401 441 393 405 393 392 390 511 426 1420 543 402 414 406 411 412

* These are the Stata results. R has very similar coefficients. In the SAS output, the MA components have reverse signs than what is reported in this table and some coefficients have different magnitudes.

 We know that the variable is not stationary so we need to use differenced variable ARIMA (p,1,q). But here we also include models with the original variable ARIMA (p,0,q).  The coefficient on the lagged dependent variable is close to 1 indicating non-stationarity.  To select a model to use, look at the significance of the coefficients and also low AIC or BIC. Usually, there are a few models that perform similarly, so it is up to the researcher to try a few models and decide which one to use. The recommendation is to go with the simplest model.  ARIMA(1,1,1) is a good choice based on low AIC and BIC.  ARIMA(2,1,3) is also a good choice based on the significance of the lags.

9

Forecasting in R Original variable after ARIMA(1,0,1)

Differenced variable after ARIMA(1,1,1)

 The dependent variable is forecasted including the confidence interval.

10

Time Series ARIMA Models Example.pdf

There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Time Series ...

180KB Sizes 3 Downloads 218 Views

Recommend Documents

Time Series ARIMA Models SAS Program and Output.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Time Series ARIMA Models SAS Program and Output.pdf. Time Series ARIMA Models SAS Program and Output.pdf. Op

Time Series ARIMA Models R Program and Output.pdf
Page 2 of 11. arima(d.Y, order = c(1,0,1)). # ARIMA(1,1,3). arima(d.Y, order = c(1,0,3)). # ARIMA(2,1,3). arima(d.Y, order = c(2,0,3)). # ARIMA(1,0,1) forecasting. mydata.arima101

Time Series ARIMA Models Stata Program and Output.pdf ...
Set data as time series . tset $time. time variable: t, 1960q2 to 2002q2. delta: 1 quarter. Page 3 of 18. Time Series ARIMA Models Stata Program and Output.pdf.

Time Series ARIMA Models SAS Program and Output.pdf
Retrying... Time Series ARIMA Models SAS Program and Output.pdf. Time Series ARIMA Models SAS Program and Output.pdf. Open. Extract. Open with. Sign In.

Time Series ARIMA Models R Program and Output.pdf
Time Series ARIMA Models R Program and Output.pdf. Time Series ARIMA Models R Program and Output.pdf. Open. Extract. Open with. Sign In. Main menu.

Time Series ARIMA Models.pdf
Autoregressive (AR) and moving average (MA) models correct for violations of this white. noise assumption. -4 -2. 0. 2. white_noise. 0 10 20 30 40 50. _t. Page 4 of 22. Time Series ARIMA Models.pdf. Time Series ARIMA Models.pdf. Open. Extract. Open w

Time Series with State Space Models - R/Finance conference
1 Introduction to state space models and the dlm package. 2 DLM estimation and ... Time Series Analysis by State Space Methods. Oxford University Press, 2001 ...

Time Series with State Space Models - R/Finance conference
Time Series with State Space Models. R/Finance 2012. 2 / 90 ...... http://moderntoolmaking.blogspot.com/2011/11/time-series-cross-validation-2.html. Ability to ...

The Bootstrap for Regression and Time-Series Models
Corresponding to a bootstrap resample χ∗ is a bootstrap replication ...... univariate bootstrap estimation of bias and variance for an arbitrary statistic, theta. It.

Estimating panel time series models with ...
... xit are correlated with (from the econometrician's perspective) unobserved .... Nation Industrial Development Organisation's Industrial Statistics database ( ...

pdf-0699\time-series-and-dynamic-models-themes-in-modern ...
... EBOOK : TIME SERIES AND DYNAMIC MODELS (THEMES IN. MODERN ECONOMETRICS) BY CHRISTIAN GOURIEROUX, ALAIN. MONFORT PDF. Page 1 ...

Time series
Time series. Exercise session: 2. June 2, 2017 keywords: Autocovariance functions, autocorrelation function, partial autocorrelation func- tion. Estimation of the ...

economic time series
certain non-linear systems is discussed in Wiener (1958), while the statistical theory ...... Price Series for International Telephone and Telegraph. 1r/2 l2. - 02748.

Time Series Anomaly Detection - Research at Google
Statistical and regression techniques seem more promising in these cases. Netflix recently released their solution for anomaly detection in big data using Robust.