In statistics, an autoregressive (AR) model is a modelled representation of a type of random process. It can be used to describe time-varying processes from many natural and artificial sources. The model specifies output variables that are dependent linearly on their own previous values on a stochastic basis. The model is in the form of a stochastic difference equation (or recurrence relation) which should not be confused with a differential equation. Together with the moving-average (MA) model, it is a special case and key component of the more general autoregressive–moving-average (ARMA) and autoregressive integrated moving average (ARIMA) models of time series, which have a more complicated stochastic structure; it is also a special case of the vector autoregressive model (VAR), which consists of a system of more than one interlocking stochastic difference equation in more than one evolving random variable. Another important extension is the time-varying autoregressive (TVAR) model, where the autoregressive coefficients are allowed to change over time to model evolving or non-stationary processes. TVAR models are widely applied in cases where the underlying dynamics of the system are not constant, such as in sensors time series modelling, climate science, economics and finance (as econometrics), signal processing, telecommunications, radar systems, and biological signals. Unlike the moving-average (MA) model, the autoregressive model is not always stationary; non-stationarity can arise either due to the presence of a unit root or due to time-varying model parameters, as in time-varying autoregressive models. Large language models are called autoregressive, but they are not a classical autoregressive model in this sense because they are not linear.
Definition The notation AR(p) indicates an autoregressive model of order p. The AR(p) model is defined as Xt=∑i=1pφiXt−i+εt, where φ1,…,φp are the parameters of the model, and εt is white noise. This can be equivalently written using the backshift operator B as Xt=∑i=1pφiBiXt+εt, so that moving the summation term to the left side and using polynomial notation gives φ(B)Xt=εt. An autoregressive model can thus be viewed as the output of an all-pole infinite impulse response filter whose input is white noise. Some parameter constraints are necessary for the model to remain weak-sense stationary. For example, processes in the AR(1) model with |φ1|≥1 are not stationary. More generally, for an AR(p) model to be weak-sense stationary, the roots of the polynomial Φ(z):=1−∑i=1pφizi must lie outside the unit circle, i.e., each (complex) root zi must satisfy |zi|>1.
Intertemporal effect of shocks In an AR process, a one-time shock affects values of the evolving variable infinitely far into the future. For example, consider the AR(1) model Xt=φ1Xt−1+εt. A non-zero value for εt at say time t=1 affects X1 by the amount ε1. Then by the AR equation for X2 in terms of X1, this affects X2 by the amount φ1ε1. Then by the AR equation for X3 in terms of X2, this affects X3 by the amount φ12ε1. Continuing this process shows that the effect of ε1 never ends, although if the process is stationary, then the effect diminishes toward zero in the limit. Because each shock affects X values infinitely far into the future from when they occur, any given value Xt is affected by shocks occurring infinitely far into the past. This can also be seen by rewriting the autoregression φ(B)Xt=εt (where the constant term has been suppressed by assuming that the variable has been measured as deviations from its mean) as Xt=1φ(B)εt. When the polynomial division on the right side is carried out, the polynomial in the backshift operator applied to εt has an infinite order—that is, an infinite number of lagged values of εt appear on the right side of the equation.
Characteristic polynomial The autocorrelation function of an AR(p) process can be expressed as ρ(τ)=∑k=1pakyk−|τ|, where yk are the roots of the polynomial φ(B)=1−∑k=1pφkBk, where B is the backshift operator, φ(⋅) is the function defining the autoregression, and φk are the coefficients in the autoregression. The formula is valid only if all the roots have multiplicity 1. The autocorrelation function of an AR(p) process is a sum of decaying exponentials.
Each real root contributes a component to the autocorrelation function that decays exponentially. Similarly, each pair of complex conjugate roots contributes an exponentially damped oscillation.
Graphs of AR(p) processes
The simplest AR process is AR(0), which has no dependence between the terms. Only the error/innovation/noise term contributes to the output of the process, so in the figure, AR(0) corresponds to white noise. For an AR(1) process with a positive φ, only the previous term in the process and the noise term contribute to the output. If φ is close to 0, then the process still looks like white noise, but as φ approaches 1, the output gets a larger contribution from the previous term relative to the noise. This results in a "smoothing" or integration of the output, similar to a low-pass filter. For an AR(2) process, the previous two terms and the noise term contribute to the output. If both φ1 and φ2 are positive, the output will resemble a low-pass filter, with the high-frequency part of the noise decreased. If φ1 is positive, while φ2 is negative, then the process favors changes in sign between terms of the process. The output oscillates. This can be linked to edge detection or detection of change in direction.
Example: An AR(1) process
… excerpt ends here. Continue reading the full article.


