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:
Our convention places a plus sign before . 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 . The model is . A general ARMA has
For a causal stationary representation, the roots of must lie outside the unit circle. For an invertible innovation representation, the roots of must lie outside it. These conditions concern different polynomials and different questions. For ARMA(1,1), they become and , respectively.
Build the moving-average representation
When ,
where and for . Obtain the coefficients by multiplying by . This representation shows the immediate innovation effect and the later propagation effects.
With serially uncorrelated innovations of variance ,
The numerator and denominator are dimensionless, leaving squared outcome units. At , this reduces to the AR(1) variance. At , it becomes , the MA(1) variance. At , the lag polynomials cancel and . Such common factors make an unnecessarily large model observationally redundant.
The lag-one covariance is
Multiply the original recursion by and take expectations. The current innovation is uncorrelated with the past, while . For , . The first lag therefore contains both autoregressive propagation and moving-average memory; later lags decay geometrically.
Why invertibility matters
For an MA(1), . If ,
The coefficients decay, so distant observations have diminishing influence on the recovered innovation. If , 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 and for . Replacing by preserves . It also preserves the covariance function if the innovation variance is rescaled to . 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 and . The partial autocorrelation at lag removes linear dependence on the intervening lags. Equivalently, it is the final coefficient in the population linear projection of onto its first lags under the usual nonsingularity conditions.
For a pure AR, the population PACF cuts off after and the ACF generally tails off. For a pure MA, the population ACF cuts off after 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 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 estimated parameters fitted to observations, and up to terms common to every candidate,
where is the estimated innovation variance (Akaike 1974; Schwarz 1978). The preferred candidate minimizes the criterion. BIC’s penalty exceeds AIC’s once , 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 and . Its sample lag-one correlation is substantially larger than the isolated MA(1) correlation . 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 and an initialization , recover residuals recursively:
Conditional sum of squares minimizes . 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 , is close to its neighbors 0.991 at and 1.010 at , while 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 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 and grows in magnitude. Repeat at ; 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 . 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 and , variance is and lag-one covariance is . Thus . 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 , , and , variance is . Lag-one covariance is , 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
- Assignment 3: Recoverable shocks, three tasks with worked answers.
- Run ch03 from the laboratory bundle in Python, R, or Julia.
- Lecture 3 summary, with the central equation, a problem, a failure, and its repair.