Fiveable

Intro to Time Series Unit 6 Review

QR code for Intro to Time Series practice questions

6.1 Autoregressive (AR) models

6.1 Autoregressive (AR) models

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
Intro to Time Series
Unit & Topic Study Guides

Introduction to Autoregressive (AR) Models

Autoregressive (AR) models predict the current value of a time series using its own past values. They're one of the foundational building blocks of ARIMA modeling, and understanding them well makes the rest of Unit 6 much easier to follow.

The core idea is simple: what happened recently in a time series often tells you something about what's happening now. AR models formalize that intuition by assuming a linear relationship between the current observation and some number of previous observations.

Key characteristics of AR models

  • The time series must be stationary, meaning its mean, variance, and autocorrelation structure don't change over time.
  • They capture autocorrelation, which is the correlation between an observation and its own lagged values.
  • The relationship between current and past values is assumed to be linear.
  • The goal is to describe the series's dynamics with as few parameters as possible.

Order of AR models

The order of an AR model, written as AR(p), tells you how many lagged terms the model uses. An AR(1) model uses only the immediately previous value; an AR(2) model uses the two most recent values, and so on.

The general equation for an AR(p) model:

yt=c+ϕ1yt1+ϕ2yt2++ϕpytp+εty_t = c + \phi_1 y_{t-1} + \phi_2 y_{t-2} + \ldots + \phi_p y_{t-p} + \varepsilon_t

Where:

  • yty_t is the current observation at time tt
  • cc is a constant term (related to the series mean)
  • ϕ1,ϕ2,,ϕp\phi_1, \phi_2, \ldots, \phi_p are the autoregressive coefficients
  • yt1,yt2,,ytpy_{t-1}, y_{t-2}, \ldots, y_{t-p} are the lagged observations
  • εt\varepsilon_t is the error term (white noise) at time tt

How to choose p: You determine the order by looking at the partial autocorrelation function (PACF) plot. The PACF shows the correlation between yty_t and ytky_{t-k} after removing the effects of all intermediate lags. If the PACF has significant spikes at lags 1 and 2 but cuts off after that, an AR(2) model is a reasonable choice.

Parameter Estimation and Model Assessment

Autoregressive models in time series, Autocorrelation functions of materially different time series

Parameter estimation for AR models

Once you've chosen the order, you need to estimate the coefficients (ϕ1,ϕ2,\phi_1, \phi_2, \ldots) and the constant cc. Two main methods are used:

Ordinary Least Squares (OLS):

  • Minimizes the sum of squared residuals between observed and predicted values.
  • Computationally straightforward since it reduces to solving a system of linear equations.
  • Provides unbiased estimates when the errors are uncorrelated and have constant variance.

Maximum Likelihood Estimation (MLE):

  • Finds the parameter values that make the observed data most probable under the model.
  • More flexible than OLS because it can handle more complex error structures.
  • Requires numerical optimization, so it's more computationally intensive.

For most intro-level AR modeling with well-behaved data, OLS and MLE produce very similar results. OLS is the simpler starting point; MLE becomes more useful when error assumptions get more complicated.

Stationarity assessment of AR models

An AR model only makes sense if the series is stationary. Checking stationarity comes down to examining the autoregressive coefficients.

For an AR(1) model yt=c+ϕ1yt1+εty_t = c + \phi_1 y_{t-1} + \varepsilon_t:

  • Stationary if ϕ1<1|\phi_1| < 1. The effect of past shocks gradually fades.
  • Random walk if ϕ1=1\phi_1 = 1. Shocks persist forever, and the series drifts without reverting to a mean.
  • Explosive if ϕ1>1|\phi_1| > 1. Values grow without bound, which isn't realistic for forecasting.

For higher-order AR(p) models, you check the characteristic equation:

1ϕ1zϕ2z2ϕpzp=01 - \phi_1 z - \phi_2 z^2 - \ldots - \phi_p z^p = 0

The model is stationary if all roots of this equation lie outside the unit circle in the complex plane. You don't typically solve this by hand; statistical software handles it for you.

If your model turns out to be non-stationary, the standard fix is differencing the series (subtracting each value from the previous one) to induce stationarity before fitting the AR model. This is exactly where the "I" in ARIMA comes from.

Application and Interpretation

Autoregressive models in time series, Autocorrelation - wikidoc

Applying AR models step by step

  1. Identify the order using the PACF plot, or use model selection criteria like AIC (Akaike Information Criterion) or BIC (Bayesian Information Criterion) to compare candidate models.
  2. Estimate the parameters using OLS or MLE.
  3. Assess the fit through diagnostic checks: examine residuals for remaining autocorrelation, check for normality, and look for patterns the model missed.
  4. Forecast future values using the fitted model.

Interpreting the coefficients

  • A positive ϕ\phi coefficient means the current value tends to move in the same direction as the lagged value. A negative coefficient means they tend to move in opposite directions.
  • Larger magnitudes (closer to 1) mean past values have a stronger, more persistent influence on the present. Smaller magnitudes mean the effect fades quickly.
  • The constant cc is related to the overall mean of the series. When all lagged terms are at zero, cc represents the baseline level.

Common applications

AR models are widely used for forecasting stock prices, exchange rates, and economic indicators. They also appear in energy demand modeling, sales forecasting, and web traffic analysis.

That said, AR models have real limitations. They assume linearity and rely solely on the series's own past. If external factors (like policy changes or weather events) drive the series, you may need to incorporate exogenous variables or use a more flexible model.