Skip to content
Time-Series
Econometrics
Ian Helfrich PhD ↗

Lecture 3 of 15

ARMA models and recoverable innovations

Can the observed history reveal the shocks that generated it?

Prerequisites: Lecture 2, polynomial roots, and geometric series.

Unzip the bundle, open its code folder, and run ch03 in Python, R, or Julia; the entry point loads the course file and data beside it.

Separate propagation from innovation memory

An autoregression propagates past outcomes. A moving-average model carries past innovations into the current observation. For a centered series, an ARMA(1,1) combines both:

Xt=ϕXt−1+εt+θεt−1.X_t=\phi X_{t-1}+\varepsilon_t+\theta\varepsilon_{t-1}.

Our convention places a plus sign before θ\theta. Software packages and textbooks sometimes use different signs. Record the convention before comparing estimates. A coefficient disagreement caused by opposite conventions is a notation mismatch, not an empirical contradiction.

Define the lag operator LXt=Xt−1LX_t=X_{t-1}. The model is (1−ϕL)Xt=(1+θL)εt(1-\phi L)X_t=(1+\theta L)\varepsilon_t. A general ARMA(p,q)(p,q) has

Φ(L)Xt=Θ(L)εt,Φ(z)=1−∑i=1pϕizi,Θ(z)=1+∑j=1qθjzj.\Phi(L)X_t=\Theta(L)\varepsilon_t, \quad \Phi(z)=1-\sum_{i=1}^p\phi_i z^i, \quad\Theta(z)=1+\sum_{j=1}^q\theta_jz^j.

For a causal stationary representation, the roots of Φ(z)=0\Phi(z)=0 must lie outside the unit circle. For an invertible innovation representation, the roots of Θ(z)=0\Theta(z)=0 must lie outside it. These conditions concern different polynomials and different questions. For ARMA(1,1), they become ∣ϕ∣<1|\phi|<1 and ∣θ∣<1|\theta|<1, respectively.

Build the moving-average representation

When ∣ϕ∣<1|\phi|<1,

Xt=1+θL1−ϕLεt=∑j=0∞ψjεt−j,X_t=\frac{1+\theta L}{1-\phi L}\varepsilon_t =\sum_{j=0}^{\infty}\psi_j\varepsilon_{t-j},

where ψ0=1\psi_0=1 and ψj=(ϕ+θ)ϕj−1\psi_j=(\phi+\theta)\phi^{j-1} for j≥1j\ge1. Obtain the coefficients by multiplying (1+θL)(1+\theta L) by ∑j≥0ϕjLj\sum_{j\ge0}\phi^jL^j. This representation shows the immediate innovation effect and the later propagation effects.

With serially uncorrelated innovations of variance σ2\sigma^2,

γ(0)=σ2∑j≥0ψj2=σ21+θ2+2ϕθ1−ϕ2.\gamma(0)=\sigma^2\sum_{j\ge0}\psi_j^2 =\sigma^2\frac{1+\theta^2+2\phi\theta}{1-\phi^2}.

The numerator and denominator are dimensionless, leaving squared outcome units. At θ=0\theta=0, this reduces to the AR(1) variance. At ϕ=0\phi=0, it becomes σ2(1+θ2)\sigma^2(1+\theta^2), the MA(1) variance. At θ=−ϕ\theta=-\phi, the lag polynomials cancel and Xt=εtX_t=\varepsilon_t. Such common factors make an unnecessarily large model observationally redundant.

The lag-one covariance is

γ(1)=ϕγ(0)+θσ2.\gamma(1)=\phi\gamma(0)+\theta\sigma^2.

Multiply the original recursion by Xt−1X_{t-1} and take expectations. The current innovation is uncorrelated with the past, while Cov⁡(εt−1,Xt−1)=σ2\operatorname{Cov}(\varepsilon_{t-1},X_{t-1})=\sigma^2. For k≥2k\ge2, γ(k)=ϕγ(k−1)\gamma(k)=\phi\gamma(k-1). The first lag therefore contains both autoregressive propagation and moving-average memory; later lags decay geometrically.

Why invertibility matters

For an MA(1), Xt=εt+θεt−1X_t=\varepsilon_t+\theta\varepsilon_{t-1}. If ∣θ∣<1|\theta|<1,

εt=(1+θL)−1Xt=∑j=0∞(−θ)jXt−j.\varepsilon_t=(1+\theta L)^{-1}X_t =\sum_{j=0}^{\infty}(-\theta)^jX_{t-j}.

The coefficients decay, so distant observations have diminishing influence on the recovered innovation. If ∣θ∣>1|\theta|>1, this backward recursion amplifies initialization error. A stable series can therefore have a noninvertible representation: stationarity does not guarantee stable recovery of shocks from observed history.

The MA(1) autocorrelation is ρ(1)=θ/(1+θ2)\rho(1)=\theta/(1+\theta^2) and ρ(k)=0\rho(k)=0 for k>1k>1. Replacing θ\theta by 1/θ1/\theta preserves ρ(1)\rho(1). It also preserves the covariance function if the innovation variance is rescaled to θ2σ2\theta^2\sigma^2. Gaussian processes with these matched covariance functions have the same distribution. An invertibility convention selects the representation with recoverable innovations; the ACF alone cannot distinguish reciprocal MA roots.

This does not mean all non-Gaussian models with the same covariance are identical in every respect. Covariance characterizes second-order behavior; additional distributional information can matter. Our elementary identification statement should remain within its assumptions.

Read an ACF and PACF without treating them as verdicts

The autocorrelation function measures the association between XtX_t and Xt−kX_{t-k}. The partial autocorrelation at lag kk removes linear dependence on the intervening k−1k-1 lags. Equivalently, it is the final coefficient in the population linear projection of XtX_t onto its first kk lags under the usual nonsingularity conditions.

For a pure AR(p)(p), the population PACF cuts off after pp and the ACF generally tails off. For a pure MA(q)(q), the population ACF cuts off after qq and the PACF generally tails off. For a mixed ARMA, both can tail off. Seasonal dynamics introduce patterns at seasonal lags. Differencing, finite samples, parameter cancellation, and near-unit roots complicate these pictures.

An estimated ACF is noisy. A familiar ±1.96/n\pm1.96/\sqrt n band is a rough white-noise reference, not a simultaneous confidence band for every lag of every fitted model. Inspecting many lags creates many opportunities for an apparent excursion. Use the plots to propose a short candidate list, then check residuals and evaluate the candidates on later targets.

Information criteria rank such a list. For a Gaussian model with kk estimated parameters fitted to nn observations, and up to terms common to every candidate,

AIC⁡=nlog⁡σ^2+2k,BIC⁡=nlog⁡σ^2+klog⁡n,\operatorname{AIC}=n\log\widehat\sigma^2+2k,\qquad \operatorname{BIC}=n\log\widehat\sigma^2+k\log n,

where σ^2\widehat\sigma^2 is the estimated innovation variance (Akaike 1974; Schwarz 1978). The preferred candidate minimizes the criterion. BIC’s penalty exceeds AIC’s once n≥8n\ge8, so BIC chooses smaller models. When the true orders are among the candidates, BIC selects them with probability approaching one, while AIC retains a positive probability of overfitting; AIC is designed instead to approximate expected predictive loss. Compute every criterion on a common estimation sample, because a model with more lags loses initial observations, and criteria computed on different samples are not comparable. Select the order inside the training window and treat that selection rule as part of the procedure that later targets evaluate.

The laboratory’s ARMA series has ϕ=0.6\phi=0.6 and θ=0.4\theta=0.4. Its sample lag-one correlation is substantially larger than the isolated MA(1) correlation 0.4/(1+0.42)0.4/(1+0.4^2). Comparing those two values does not reveal an error: one belongs to a mixed model and the other to a pure MA benchmark. Calculate the mixed-model population correlation using the formulas above before interpreting the sample.

Estimate a conditional model transparently

Given a candidate (ϕ,θ)(\phi,\theta) and an initialization ε^0=0\widehat\varepsilon_0=0, recover residuals recursively:

ε^t=Xt−ϕXt−1−θε^t−1.\widehat\varepsilon_t =X_t-\phi X_{t-1}-\theta\widehat\varepsilon_{t-1}.

Conditional sum of squares minimizes ∑tε^t2\sum_t\widehat\varepsilon_t^2. The source uses a small declared grid and excludes the first 30 residuals from the comparison. A grid estimate is transparent but coarse. It supplies neither exact maximum likelihood nor standard errors. Its pedagogical purpose is to expose the objective, initialization, parameter restrictions, and residual recursion before using a package optimizer.

When fitting real data, an exact Gaussian likelihood accounts for the initial state distribution; conditional likelihood conditions on initial information. Near boundaries, small-sample estimates can depend appreciably on that treatment. An optimizer’s successful exit does not prove the global optimum or the economic validity of the model. Retain its convergence information and inspect admissibility.

Estimate a mean explicitly, or center using training data only. Centering with the full sample before forecasting leaks future information into the historical regressors. The lecture’s synthetic ARMA is constructed with zero mean, so its grid search has no estimated mean term. That simplifying assumption must not silently migrate to an application with a changing level.

Execute, break, and repair

Run ch03 in all three languages. The declared grid includes the generating coefficients, and the shared realization selects them under the conditional criterion. The code records the conditional mean squared residual at all sixteen grid points. The minimum, 0.939 at (ϕ,θ)=(0.6,0.4)(\phi,\theta)=(0.6,0.4), is close to its neighbors 0.991 at (0.8,0.4)(0.8,0.4) and 1.010 at (0.4,0.4)(0.4,0.4), while (0.6,−0.4)(0.6,-0.4) gives 1.693. Use the grid to judge how sharply the objective distinguishes nearby candidates. Recover the residuals, then calculate their ACF. A model that reproduces the outcome’s ACF can still leave predictable residual patterns.

Set θ=1.2\theta=1.2 in the data generator and try the innovation recursion with that coefficient. Perturb the initial residual by a small amount. The initialization difference evolves as (−θ)t(-\theta)^t and grows in magnitude. Repeat at θ=0.4\theta=0.4; the difference decays. Repair the representation by finding the reciprocal invertible coefficient and rescaling innovation variance. Explain which features of the observed series are retained.

Next set θ=−ϕ\theta=-\phi. The simulated series collapses to white noise apart from initialization handling. A two-parameter model that seems flexible here is redundant. Simplify the representation and record the reason in the ledger.

Worked problems

For an MA(1) with θ=0.5\theta=0.5 and σ2=4\sigma^2=4, variance is 4(1+0.25)=54(1+0.25)=5 and lag-one covariance is 0.5(4)=20.5(4)=2. Thus ρ(1)=0.4\rho(1)=0.4. The reciprocal representation has coefficient 2 and innovation variance 1; its variance is again 5 and its lag-one covariance again 2. The first representation is invertible; the second is not.

For an ARMA(1,1) with ϕ=0.5\phi=0.5, θ=0.2\theta=0.2, and σ2=1\sigma^2=1, variance is (1+0.04+0.2)/(1−0.25)=1.6533‾(1+0.04+0.2)/(1-0.25)=1.653\overline3. Lag-one covariance is 0.5(1.6533‾)+0.2=1.0266‾0.5(1.653\overline3)+0.2=1.026\overline6, giving lag-one correlation approximately 0.621. Lag-two covariance is half the lag-one covariance. These checks establish the correct sign convention before any software result is interpreted.

For Project 1, declare a small candidate family and justify it through the target’s dynamics. Preserve the benchmark, information rule, and forecast origins. A larger model earns its place through a defensible improvement on that comparison. Lecture 4 specifies the comparison itself.

Further reading

QuantEcon’s ARMA lecture develops covariance-stationary processes in time and frequency domains. Forecasting: Principles and Practice discusses practical ARIMA model selection.

Practice and laboratory for Lecture 3