Time-Series Models for Financial Data › Autoregressive (AR) Models

Michael BrenndoerferDecember 9, 202511 min read
Quantitative FinanceAll chapters
Part 8 of 15Econometrics and Statistical Modeling
Chapter 41Time-Series Models for Financial Data › Autoregressive (AR) Models
Reading section 3 of 13 · Autoregressive (AR) Models · 11 minSection 3 of 13 · 11 min

Book contents

Section 3 of 13 · 11 min read

Time-Series Models for Financial Data › Autoregressive (AR) ModelsOne section · Sections in this chapter3 / 13 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Autoregressive models capture the idea that today's value depends linearly on past values. This concept reflects a fundamental intuition about how many processes evolve: the current state of a system depends on where it was recently. An AR(p) model expresses the current observation as a weighted sum of the previous pp observations plus a noise term. The term "autoregressive" means the series is regressed on its own past values, unlike ordinary regression which uses external variables.

The AR(1) Model

To capture the linear dependence of the current observation on its immediate predecessor, the simplest autoregressive model is AR(1). This model embodies the idea that today's value is pulled toward its previous value, with some random perturbation added. Mathematically:

Yt=c+ϕYt−1+εtY_t = c + \phi Y_{t-1} + \varepsilon_t

where:

  • YtY_t: value of the series at time tt
  • Yt−1Y_{t-1}: value of the series at time t−1t-1
  • cc: constant (intercept)
  • ϕ\phi: autoregressive coefficient
  • εt\varepsilon_t: white noise term with mean 0 and variance σ2\sigma^2

The white noise terms are assumed independent: Cov(εt,εs)=0\text{Cov}(\varepsilon_t, \varepsilon_s) = 0 for t≠st \neq s. This assumption places all predictable structure in the autoregressive relationship rather than in the shocks themselves. The parameter ϕ\phi controls the strength and direction of persistence. When ϕ\phi is positive, high values tend to be followed by high values and low values by low values. When ϕ\phi is negative, the series tends to oscillate, with high values followed by low values and vice versa. The magnitude of ϕ\phi determines how strong this tendency is.

Stationarity Conditions

For AR(1) to be stationary, we require ∣ϕ∣<1|\phi| < 1. This condition ensures that the influence of past shocks decays over time rather than persisting indefinitely or exploding. To see why this condition is necessary, assume stationarity holds and take expectations of both sides of the AR(1) equation:

E[Yt]=c+ϕE[Yt−1]+E[εt]E[Y_t] = c + \phi E[Y_{t-1}] + E[\varepsilon_t]

where:

  • E[⋅]E[\cdot]: expectation operator
  • YtY_t: value of the series at time tt
  • cc: constant term
  • ϕ\phi: autoregressive coefficient
  • εt\varepsilon_t: white noise term

Since E[Yt]=E[Yt−1]=μE[Y_t] = E[Y_{t-1}] = \mu under stationarity (the mean must be the same at all time periods), and E[εt]=0E[\varepsilon_t] = 0 by the white noise assumption, we can solve for the unconditional mean:

μ=c+ϕμ(stationarity condition)μ(1−ϕ)=c(rearrange terms)μ=c1−ϕ(solve for μ)\begin{aligned} \mu &= c + \phi \mu && \text{(stationarity condition)} \\ \mu(1 - \phi) &= c && \text{(rearrange terms)} \\ \mu &= \frac{c}{1-\phi} && \text{(solve for } \mu \text{)} \end{aligned}

where:

  • μ\mu: mean of the process
  • cc: constant term
  • ϕ\phi: autoregressive coefficient

This solution exists only if ϕ≠1\phi \neq 1. If ϕ=1\phi = 1, the denominator becomes zero and no finite mean exists, indicating a non-stationary process known as a random walk. To compute the variance, we use the independence of Yt−1Y_{t-1} and εt\varepsilon_t. This independence follows from the assumption that εt\varepsilon_t is unpredictable given past information:

Var(Yt)=Var(c+ϕYt−1+εt)=ϕ2Var(Yt−1)+Var(εt)(independent terms)=ϕ2Var(Yt−1)+σ2(simplify)\begin{aligned} \text{Var}(Y_t) &= \text{Var}(c + \phi Y_{t-1} + \varepsilon_t) \\ &= \phi^2 \text{Var}(Y_{t-1}) + \text{Var}(\varepsilon_t) && \text{(independent terms)} \\ &= \phi^2 \text{Var}(Y_{t-1}) + \sigma^2 && \text{(simplify)} \end{aligned}

where:

  • Var(Yt)\text{Var}(Y_t): variance at time tt
  • cc: constant term
  • ϕ\phi: autoregressive coefficient
  • εt\varepsilon_t: white noise term
  • σ2\sigma^2: variance of the white noise term

Under stationarity with Var(Yt)=Var(Yt−1)=γ0\text{Var}(Y_t) = \text{Var}(Y_{t-1}) = \gamma_0, we can substitute and solve for the unconditional variance:

γ0=ϕ2γ0+σ2(stationarity condition)γ0(1−ϕ2)=σ2(rearrange terms)γ0=σ21−ϕ2(solve for γ0)\begin{aligned} \gamma_0 &= \phi^2 \gamma_0 + \sigma^2 && \text{(stationarity condition)} \\ \gamma_0(1 - \phi^2) &= \sigma^2 && \text{(rearrange terms)} \\ \gamma_0 &= \frac{\sigma^2}{1-\phi^2} && \text{(solve for } \gamma_0 \text{)} \end{aligned}

where:

  • γ0\gamma_0: variance of the process (Var(Yt)\text{Var}(Y_t))
  • σ2\sigma^2: variance of the white noise term
  • ϕ\phi: autoregressive coefficient

This expression is positive and finite only if ϕ2<1\phi^2 < 1, meaning ∣ϕ∣<1|\phi| < 1. When ∣ϕ∣≥1|\phi| \geq 1, the variance formula would yield either a negative number (impossible) or infinity (the series explodes). The stationarity condition thus emerges naturally from requiring that both the mean and variance be well-defined finite constants.

ACF of AR(1)

The autocorrelation function of AR(1) decays geometrically, a signature pattern that helps us identify AR processes in empirical data. To derive the autocovariance, we work with the mean-centered series to simplify calculations. The deviation from the mean satisfies Yt−μ=ϕ(Yt−1−μ)+εtY_t - \mu = \phi(Y_{t-1} - \mu) + \varepsilon_t. Multiplying both sides by (Yt−k−μ)(Y_{t-k} - \mu) for k≥1k \geq 1 and taking expectations yields the autocovariance at lag kk:

γk=E[(Yt−μ)(Yt−k−μ)](definition of autocovariance)=E[(ϕ(Yt−1−μ)+εt)(Yt−k−μ)](substitute deviation form)=ϕE[(Yt−1−μ)(Yt−k−μ)]+E[εt(Yt−k−μ)](linearity of expectation)=ϕγk−1+0(uncorrelated error)\begin{aligned} \gamma_k &= E[(Y_t - \mu)(Y_{t-k} - \mu)] && \text{(definition of autocovariance)} \\ &= E[(\phi(Y_{t-1} - \mu) + \varepsilon_t)(Y_{t-k} - \mu)] && \text{(substitute deviation form)} \\ &= \phi E[(Y_{t-1} - \mu)(Y_{t-k} - \mu)] + E[\varepsilon_t(Y_{t-k} - \mu)] && \text{(linearity of expectation)} \\ &= \phi \gamma_{k-1} + 0 && \text{(uncorrelated error)} \end{aligned}

where:

  • γk\gamma_k: autocovariance at lag kk
  • E[⋅]E[\cdot]: expectation operator
  • YtY_t: value of the series at time tt
  • μ\mu: mean of the process
  • ϕ\phi: autoregressive coefficient
  • εt\varepsilon_t: white noise term
  • γk−1\gamma_{k-1}: autocovariance at lag k−1k-1

The key insight is that E[εt(Yt−k−μ)]=0E[\varepsilon_t(Y_{t-k} - \mu)] = 0 for k≥1k \geq 1 because the current shock εt\varepsilon_t is uncorrelated with past values of the series. This recursion γk=ϕγk−1\gamma_k = \phi \gamma_{k-1} yields γk=ϕkγ0\gamma_k = \phi^k \gamma_0 by repeated substitution, so the autocorrelation function has an elegant closed form:

ρk=ϕk\rho_k = \phi^k

where:

  • ρk\rho_k: autocorrelation at lag kk
  • ϕ\phi: autoregressive coefficient
  • kk: lag number

When ϕ>0\phi > 0, correlations decay exponentially but remain positive at all lags. This positive persistence means high values tend to be followed by somewhat high values, with the memory gradually fading. When ϕ<0\phi < 0, correlations alternate in sign while decaying in magnitude. This creates an oscillating pattern where high values tend to be followed by low values, then moderately high values, and so on. The geometric decay pattern is the hallmark of AR(1) and provides a clear diagnostic signature in sample ACF plots.

Out[2]:
Visualization
Line plot of ACF vs lag for phi = 0.9, 0.7, 0.5, all decaying toward zero without changing sign.
AR(1) ACF with positive coefficients showing monotonic geometric decay. Higher phi values produce slower decay, indicating stronger persistence.
Line plot of ACF vs lag for phi = -0.9, -0.7, -0.5, alternating between positive and negative values while decaying.
AR(1) ACF with negative coefficients showing alternating-sign decay. The oscillatory pattern reflects the mean-reverting overshoot behavior of negatively autocorrelated processes.

General AR(p) Models

The AR(p) model extends the first-order case to include pp lags, allowing for more complex dependence structures where observations depend on multiple past values:

Yt=c+ϕ1Yt−1+ϕ2Yt−2+⋯+ϕpYt−p+εtY_t = c + \phi_1 Y_{t-1} + \phi_2 Y_{t-2} + \cdots + \phi_p Y_{t-p} + \varepsilon_t

where:

  • YtY_t: value of the series at time tt
  • cc: constant term
  • ϕi\phi_i: autoregressive coefficient at lag ii
  • εt\varepsilon_t: white noise error term

Multiple lags can represent dynamics unavailable to an AR(1) model. For instance, an AR(2) model might exhibit cyclical behavior if the coefficients are chosen appropriately. Using the lag operator LL where LYt=Yt−1L Y_t = Y_{t-1}, we can express the AR(p) model compactly:

(1−ϕ1L−ϕ2L2−⋯−ϕpLp)Yt=c+εt(1 - \phi_1 L - \phi_2 L^2 - \cdots - \phi_p L^p) Y_t = c + \varepsilon_t

where:

  • YtY_t: value of the series at time tt
  • LL: lag operator such that LkYt=Yt−kL^k Y_t = Y_{t-k}
  • ϕi\phi_i: autoregressive coefficient at lag ii
  • cc: constant term
  • εt\varepsilon_t: white noise error term

We write this as Φ(L)Yt=c+εt\Phi(L) Y_t = c + \varepsilon_t where Φ(L)=1−ϕ1L−⋯−ϕpLp\Phi(L) = 1 - \phi_1 L - \cdots - \phi_p L^p is called the autoregressive polynomial. The lag operator notation provides compactness and mathematical power, allowing us to manipulate time-series equations using algebraic techniques.

Stationarity requires all roots of the characteristic polynomial Φ(z)=0\Phi(z) = 0 to lie outside the unit circle in the complex plane. This generalizes the AR(1) condition ∣ϕ∣<1|\phi| < 1 to higher-order models. For AR(2) with Yt=c+ϕ1Yt−1+ϕ2Yt−2+εtY_t = c + \phi_1 Y_{t-1} + \phi_2 Y_{t-2} + \varepsilon_t, the stationarity conditions can be expressed as three inequalities:

ϕ1+ϕ2<1ϕ2−ϕ1<1∣ϕ2∣<1\begin{aligned} \phi_1 + \phi_2 &< 1 \\ \phi_2 - \phi_1 &< 1 \\ |\phi_2| &< 1 \end{aligned}

where:

  • ϕ1,ϕ2\phi_1, \phi_2: autoregressive coefficients of the AR(2) model

These conditions define a triangular region in the (ϕ1,ϕ2)(\phi_1, \phi_2) parameter space where stationary AR(2) processes exist. Outside this region, the process either explodes or exhibits non-stationary wandering behavior.

Out[3]:
Visualization
Triangular stationarity region in the phi1-phi2 parameter space for AR(2) models.
Stationarity region for AR(2) models defined by the parameters φ₁ and φ₂. The shaded triangular area represents the set of coefficients yielding stationary processes, bounded by φ₁ + φ₂ < 1, φ₂ - φ₁ < 1, and |φ₂| < 1.

Partial Autocorrelation Function (PACF)

The partial autocorrelation at lag kk, denoted αk\alpha_k, measures the correlation between YtY_t and Yt−kY_{t-k} after removing the linear effects of intermediate lags Yt−1,…,Yt−k+1Y_{t-1}, \ldots, Y_{t-k+1}. This "partial" correlation isolates the direct relationship between observations kk periods apart, controlling for everything in between. The intuition is similar to partial correlation in regression analysis: we want to know how much additional information Yt−kY_{t-k} provides about YtY_t beyond what is already captured by the intervening observations.

For an AR(p) process, a key identification property holds:

αk={≠0for k≤p=0for k>p\alpha_k = \begin{cases} \neq 0 & \text{for } k \leq p \\ = 0 & \text{for } k > p \end{cases}

where:

  • αk\alpha_k: partial autocorrelation at lag kk
  • pp: order of the autoregressive process

This cutoff property follows from the structure of the AR(p) model. Since YtY_t depends directly only on Yt−1Y_{t-1} through Yt−pY_{t-p}, once we account for these intermediate values, Yt−kY_{t-k} for k>pk > p provides no additional predictive information. The PACF cuts off sharply after lag pp, while the ACF decays gradually. This stark contrast makes the PACF the primary tool for identifying AR order: we look for the lag after which all partial autocorrelations become insignificant.