Modelcore
ARIMA model
Also called autoregressive integrated moving average, ARIMA(p, d, q) model.
An ARMA model for the series differenced d times, used for series with stochastic trends. Seasonal ARIMA adds seasonal differences and lags.
An ARIMA(, , ) model says that a time series becomes a stationary ARMA(, ) process after it is differenced times. The differences remove a stochastic trend: a series that wanders like a random walk has stationary changes, and the model describes those changes. The "I" stands for integrated, because the original series is the -fold sum of a stationary series. For the process is not stationary, its forecast intervals widen without limit, and its forecasts follow the last level, not a fixed mean. Familiar forecasting rules are ARIMA models: the random walk is ARIMA(0, 1, 0), and exponential smoothing is the optimal forecast for ARIMA(0, 1, 1). Seasonal ARIMA (SARIMA) adds differences and ARMA terms at the seasonal lag .
The machine
Notation. is the backshift operator and the difference operator, so and . and are as on the ARMA model page, and .
Definition. For an integer , is an ARIMA(, , ) process if is a causal ARMA(, ) process:
possibly with a constant on the right, so that has mean . The autoregressive polynomial has a root of multiplicity at , on the unit circle. So the ARMA theory gives no stationary solution, and the model is completed by a condition on the start: are uncorrelated with (Brockwell and Davis 1991, Section 9.1). Then for is plus a sum of values when , and a repeated sum when .
Parameters. and in the causal and invertible region, , the order , and optionally the drift . The orders are chosen from the data.
What differencing removes.
- A random walk is ARIMA(0, 1, 0). Given , , which grows without bound.
- A drift in gives a linear trend of slope in , and with it gives a quadratic trend.
- A deterministic linear trend plus stationary noise, , also becomes stationary after one difference, but then has a moving-average unit root. The two models give different forecast intervals. Tests such as the augmented Dickey-Fuller test and the KPSS test try to tell them apart.
Seasonal ARIMA. With period (12 for monthly data), the SARIMA model is
where and are polynomials of degree and . The airline model of Box and Jenkins is , usually for the logarithm of the series: . It has two parameters besides and fits many monthly series with trend and seasonality.
What it counts
The parameters are those of the ARMA model for , plus . The main quantities are the forecasts and their error variances.
| quantity | formula | cost |
|---|---|---|
| differenced series | for | |
| ARMA quantities of | as on the ARMA model page | as there |
| weights | coefficients of , by the ARMA recursion with | per weight |
| -step forecast | the ARMA forecasts of , then summed back (undifferenced) from the last observed levels | after the ARMA forecasts |
| its error variance, for large | ||
| Gaussian likelihood | the ARMA likelihood of , conditional on the first values | as for ARMA |
Forecast errors grow. The weights do not tend to 0. For ARIMA(1, 1, 0) with and , , so the forecast standard errors at are , and , and they grow like . For ARIMA(0, 2, 0), and the variance is , so the standard error grows like . For a stationary ARMA model it would converge to .
Exponential smoothing. For ARIMA(0, 1, 1), with . The one-step forecast is , and , so
This is the exponential moving average. By hand, with (), data and start : , , and . Every forecast , , is .
Relation to other models
- ARMA model. ARIMA(, 0, ) is ARMA(, ). An ARIMA model with is an ARMA equation whose AR polynomial has a unit root.
- Moving-average model. Differencing a stationary series once too often gives an MA part with a root on the unit circle: the difference of white noise is MA(1) with and lag-1 autocorrelation .
- Exponential smoothing and Holt-Winters. Simple exponential smoothing is optimal for ARIMA(0, 1, 1), and Holt's linear method is optimal for ARIMA(0, 2, 2). The additive Holt-Winters method corresponds to a seasonal ARIMA model.
- State-space model. ARIMA models have state space forms, and the Kalman filter handles the nonstationary start with a diffuse prior on the first levels.
- Fractional differencing. ARFIMA models allow a noninteger . For the process is stationary, and for its autocorrelations decay like a power of the lag (long memory), not geometrically.
- STL decomposition. A nonparametric alternative that removes trend and seasonality by smoothing, not by differencing.
Known results in the model
- Fitting. Choose , difference, then fit an ARMA model to by maximum likelihood. The estimates of and have the ARMA limit distribution, because is a causal invertible ARMA process. The Box-Jenkins method is the full identify, estimate and check cycle.
- Choosing . A sample autocorrelation that decays slowly and almost linearly suggests a unit root. Unit root tests give a formal check, but they have low power against roots near 1. In practice is 0, 1 or 2.
- Over-differencing has a cost. If is one too large, the MA part has a unit root, the model is not invertible, and the maximum likelihood estimate of can fall on the boundary with positive probability in finite samples. A lag-1 sample autocorrelation near after differencing is the usual sign.
- Forecasts. With and no drift, the forecasts converge to a constant level that depends on the last observations. With a drift they follow a line. The error variance grows linearly in for and like for , so long-range intervals are very wide.
- Transformations. A logarithm or another Box-Cox transformation before differencing often makes the variance of the differences constant. Forecasts on the original scale then need a bias correction.
References
- George E. P. Box and Gwilym M. Jenkins, Time Series Analysis: Forecasting and Control, Holden-Day, 1970, the integrated models, their forecasts and the seasonal models (the first edition)
- George E. P. Box, Gwilym M. Jenkins, Gregory C. Reinsel and Greta M. Ljung, Time Series Analysis: Forecasting and Control, fifth edition, Wiley, 2015, Part I (nonstationary models and forecasting) and the chapter on seasonal models (the airline model)
- Peter J. Brockwell and Richard A. Davis, Time Series: Theory and Methods, second edition, Springer, 1991, Section 9.1 (ARIMA models for nonstationary series, p. 274), Section 9.5 (forecasting ARIMA models, p. 314) and Section 9.6 (seasonal ARIMA models, pp. 320 to 325)
- Peter J. Brockwell and Richard A. Davis, Introduction to Time Series and Forecasting, third edition, Springer, 2016, Section 6.1 (ARIMA models, p. 158), Section 6.3 (unit roots, p. 169), Section 6.4 (forecasting, p. 173) and Section 6.5 (seasonal ARIMA, p. 177)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag W6NWDC Edit this page History Report an error Markdown