Escolar Documentos
Profissional Documentos
Cultura Documentos
Contents
1. Introduction
2. Model Building
3. Model Diagnostics
4. Seasonal ARIMA
5. References
Model Building: Step 1 is to create an (ACF) chart and then ask the following questions.
1. Questions:
a. Is the data random?
i. If all ACF values are within horizontal dotted lines, then yes.
b. Is the data stationary?
i. Observation - If ACF drops to nearly 0 after 2nd or 3rd lag, then yes.
Otherwise, trend exists.
ii. Statistics – Apply unit root tests such as Kwiatkowski–Phillips–
Schmidt–Shin or KPSS, or a unit root test such as Augmented Dickey-
Fuller or ADF test, Phillips-Perron or PP test.
(faculty.washington.edu,2018) The R codes are given below:
For ADF, if p-value is less than 0.05, then the data is stationary.
For KPSS, if p-value is greater than 0.05, then the data is stationary.
c. How to remove stationarity?
i. By differencing the terms
ii. Example (see Table 8.3, Makridakis for more examples)
Model Diagnostics:
1. After creating the ARIMA model, plot the residuals. If it looks like white noise (no
spikes above horizontal lines), then your model is valid. Also, use portmanteau test
of residuals to make sure the ARIMA model fits the data - Durbin Watson test, Box-
Pierce test, Ljung-Box test, Breusch-Godfrey test.
Seasonal ARIMA:
It is denoted by (P,D,Q). The final model becomes (p,d,q)(P,D,Q). Attach (0,1,1) or (0,0,1) to
a non-seasonal ARIMA model. Check which combination [such as (1,1,1)(0,1,1) or
(2,1,2)(0,0,1), etc. ] of seasonal and non-seasonal ARIMA has the lowest AICc values. See
sample R code below:
There are plenty of possible combinations. You might want to do an auto-arima first, to
determine the seasonal part of the model.
References: