Algorithm Search⌘K

Modelcore

ARMA model

Also called autoregressive moving-average model, ARMA(p, q) process.

A stationary model with an autoregressive part of order p and a moving-average part of order q, a parsimonious form for many autocorrelation patterns.

An ARMA(pp, qq) model combines an autoregression of order pp with a moving average of order qq: Xt−ϕ1Xt−1−⋯−ϕpXt−p=εt+θ1εt−1+⋯+θqεt−qX_t - \phi_1 X_{t-1} - \cdots - \phi_p X_{t-p} = \varepsilon_t + \theta_1 \varepsilon_{t-1} + \cdots + \theta_q \varepsilon_{t-q}, with white noise εt\varepsilon_t. Its moving-average weights are the coefficients of the rational function θ(z)/ϕ(z)\theta(z)/\phi(z), so a model with few parameters can produce autocorrelations that neither a short AR nor a short MA can. An ARMA(1, 1) process is an AR(∞\infty) and an MA(∞\infty) process at the same time, with only three parameters. The model is the stationary core of the Box-Jenkins method and of the ARIMA model. Its Gaussian likelihood is computed exactly by the innovations algorithm or the Kalman filter, and approximately by the Whittle likelihood.

The machine

Notation. {εt}∼WN(0,σ2)\{\varepsilon_t\} \sim \mathrm{WN}(0, \sigma^2), BB is the backshift operator, ϕ(z)=1−ϕ1z−⋯−ϕpzp\phi(z) = 1 - \phi_1 z - \cdots - \phi_p z^p and θ(z)=1+θ1z+⋯+θqzq\theta(z) = 1 + \theta_1 z + \cdots + \theta_q z^q.

Definition. {Xt}\{X_t\} is an ARMA(pp, qq) process with mean μ\mu if it is stationary and

ϕ(B)(Xt−μ)=θ(B)εt,\phi(B)(X_t - \mu) = \theta(B)\varepsilon_t,

where ϕp≠0\phi_p \ne 0, θq≠0\theta_q \ne 0, and ϕ(z)\phi(z) and θ(z)\theta(z) have no common roots.

Parameter space. β=(ϕ1,…,ϕp,θ1,…,θq)\beta = (\phi_1, \ldots, \phi_p, \theta_1, \ldots, \theta_q), σ2>0\sigma^2 > 0 and μ\mu. The standard parameter space is the open set of β\beta for which ϕ\phi and θ\theta have all roots outside the unit circle and no common roots.

Existence, causality and invertibility (Brockwell and Davis 1991, Section 3.1). With no common roots:

  • a stationary solution exists, and is unique, if and only if ϕ(z)≠0\phi(z) \ne 0 on ∣z∣=1|z| = 1;
  • the solution is causal, Xt−μ=∑j≥0ψjεt−jX_t - \mu = \sum_{j \ge 0} \psi_j \varepsilon_{t-j}, if and only if all roots of ϕ\phi satisfy ∣z∣>1|z| > 1; then ψ(z)=θ(z)/ϕ(z)\psi(z) = \theta(z)/\phi(z), which gives ψ0=1\psi_0 = 1 and ψj=θj+∑i=1min⁡(j,p)ϕiψj−i\psi_j = \theta_j + \sum_{i=1}^{\min(j, p)} \phi_i \psi_{j-i} with θj=0\theta_j = 0 for j>qj > q;
  • the process is invertible, εt=∑j≥0πj(Xt−j−μ)\varepsilon_t = \sum_{j \ge 0} \pi_j (X_{t-j} - \mu), if and only if all roots of θ\theta satisfy ∣z∣>1|z| > 1; then π(z)=ϕ(z)/θ(z)\pi(z) = \phi(z)/\theta(z).

For a causal and invertible ARMA process, εt\varepsilon_t is the innovation of the Wold decomposition, and σ2\sigma^2 is the one-step prediction error from the infinite past.

Common roots. The condition matters. (1−0.5B)Xt=(1−0.5B)εt(1 - 0.5B) X_t = (1 - 0.5B)\varepsilon_t has the solution Xt=εtX_t = \varepsilon_t, which is white noise. Every pair ϕ1=−θ1=c\phi_1 = -\theta_1 = c gives the same process, so the parameters are not identified. Near such a cancellation, estimates of ϕ\phi and θ\theta are unstable.

A worked case. Take ARMA(1, 1) with ϕ=0.5\phi = 0.5, θ=0.4\theta = 0.4, σ2=1\sigma^2 = 1. Then ψj=(ϕ+θ)ϕj−1\psi_j = (\phi + \theta)\phi^{j-1} for j≥1j \ge 1, so ψ=1,0.9,0.45,0.225,…\psi = 1, 0.9, 0.45, 0.225, \ldots From γ(h)=σ2∑jψjψj+h\gamma(h) = \sigma^2 \sum_j \psi_j \psi_{j+h}:

γ(0)=1+(ϕ+θ)21−ϕ2=1+0.810.75=2.08,γ(1)=(ϕ+θ)+(ϕ+θ)2ϕ1−ϕ2=0.9+0.54=1.44,\gamma(0) = 1 + \frac{(\phi + \theta)^2}{1 - \phi^2} = 1 + \frac{0.81}{0.75} = 2.08, \qquad \gamma(1) = (\phi + \theta) + \frac{(\phi + \theta)^2 \phi}{1 - \phi^2} = 0.9 + 0.54 = 1.44,

and γ(h)=ϕ γ(h−1)\gamma(h) = \phi\, \gamma(h - 1) for h≥2h \ge 2. So ρ=1,0.6923,0.3462,0.1731,…\rho = 1, 0.6923, 0.3462, 0.1731, \ldots The partial autocorrelations are 0.6923,−0.2557,0.1010,−0.0403,…0.6923, -0.2557, 0.1010, -0.0403, \ldots Neither function cuts off.

What it counts

The model has p+q+2p + q + 2 parameters. The table lists what follows from them.

quantity formula cost from the parameters
ψ\psi and π\pi weights the recursions above O(p+q)O(p + q) per weight
autocovariance γ(k)−∑iϕiγ(k−i)=σ2∑j=kqθjψj−k\gamma(k) - \sum_i \phi_i \gamma(k - i) = \sigma^2 \sum_{j=k}^{q} \theta_j \psi_{j-k}: solve it for 0≤k≤p0 \le k \le p as a linear system in γ(0),…,γ(p)\gamma(0), \ldots, \gamma(p), then use it as a recursion for k>pk > p (the right side is 0 for k>qk > q) O(p3+q(p+q))O(p^3 + q(p + q)), then O(p)O(p) per lag
spectral density f(λ)=σ22π∣θ(e−iλ)∣2∣ϕ(e−iλ)∣2f(\lambda) = \dfrac{\sigma^2}{2\pi} \dfrac{\lvert \theta(e^{-i\lambda}) \rvert^2}{\lvert \phi(e^{-i\lambda}) \rvert^2} O(p+q)O(p + q) per frequency
forecasts and their errors the innovations algorithm on Wt=σ−1ϕ(B)XtW_t = \sigma^{-1}\phi(B)X_t for t>pt > p; error variance σ2∑j<hψj2\sigma^2 \sum_{j<h} \psi_j^2 for the infinite past O(nmax⁡(p,q)2)O(n \max(p, q)^2) for all nn one-step forecasts
exact Gaussian likelihood from the same one-step errors and variances O(nmax⁡(p,q)2)O(n \max(p, q)^2)
Whittle approximation sum over Fourier frequencies O(nlog⁡n)O(n \log n)

The autocorrelation and partial autocorrelation patterns give the classic identification table:

model autocorrelation partial autocorrelation
AR(pp) decays geometrically zero after lag pp
MA(qq) zero after lag qq decays geometrically
ARMA(pp, qq), p,q≥1p, q \ge 1 decays geometrically after lag q−pq - p decays geometrically after lag p−qp - q

Relation to other models

  • AR and MA. ARMA(pp, 0) is AR(pp) and ARMA(0, qq) is MA(qq). A causal ARMA process is MA(∞\infty), and an invertible one is AR(∞\infty).
  • ARIMA model. XX is ARIMA(pp, dd, qq) when its dd-th difference is ARMA(pp, qq). This adds unit roots to ϕ\phi.
  • State-space model. Every ARMA process is the output of a linear Gaussian state space model with a state of dimension r=max⁡(p,q+1)r = \max(p, q + 1). The Kalman filter then gives the exact likelihood and handles missing values.
  • Rational spectra. ARMA processes are exactly the stationary processes with a rational spectral density. Rational functions are dense among continuous spectral densities, so any such density is approximated by ARMA spectral densities (Brockwell and Davis 1991, Section 4.4).
  • ARMAX model. The system identification version adds a known input utu_t with its own polynomial. Its parameters are fitted by the prediction error method, which for Gaussian noise is the exact maximum likelihood estimate.
  • GARCH model. The squared shocks of a GARCH process with finite fourth moment follow an ARMA equation, with a white noise that is uncorrelated but not independent. The ARMA model describes the conditional mean and GARCH the conditional variance.

Known results in the model

  • Maximum likelihood. For a causal invertible ARMA(pp, qq) with IID noise of finite variance, the Gaussian maximum likelihood estimate β^\hat\beta is consistent and n(β^−β)→N(0,V(β))\sqrt{n}(\hat\beta - \beta) \to N(0, V(\beta)), also when the noise is not Gaussian (Brockwell and Davis 1991, Section 8.8). Here V(β)=σ2(E[UtUt⊤])−1V(\beta) = \sigma^2 \left(\mathbb{E}[\mathbf{U}_t \mathbf{U}_t^\top]\right)^{-1}, where Ut=(Ut,…,Ut−p+1,Vt,…,Vt−q+1)\mathbf{U}_t = (U_t, \ldots, U_{t-p+1}, V_t, \ldots, V_{t-q+1}), ϕ(B)Ut=εt\phi(B) U_t = \varepsilon_t and θ(B)Vt=εt\theta(B) V_t = \varepsilon_t.
  • ARMA(1, 1) variance. From that formula, E[Ut2]=σ2/(1−ϕ2)\mathbb{E}[U_t^2] = \sigma^2/(1 - \phi^2), E[Vt2]=σ2/(1−θ2)\mathbb{E}[V_t^2] = \sigma^2/(1 - \theta^2) and E[UtVt]=σ2/(1+ϕθ)\mathbb{E}[U_t V_t] = \sigma^2/(1 + \phi\theta). Inverting the 2 by 2 matrix gives
V(ϕ,θ)=1+ϕθ(ϕ+θ)2((1−ϕ2)(1+ϕθ)−(1−ϕ2)(1−θ2)−(1−ϕ2)(1−θ2)(1−θ2)(1+ϕθ)).V(\phi, \theta) = \frac{1 + \phi\theta}{(\phi + \theta)^2} \begin{pmatrix} (1 - \phi^2)(1 + \phi\theta) & -(1 - \phi^2)(1 - \theta^2) \\ -(1 - \phi^2)(1 - \theta^2) & (1 - \theta^2)(1 + \phi\theta) \end{pmatrix}.

At ϕ=0.5\phi = 0.5 and θ=0.4\theta = 0.4, the variances are 1.333/n1.333/n and 1.493/n1.493/n and the correlation is −0.66-0.66. As ϕ+θ→0\phi + \theta \to 0 the variance has no bound: this is the common root problem in numbers.

  • Least squares and Whittle. Conditional least squares, unconditional least squares and the Whittle likelihood estimate have the same limit distribution as the maximum likelihood estimate. They differ in finite samples, most near the boundary of the parameter space.
  • Preliminary estimates. The likelihood is not concave in β\beta, so a start point matters. The Yule-Walker equations give a start for the AR part, the innovations algorithm one for the MA part (Brockwell and Davis 1991, Section 8.4 for the mixed case), and the Hannan-Rissanen method one for both by two least squares regressions.
  • Order selection. Overfitting is not harmless: ARMA(p+1p + 1, q+1q + 1) fitted to an ARMA(pp, qq) process has a common root, so its parameters are not identified. Orders are chosen by the corrected Akaike information criterion (AICC) or the Bayesian information criterion, and the residuals are checked by the Ljung-Box test.
  • Forecasts. The best linear forecast of Xn+hX_{n+h} converges to μ\mu geometrically as hh grows, and its error variance converges to γ(0)\gamma(0).

References

  1. Peter J. Brockwell and Richard A. Davis, Time Series: Theory and Methods, second edition, Springer, 1991, Section 3.1 (causality and invertibility, pp. 77 to 88), Section 3.3 (computing the autocovariance, p. 91), Section 4.4 (rational spectral densities, p. 122), Section 5.3 (recursive prediction of an ARMA process, p. 175), Section 8.7 (maximum likelihood and least squares, p. 256) and Section 8.8 (asymptotic properties, p. 258)
  2. Peter J. Brockwell and Richard A. Davis, Introduction to Time Series and Forecasting, third edition, Springer, 2016, Section 3.1 (ARMA(p, q) processes, p. 73), Section 3.2 (ACF and PACF, p. 77), Section 3.3 (forecasting, p. 87), Section 5.2 (maximum likelihood, p. 139) and Section 5.5 (order selection, p. 149)
  3. 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 (stochastic models and their forecasting) and Part II (model identification, estimation and diagnostic checking)
  4. James D. Hamilton, Time Series Analysis, Princeton University Press, 1994, Chapter 3 (stationary ARMA processes, pp. 43 to 71), Chapter 4 (forecasting, pp. 72 to 116) and Chapter 5 (maximum likelihood estimation, pp. 117 to 151)

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/6K4KHK/text.yaml