- Introduced by
- George E. P. Box and Gwilym M. Jenkins
- Year
- 1970
- Type
- Time series model
- Family
- Econometrics / time series
What does it do?
The ARMA(p,q) model describes a stationary time series as a combination of two parts: an autoregressive component that regresses the current value on its own past p values, and a moving-average component that depends on the past q error terms.
It is the core model of the Box-Jenkins approach to univariate time series modelling and is mainly used for parsimonious in-sample description and short-to-medium-horizon forecasting.
The intuition behind the method
Consider a series that fluctuates around a stable level, where deviations from that level tend to persist for a while, such as an economic indicator measured relative to its long-run average. The autoregressive part captures this persistence: today's value is a weighted sum of the last p values. The moving-average part captures the effect of recent random shocks, which can linger for q periods before fading. Combining both in one equation can describe many stationary patterns with only a few coefficients.
History
The ARMA framework was systematised by George E. P. Box and Gwilym M. Jenkins in their 1970 monograph Time Series Analysis: Forecasting and Control, which set out a cycle of identification, estimation and diagnostic checking for practitioners. Earlier work on autoregressive and moving-average processes supplied the building blocks. Box and Jenkins brought these strands together into a single model class with a practical modelling procedure, which helped make the approach standard in econometrics, engineering and statistics.
When to use it
Choose ARMA when the series is already covariance-stationary and the aim is a parsimonious model of a single variable for in-sample description or short-to-medium-horizon forecasting. It is a reasonable choice when the ACF and PACF show decaying or cut-off patterns consistent with bounded autoregressive or moving-average memory. Do not use ARMA when the series has a unit root and has not been differenced (use ARIMA), when seasonal patterns are present (use SARIMA), when volatility is clearly time-varying (consider an ARMA-GARCH structure), when explanatory variables should enter the model (use ARIMAX or regression with ARMA errors), or when several interrelated series must be modelled jointly (use VAR).
Limitations and considerations
- Requires strict covariance stationarity; a unit root or trend violates the assumptions and demands differencing or detrending first.
- Linear by construction, so it cannot capture asymmetries, threshold effects, or nonlinear dynamics without extension.
- Order selection (p, q) can be ambiguous when ACF/PACF do not cut off cleanly; AIC and BIC sometimes favour different orders.
- Forecasts from a stationary ARMA model converge toward the unconditional mean as the horizon grows, so long-horizon accuracy is limited for volatile or structurally changing series.
- The model assumes constant coefficients; a structural break in the AR or MA parameters biases fitted values and forecasts until the model is re-estimated. It also cannot model volatility clustering, which requires a conditional variance equation such as GARCH.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Combines autoregressive and moving-average dynamics in one parsimonious model with few parameters.
- For a known-parameter linear model, the forecast is the best linear predictor in the mean-squared sense; this optimality is a known-parameter result and does not carry over unqualified to estimated parameters or non-Gaussian errors.
- Under standard stationarity and invertibility conditions, the theoretical properties of the maximum likelihood estimates, such as asymptotic normality, are well established.
- Widely implemented in R (stats, forecast), Python (statsmodels), EViews, Stata, and SAS.
- ACF/PACF diagnostics give interpretable guidance for model selection.
Applications
- Short-run forecasting of macroeconomic indicators such as GDP growth, inflation, or industrial production.
- Modelling and forecasting financial returns after confirming stationarity.
- Signal extraction and noise smoothing in engineering and atmospheric sciences.
- Baseline benchmark model against which more complex multivariate or machine-learning forecasters are compared.
- Residual modelling in regression with autocorrelated errors (regression-ARMA or ARIMAX).
- Input to simulation studies requiring synthetic stationary time series with realistic autocorrelation structure.
How it works
How it works
Before fitting, check that the series is covariance-stationary: it should have a constant mean and variance, and its autocovariances should depend only on the lag. Unit-root tests such as the Augmented Dickey-Fuller or KPSS test help assess this. If a unit root is present, the series must be differenced first, which leads to an ARIMA specification rather than ARMA. For the AR part, the model is covariance-stationary when all roots of phi(z) = 1 - phi_1 z - ... - phi_p z^p lie outside the unit circle, so the estimated AR coefficients must satisfy this condition for the fitted model to be stationary.
Inspect the sample ACF and PACF to suggest candidate orders. A PACF that cuts off after lag p, with an ACF that tails off, points to an AR(p); an ACF that cuts off after lag q points to an MA(q). When both decay gradually, a mixed ARMA(p,q) is likely. Information criteria (AIC, BIC) computed over a grid of candidate (p, q) pairs give a formal comparison.
The model is X_t = phi_1 X_{t-1} + ... + phi_p X_{t-p} + epsilon_t + theta_1 epsilon_{t-1} + ... + theta_q epsilon_{t-q}, where the phi_i are AR coefficients, the theta_j are MA coefficients, and epsilon_t is white noise with mean zero and variance sigma^2. X_t is measured as a deviation from the mean; a constant term can be added when the mean is not zero. The MA part is invertible when all roots of theta(z) = 1 + theta_1 z + ... + theta_q z^q lie outside the unit circle. Invertibility allows the shocks to be recovered from current and past values of the series.
Formula
X_t = \sum_{i=1}^{p} \phi_i X_{t-i} + \varepsilon_t + \sum_{j=1}^{q} \theta_j \varepsilon_{t-j}Parameters are estimated by maximum likelihood or conditional least squares. The Gaussian likelihood is evaluated with the Kalman filter, and the Hannan-Rissanen algorithm is often used to provide starting values for the numerical optimisation. Software typically constrains the AR polynomial to be stationary and the MA polynomial to be invertible during estimation.
After fitting, check that the residuals behave as white noise. The Ljung-Box Q-test, applied up to a chosen lag h, should not reject the hypothesis of no residual autocorrelation. For ARMA residuals the test's degrees of freedom are reduced by the number of estimated ARMA parameters (h - p - q), and the chosen lag h should be reported with the result. The residuals should also appear approximately normally distributed (Jarque-Bera test), and no ARCH effects should remain (Engle ARCH-LM test). A failed diagnostic suggests revising p or q.
Generate h-step-ahead point forecasts by iterating the fitted model forward. Confidence intervals widen with the horizon and are computed from the forecast error variance, which accumulates both parameter uncertainty and stochastic error.
Common pitfalls
- Fitting ARMA to a non-stationary series without testing for unit roots first — parameter estimates and forecasts will be unreliable.
- Choosing p and q by ACF/PACF alone without checking AIC/BIC, leading to over-parameterised models.
- Ignoring the Ljung-Box test on residuals and assuming the model is adequate because in-sample fit looks reasonable.
- Confusing the AR and MA orders when both ACF and PACF tail off — an ARMA(1,1) is often sufficient and should be tried before higher-order models.
- Applying ARMA to seasonal data without seasonal differencing or SARIMA terms, producing residuals with remaining periodic autocorrelation.
Frequently asked questions
What is the difference between ARMA and ARIMA?
ARMA(p,q) is for stationary series. ARIMA(p,d,q) adds d rounds of differencing to make a non-stationary series stationary before fitting an ARMA(p,q). If your series has a unit root, use ARIMA; if it is already stationary, ARMA suffices.
How do I choose p and q?
Start with the ACF and PACF plots to get candidate orders, then compare models by AIC or BIC over a grid of small (p, q) values. Prefer the model with the lowest information criterion that also passes the Ljung-Box residual test.
Can ARMA handle seasonal patterns?
Pure ARMA cannot capture seasonality. Use SARIMA, which adds seasonal AR and MA terms at the seasonal lag, or apply seasonal differencing before fitting ARMA.
Does ARMA assume normally distributed errors?
Maximum likelihood estimation is usually carried out under a Gaussian assumption, which gives the standard finite-sample inference and interval forecasts. Under standard conditions the AR and MA parameter estimates remain consistent even when the errors are non-Gaussian, but Gaussian-based standard errors, confidence intervals and forecast intervals may be unreliable, particularly with heavy-tailed or skewed errors. For known parameters, the forecast is the best linear predictor regardless of the error distribution; optimality among all predictors, not only linear ones, generally requires Gaussian errors.
What is the invertibility condition for the MA part?
Invertibility requires that all roots of theta(z) = 1 + theta_1 z + ... + theta_q z^q lie outside the unit circle. Two MA representations that differ by replacing some roots with their reciprocals have identical autocovariance structures and identical Gaussian likelihoods, so the likelihood alone cannot choose between them. By convention, estimation is carried out over the invertible representation, which is the form used for prediction and for recovering the shocks, and software typically imposes this restriction.
Related methods
Sources
Box, G. E. P., & Jenkins, G. M. (1970). Time Series Analysis: Forecasting and Control. Holden-Day.
Open publication referenceBrockwell, P. J., & Davis, R. A. (2002). Introduction to Time Series and Forecasting (2nd ed.). Springer.
ISBN: 978-0387953519