Modelintro
Autoregressive model
Also called AR model, AR(p) process.
A model in which each value is a linear combination of the previous p values plus white noise. It has a causal stationary solution when the roots of phi(z) lie outside the unit circle.
An autoregressive model of order , written AR(), says that each value of a time series is a linear combination of its previous values plus a new white noise shock: . It is a regression of the series on its own past, which gives the name. When the roots of the polynomial lie outside the unit circle, the equation has one stationary solution, and that solution depends only on present and past shocks. The coefficients follow from the autocovariances through the Yule-Walker equations, and the partial autocorrelation function is zero after lag , which is how the order is chosen. The AR model is the simplest member of the ARMA family and the base of linear prediction in signal processing.
The machine
Notation. is white noise: mean 0, variance , uncorrelated at different times. means independent and identically distributed with the same moments. is the backshift operator, .
Definition. is an AR() process with mean if it is weakly stationary and
with . With an intercept , the equation reads and .
Parameter space. , and . The model is usually restricted to the causal region below, which is open and bounded.
Existence and causality. The equation has a stationary solution if and only if for , and then the solution is unique. The solution is causal, with , if and only if every root of satisfies (Brockwell and Davis 1991, Section 3.1). The weights solve , that is and . Some roots inside the unit circle and none on it give a stationary but noncausal solution, which depends on future shocks. A root on the unit circle gives no stationary solution at all: the random walk is the case , .
For AR(1) the proof is short. If , iterate the equation times: . For a stationary , , so in mean square, and this series is a solution. If , write and iterate forward to get .
AR(2). The causal region is the triangle , , . The roots are complex when , and then the autocorrelation is a damped cosine.
Markov form. Let . Then , where has first row and ones on the subdiagonal. The eigenvalues of are the reciprocals of the roots of , so causality means that all eigenvalues lie inside the unit circle. With Gaussian IID noise, is a Gaussian Markov chain and a state-space model with no observation noise.
A worked case. Take and . The roots of are and , both outside the unit circle, so the process is causal. The weights are . The variance is . The autocorrelations are , , , each from .
What it counts
The model has parameters . Everything else is a function of them.
| quantity | formula | cost from the parameters |
|---|---|---|
| autocovariance | the Yule-Walker system , | by elimination, by the step-down recursion |
| autocovariance at lag | per lag | |
| weights | per weight | |
| partial autocorrelation | ; equals at and 0 for | |
| spectral density | per frequency | |
| one-step forecast, | , error variance | |
| -step forecast | the same recursion with forecasts in place of unknown values; error variance | |
| Gaussian likelihood | the density of times of the one-step densities |
Three properties follow from the table. The autocorrelation decays geometrically: for any larger than the reciprocal of the smallest root modulus. The partial autocorrelation cuts off after lag . The best linear predictor of from all of the past uses only the last values, so the one-step prediction error of the Wold decomposition is and the AR noise is the Wold innovation.
Relation to other models
- Moving-average model. A causal AR() is an MA() with weights , and an invertible MA() is an AR(). AR and MA models are dual: the AR autocorrelation decays and the AR partial autocorrelation cuts off, and the MA has the opposite pattern.
- ARMA model. AR() is ARMA(, 0). Every stationary process with a continuous spectral density is approximated by causal AR processes in the sense that the spectral densities can be made uniformly close (Brockwell and Davis 1991, Section 4.4), but an ARMA model often needs far fewer parameters.
- ARIMA model. An AR polynomial with a factor is a unit root; ARIMA moves that factor into a difference.
- Vector autoregression. The same equation with vectors and matrix coefficients.
- ARX model. The control version, with a known input added on the right. Least squares identification of an ARX model is the conditional least squares fit of an AR model with regressors.
- Linear predictive coding. In speech processing the same model is fitted to short frames, and the coefficients are called the predictor coefficients.
- GARCH model. The squared residuals of a GARCH process follow an ARMA equation. The AR model describes the mean, and GARCH describes the conditional variance.
Known results in the model
- Yule-Walker equations. For a causal AR(), and , where and . Multiply the equation by and take expectations; causality makes uncorrelated with for . The Yule-Walker estimator puts the sample autocovariance into this system and solves it with the Levinson-Durbin recursion in .
- The fitted model is causal. With the divisor- sample autocovariance, is positive definite whenever the data are not all equal, and the Yule-Walker fit is always causal (Brockwell and Davis 1991, Section 8.1). Conditional least squares does not guarantee this, and the exact likelihood must be maximized over the causal region.
- Asymptotic normality. For a causal AR() with IID noise of finite variance, the Yule-Walker, Burg, conditional least squares and Gaussian maximum likelihood estimators all satisfy (Brockwell and Davis 1991, Section 8.10). For AR(1) the variance is . For Gaussian noise this is the inverse Fisher information, so all four are efficient. They differ in finite samples: the Yule-Walker estimator has the largest bias when a root is near the unit circle, because the divisor shrinks the sample autocovariance (see the table on the Whittle likelihood page).
- Order selection. Under an AR() model with IID noise, the sample partial autocorrelation at each lag is approximately (Quenouille 1949). So the order is the last lag outside , or the minimizer of the Akaike information criterion or the Bayesian information criterion.
- A unit root changes the rate. When in AR(1), least squares converges at rate , not , and the limit is not normal. Tests of use the Dickey-Fuller distribution; see the augmented Dickey-Fuller test.
- Noncausal models are not identified by second moments. If , the AR(1) process has the same autocovariance as the causal AR(1) with coefficient and noise variance . For AR(), reflecting a root to keeps the autocovariance up to a scale. Gaussian methods therefore fit only the causal model.
- Maximum entropy. Among all stationary processes with the given , the Gaussian AR() process with those autocovariances has the largest entropy rate. This is why the Burg method and other AR spectral estimators are called maximum entropy methods.
A hand example. Take , . The mean is , and the divisor- autocovariances are and . The Yule-Walker AR(1) fit is and . The one-step forecast is , with error variance if the parameters were known. The Yule-Walker equations page continues this example to and .
References
- G. Udny Yule, On a method of investigating periodicities in disturbed series, with special reference to Wolfer's sunspot numbers, Philosophical Transactions of the Royal Society A 226, 1927, pp. 267 to 298 (the second-order autoregression fitted to the sunspot numbers)
- Gilbert Walker, On periodicity in series of related terms, Proceedings of the Royal Society A 131, 1931, pp. 518 to 532 (the equations between the autoregressive coefficients and the autocorrelations)
- 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 3.4 (the partial autocorrelation function, pp. 98 to 102), Section 8.1 (the Yule-Walker estimates, p. 239) and Section 8.10 (their asymptotic behaviour, p. 262)
- Peter J. Brockwell and Richard A. Davis, Introduction to Time Series and Forecasting, third edition, Springer, 2016, Section 3.1 (ARMA processes, p. 73), Section 3.2 (ACF and PACF, p. 77) and Section 5.1.1 (Yule-Walker estimation, p. 123)
- James D. Hamilton, Time Series Analysis, Princeton University Press, 1994, Chapter 3 (stationary ARMA processes, pp. 43 to 71) 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 7EKFM3 Edit this page History Report an error Markdown