- Introduced by
- Box & Jenkins (Box-Jenkins methodology)
- Year
- 2015
- Type
- Univariate time-series model
What does it do?
ARIMA is a univariate time-series forecasting model that combines autoregressive, integrated (differencing), and moving-average components to predict a single continuous series from its own past.
It is the centrepiece of the Box-Jenkins methodology set out in Box, Jenkins, Reinsel & Ljung's Time Series Analysis (5th ed., 2015).
The intuition behind the method
Think of forecasting a series purely from its own history. The autoregressive part says today's value depends on recent past values; the moving-average part says it also depends on recent past forecast errors; and the integrated part first differences the series until it stops trending so that those patterns become stable over time. Putting the three together lets the model capture momentum, shocks, and trend in one compact recipe.
History
ARIMA is the model class at the core of the Box-Jenkins methodology, a procedure for identifying, estimating, and diagnostically checking time-series models, originated by G. E. P. Box and G. M. Jenkins. The methodology is presented in Box, Jenkins, Reinsel and Ljung's Time Series Analysis: Forecasting and Control, cited here in its fifth edition (2015).
When to use it
Use ARIMA when you have a single continuous time series of reasonable length, ideally at least about 50 observations (a rule of thumb rather than a strict cut-off), and want to forecast its future from its own past. Stationarity is obtained mainly by differencing (choosing d); where differencing does not stabilise the variance or trend, a transformation such as a logarithm or detrending may be applied before fitting. Identify the orders beforehand with stationarity tests (ADF, KPSS) and ACF/PACF analysis. Standard ARIMA estimation and inference assume that the fitted AR polynomial is stationary, the MA polynomial is invertible, and the errors are white noise (uncorrelated, approximately normal, with constant variance). After fitting, the residuals should show no remaining autocorrelation, checked with a Ljung-Box test, and the standard prediction intervals rely on the assumed error distribution. ARIMA is not the right tool for short series, where simpler exponential smoothing is preferred, nor for series with strong seasonality, which call for SARIMA.
Limitations and considerations
- Needs a stationary series. Stationarity is normally achieved by differencing; where differencing does not stabilise variance or trend, a transformation or detrending is needed first.
- Parameter estimates may be imprecise on short series. Many practitioners prefer at least about 50 observations, and with fewer, simpler methods should be compared.
- Standard ARIMA does not model seasonality; seasonal patterns require SARIMA instead.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Captures momentum, shocks, and trend in one compact univariate model, with only the orders (p, d, q) to choose.
- Its identify, estimate, and diagnose cycle gives a structured route to the orders: ACF and PACF patterns guide p and q, stationarity tests guide d, and the residuals are checked afterwards.
- Provides prediction intervals alongside point forecasts, and the residuals can be tested with a Ljung-Box test for remaining autocorrelation.
Applications
- Forecasting economic and financial indicators such as sales, prices, or demand from their own history.
- Projecting future demand for inventory and capacity planning.
- Modelling and short-horizon prediction of any single continuous metric tracked over time.
How it works
How it works
The series is written in the order (p, d, q): the series is differenced d times to remove trend and make it stationary, then the differenced series is explained by p autoregressive lags (φ) of its own past and q moving-average lags (θ) of past errors. In backshift-operator form φ_p(B)(1−B)^d y_t = θ_q(B)ε_t, where B is the lag operator and ε_t is white noise.
Formula
\phi_p(B)\,(1-B)^d y_t = \theta_q(B)\,\varepsilon_t
The parameters are estimated by maximum likelihood (or conditional least squares), choosing the coefficients that make the observed series most probable. Candidate orders (p, d, q) are compared with information criteria: AIC, AICc (a small-sample corrected version of AIC, and the default criterion in the auto.arima routine of the forecast package), or BIC. The chosen model is then used to project future values with prediction intervals.
Formula
\hat{\boldsymbol{\theta}} = \arg\max_{\boldsymbol{\theta}} \; \log L(\boldsymbol{\theta} \mid y_1,\dots,y_T)Common pitfalls
- Fitting ARIMA without first confirming stationarity (ADF / KPSS) and differencing or transforming the series as needed.
- Ignoring residual autocorrelation; a significant Ljung-Box test signals model misspecification and the order should be revised.
- Applying plain ARIMA to a series with clear seasonal peaks in the ACF instead of switching to SARIMA.
- Using ARIMA on a short series (well below about 50 observations) and over-trusting the resulting parameter estimates.
Frequently asked questions
What do the (p, d, q) orders mean?
p is the number of autoregressive lags (how many past values feed the forecast), d is how many times the series is differenced to remove trend and reach stationarity, and q is the number of moving-average lags (how many past forecast errors feed the forecast). ACF and PACF plots help identify p and q, while stationarity tests guide d.
How do I know if my series is stationary?
Run an Augmented Dickey-Fuller (ADF) test and a KPSS test. If the series is non-stationary you apply differencing (raise d); if differencing alone is not enough, a log transformation or detrending can help before fitting.
How do I check that the fitted ARIMA is adequate?
Examine the residuals: a Ljung-Box test should not reject the null of no autocorrelation. A significant result (p < 0.05) means the model is misspecified, so the order should be increased or alternatives considered. An ARCH-LM test can additionally flag variance clustering.
When should I use SARIMA or another model instead?
If the series shows clear seasonal peaks in the ACF, switch to SARIMA, which extends ARIMA with seasonal terms. For very short series, simple exponential smoothing is more reliable, and if residual autocorrelation persists a multivariate VAR model may fit better.
Related methods
Sources
Box, G. E. P., Jenkins, G. M., Reinsel, G. C. & Ljung, G. M. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Wiley.
ISBN: 978-1118675021