- Introduced by
- George Box and Gwilym Jenkins
- Year
- 1970
- Type
- Time series forecasting model
- Family
- Econometrics / time series
What does it do?
The ARIMA(p,d,q) model is a standard linear framework for forecasting a single regularly spaced time series.
It combines autoregressive terms (dependence on past values), differencing d times to remove non-stationarity, and moving average terms (dependence on past shocks). Box and Jenkins (1970) set out the modelling strategy, and the model remains widely used in econometrics and applied statistics.
The intuition behind the method
Think of a river's water level over time. Its current level depends partly on recent levels (autoregression). Changes from one period to the next may be more stable than the levels themselves (differencing). Random shocks, such as a sudden rainfall, affect future values for a limited number of periods before their influence fades (moving average). ARIMA represents these three features together: how the current value relates to recent values, how the series drifts, and how long shocks persist.
History
Box and Jenkins set out the ARIMA framework in their 1970 monograph, which introduced the identification, estimation, and diagnostic-checking cycle still used today. Autoregressive and moving average components had been studied in earlier time series work, but Box and Jenkins combined them into one practical modelling strategy and made differencing a standard tool for achieving stationarity. Hamilton's (1994) Time Series Analysis is a standard econometric reference that covers the model, and ARIMA is still used as a benchmark for newer forecasting methods.
When to use it
Use ARIMA when you have a single regularly observed time series and want to forecast its future values or describe its dynamic structure. It fits when the series becomes stationary after differencing and has no strong seasonal pattern (use SARIMA for that). The sample must be long enough to estimate the p + q + 1 parameters with reasonable precision, and short series give unstable orders and forecasts. Do not use ARIMA for cross-sectional data, for multivariate analysis where variables influence each other (use VAR instead), for volatility clustering in financial returns (use GARCH), or when deterministic seasonality remains after differencing.
Limitations and considerations
- Assumes linear dynamics. Nonlinear behaviour, regime switches, or asymmetric responses require extensions such as SETAR, MSVAR, or NARDL.
- Models one series at a time. When variables influence each other, a multivariate model such as VAR or VECM is needed.
- Assumes constant error variance. Volatility clustering in financial data requires a companion GARCH component.
- Order selection can be sensitive to sample length and to structural breaks, and AIC and BIC may recommend different specifications.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Combines differencing, autoregressive persistence, and moving average shock propagation in one compact model.
- Provides a defined identification, estimation, and diagnostic-checking cycle (the Box-Jenkins methodology) that gives a clear order of steps for choosing a model.
- Produces forecasts with analytical prediction intervals under Gaussian errors.
- Implemented in several widely used statistical software packages.
- Nests AR, MA, random walk, and random walk with drift as special cases, so these simpler models can be tested inside the same framework.
Applications
- Short- to medium-term macroeconomic forecasting of variables such as GDP growth, inflation, and unemployment.
- Central bank and treasury forecasting of monetary aggregates and fiscal variables.
- Demand forecasting in retail, supply chain, and inventory management.
- Modelling financial return series as a preliminary step before GARCH volatility estimation.
- Environmental time series analysis, such as rainfall, temperature anomalies, and pollution indices.
- Benchmark comparison: ARIMA is often used as a baseline against which machine learning forecasts are assessed.
How it works
How it works
The series is differenced d times until its mean and variance no longer change over time. d = 0 means the raw series is already stationary. d = 1 (first differencing) is the usual choice for economic series with stochastic trends.
Formula
\Delta^d y_t = (1-L)^d y_t
The differenced series is then modelled as an ARMA process. The lag polynomial phi(L) captures autoregressive dynamics and theta(L) captures moving average dynamics. Each period, a white-noise innovation epsilon_t carries new information into the series. Sign conventions for theta differ between textbooks and software, so check the convention used by the package before reading theta estimates. Parameters are usually estimated by maximum likelihood, with conditional sum of squares as a common alternative. Check that all roots of phi(L) lie outside the unit circle (stationarity) and all roots of theta(L) lie outside it (invertibility), and report coefficient standard errors before interpreting the estimates.
Formula
\phi(L)\Delta^d y_t = \theta(L)\varepsilon_t
The AR polynomial phi(L) of order p sets how many past (differenced) observations enter the prediction. A finite-order AR term captures short-memory dynamics. Long memory in the level of a series is usually modelled with other tools, such as fractional differencing, rather than by a large p alone.
Formula
\phi(L) = 1 - \phi_1 L - \phi_2 L^2 - \cdots - \phi_p L^p
The MA polynomial theta(L) of order q sets how many past shocks affect the current value. An MA term of order 1 means only the immediately preceding shock matters; higher q lets a shock influence the series over more periods.
Formula
\theta(L) = 1 + \theta_1 L + \theta_2 L^2 + \cdots + \theta_q L^q
The orders (p, d, q) are first suggested by the ACF and PACF of the differenced series and then compared using information criteria such as AIC or BIC. Automated search procedures, such as auto.arima in R, evaluate candidate orders and report a preferred specification. The automated choice should still be checked against the residual diagnostics. Decide whether to include a constant as well. With d = 0, a constant sets the mean of the series. With d = 1, a constant means the level of the series follows a deterministic linear drift, so long-horizon forecasts extend a straight-line trend. With d = 2, a constant implies a quadratic trend in the level, and it is usually excluded. Choose the constant according to whether the drift has a meaningful interpretation for the series, and check its estimate in the output.
After estimation, the residuals should resemble white noise: uncorrelated, zero-mean, and with constant variance. The Ljung-Box Q-test checks for remaining residual autocorrelation. Apply it to several lag values, and include lags at or beyond the seasonal period when seasonality is present. Because the estimated AR and MA parameters use up degrees of freedom, the reference chi-square distribution has degrees of freedom equal to the number of lags minus p + q. The null hypothesis is that the residual autocorrelations are zero up to the chosen lag; a small p-value means the residuals remain autocorrelated, which suggests the orders are misspecified. If significant autocorrelation remains, the orders may be misspecified, or seasonal structure may need to be modelled (SARIMA).
Common pitfalls
- Fitting ARIMA to a non-stationary series without a unit root test (such as ADF or PP) to justify the choice of d.
- Ignoring residual autocorrelation after estimation. A significant Ljung-Box test indicates that the chosen orders are misspecified.
- Applying ARIMA to a series with clear seasonal patterns. The seasonal structure will remain in the residuals unless a seasonal model (SARIMA) is specified.
- Over-differencing (choosing d larger than needed) induces artificial negative autocorrelation and can lead to inflated MA orders. Confirm that d = 1 is needed before considering d = 2.
- Reading long-horizon forecasts as reliable. Prediction intervals widen with the horizon. For d = 0, point forecasts tend toward the estimated mean, but for d ≥ 1 they follow the stochastic trend and do not revert to the sample mean.
Frequently asked questions
How do I choose p, d, and q?
First determine d with a unit root test such as ADF or PP, differencing until the series is stationary. Then inspect the ACF and PACF of the differenced series: a sharp cutoff in the PACF suggests the AR order p, and a sharp cutoff in the ACF suggests the MA order q. Compare competing specifications with AIC or BIC, or use an automated search such as auto.arima in R, and check the residuals before accepting the model.
What is the difference between ARIMA and ARMA?
ARMA(p,q) models a stationary series directly. ARIMA(p,d,q) applies d rounds of differencing before fitting the ARMA part, so it can be used for non-stationary series with stochastic trends. ARIMA(p,0,q) is identical to ARMA(p,q).
When should I use SARIMA instead of ARIMA?
Use SARIMA when the series shows regular seasonal patterns at fixed intervals, such as retail sales that peak every December. Plain ARIMA cannot capture such periodic structure well. SARIMA adds seasonal AR and MA terms and seasonal differencing to model it explicitly.
Can ARIMA handle structural breaks?
Standard ARIMA assumes constant parameters over the whole sample. A major structural break, such as a financial crisis or a policy regime change, can distort the estimated orders and degrade forecasts. When a break is suspected, consider dummy variables, the Zivot-Andrews test, or regime-switching models.
How far ahead can ARIMA forecast reliably?
Forecast uncertainty grows with the horizon, because each step adds to the uncertainty from the estimated parameters and the future innovations. The prediction intervals widen as the horizon increases, so long-horizon forecasts should be read with caution. The sample length alone does not fix a reliable horizon, and the behaviour of point forecasts depends on whether the differenced model is stationary.
Related methods
Sources
Box, G. E. P., & Jenkins, G. M. (1970). Time Series Analysis: Forecasting and Control. Holden-Day.
Open publication referenceHamilton, J. D. (1994). Time Series Analysis. Princeton University Press.
ISBN: 978-0691042893