Stationarity and autoregressive (AR) models
An AR(p) model predicts a stationary series from a linear combination of its own last p values; differencing first turns many trending series into stationary ones.
- autoregressive coefficients
- constant (intercept)
- white-noise innovation with variance
- process mean, towards which forecasts revert
- seasonal period
When to use
- Short-term forecasting of a series whose current value depends on recent values, after making it stationary (constant mean and variance, autocorrelation depending only on lag).
- Choose from the PACF (cut-off after lag ) or by comparing out-of-sample accuracy. ARIMA adds differencing (the "I") and moving-average error terms.
Assumptions
- Stationarity: for AR(1) this needs . Trends or changing seasonality must first be removed (differencing).
- Residuals behave like white noise (check their ACF).
- The engine's default fit is conditional least squares with an intercept on observations ( = SSR/()); a Yule–Walker option is available. Forecasts are the recursive conditional means.
How to interpret
- near 1: shocks persist for a long time; near 0: little memory. Forecasts move geometrically back towards .
- Forecast uncertainty grows with the horizon and levels off for a stationary process.
Common mistakes
- Fitting an AR model to a trending series (spurious ).
- Over-differencing (differencing an already stationary series adds artificial negative autocorrelation).
- Choosing a high order to maximise in-sample fit.
Example
Series 50, 53, 55, 54, 51, 48, 47, 49, 52, 54, 53, 50 fitted by AR(1): , , so ; . From the last value 50 the forecasts are , then 50.97 — drifting back towards 51.45.