01 / 22

AR & ARMA
Models

An introduction to Autoregressive and Autoregressive Moving Average models: the foundation of modern time series analysis.

Statistics Time Series

What is a Time Series?

A time series is a sequence of data points indexed in time order. We write it as \( \{Y_t\} \) for \( t = 1, 2, 3, \ldots \). Unlike cross-sectional data, observations are not independent: each value may depend on previous values.

t \(Y_t\) Time

The Stationarity Assumption

AR and ARMA models require the time series to be weakly stationary. This means three properties hold for all \( t \):

1
Constant mean: \( E[Y_t] = \mu \) for all \( t \).
2
Constant variance: \( \text{Var}(Y_t) = \sigma^2 \) for all \( t \).
3
Autocovariance depends only on lag: \( \text{Cov}(Y_t, Y_{t-h}) = \gamma(h) \), not on \( t \).

White Noise: the Building Block

Every AR and ARMA model is driven by a white noise process \( \{\varepsilon_t\} \). White noise satisfies:

\( E[\varepsilon_t] = 0 \)
Zero mean: shocks average out to nothing.
\( \text{Var}(\varepsilon_t) = \sigma^2_\varepsilon \)
Constant variance: every shock has the same spread.
\( \text{Cov}(\varepsilon_t, \varepsilon_s) = 0 \)
Uncorrelated: past shocks tell you nothing about future shocks.

The AR(1) Model

$$ Y_t = \phi_1 Y_{t-1} + \varepsilon_t $$

The first-order autoregressive model says that today's value is a fraction of yesterday's value plus a random shock. The parameter \( \phi_1 \) controls the strength and direction of dependence.

\( |\phi_1| < 1 \)
Stationary: the series reverts to its mean over time.
\( \phi_1 = 1 \)
Random walk: non-stationary, wanders without bound.
\( |\phi_1| > 1 \)
Explosive: values diverge to infinity.

Visualizing AR(1) Behavior

Time (t) \(Y_t\) \(\mu\) \(\phi_1 = 0.9\) \(\phi_1 = 0.3\) \(\phi_1 = -0.7\)

Generalizing to AR(\(p\))

$$ Y_t = \phi_1 Y_{t-1} + \phi_2 Y_{t-2} + \cdots + \phi_p Y_{t-p} + \varepsilon_t $$

The AR(\(p\)) model regresses \( Y_t \) on its \( p \) most recent lags. The order \( p \) specifies how far back the dependence extends.

1
Compact notation: Using the backshift operator \( B \) where \( BY_t = Y_{t-1} \), we write \( \Phi(B)Y_t = \varepsilon_t \) with \( \Phi(B) = 1 - \phi_1 B - \cdots - \phi_p B^p \).
2
Stationarity condition: All roots of \( \Phi(z) = 0 \) must lie outside the unit circle in the complex plane.
3
PACF signature: The partial autocorrelation function (PACF) of an AR(\(p\)) cuts off at lag \( p \).

The MA(\(q\)) Model

$$ Y_t = \varepsilon_t + \theta_1 \varepsilon_{t-1} + \theta_2 \varepsilon_{t-2} + \cdots + \theta_q \varepsilon_{t-q} $$

The Moving Average model of order \( q \) expresses \( Y_t \) as a weighted sum of current and past shocks. Unlike AR, it looks back at errors, not at the series itself.

Always Stationary
Any MA(\(q\)) with finite \( q \) is stationary, regardless of \( \theta \) values.
ACF Signature
The ACF of an MA(\(q\)) cuts off after lag \( q \). PACF decays gradually.

AR vs MA: Key Distinction

AR(\(p\)) MA(\(q\))
Depends on Past values \( Y_{t-1}, \ldots, Y_{t-p} \) Past shocks \( \varepsilon_{t-1}, \ldots, \varepsilon_{t-q} \)
ACF Decays (exponential/oscillating) Cuts off at lag \( q \)
PACF Cuts off at lag \( p \) Decays (exponential/oscillating)
Stationarity Requires \( |\text{roots}| > 1 \) Always stationary
Invertibility Always invertible Requires \( |\text{roots}| > 1 \)

The ARMA(\(p,q\)) Model

$$ Y_t = \phi_1 Y_{t-1} + \cdots + \phi_p Y_{t-p} + \varepsilon_t + \theta_1 \varepsilon_{t-1} + \cdots + \theta_q \varepsilon_{t-q} $$

The Autoregressive Moving Average model combines both components. In compact form:

$$ \Phi(B) Y_t = \Theta(B) \varepsilon_t $$
1
Stationarity: Roots of \( \Phi(z) = 0 \) outside the unit circle.
2
Invertibility: Roots of \( \Theta(z) = 0 \) outside the unit circle.
3
Parsimony: ARMA(\(p,q\)) often needs fewer parameters than a pure AR or pure MA to fit the same data.

ACF & PACF Patterns

ACF: AR(1), \(\phi_1=0.8\) Lag h 1 3 5 7 PACF: AR(1), \(\phi_1=0.8\) Lag h 1 3 5 7 ACF: MA(1), \(\theta_1=0.8\) 1 3 5 PACF: MA(1), \(\theta_1=0.8\) 1 3 5

How to Identify & Fit an ARMA Model

1
Plot the series. Check for trends, seasonality, or changing variance. Transform or difference as needed.
2
Examine ACF and PACF. Use the cutoff patterns to choose candidate orders \( p \) and \( q \).
3
Estimate parameters. Use maximum likelihood estimation (MLE) or conditional least squares to fit \( \phi_i \) and \( \theta_j \).
4
Diagnostic checking. Residuals should resemble white noise: check with Ljung-Box test, residual ACF, and Q-Q plot.
5
Model selection. Compare candidates using AIC or BIC: lower values indicate a better balance of fit and parsimony.

Example 1: AR(1) Autocorrelation

Given \( Y_t = 0.6\, Y_{t-1} + \varepsilon_t \) with \( \sigma^2_\varepsilon = 4 \). Find the variance and autocorrelation at lag 2.

1
Variance formula: For a stationary AR(1), \( \gamma(0) = \text{Var}(Y_t) = \dfrac{\sigma^2_\varepsilon}{1 - \phi_1^2} = \dfrac{4}{1 - 0.36} = \dfrac{4}{0.64} = 6.25 \).
2
Autocorrelation: \( \rho(h) = \phi_1^h \), so \( \rho(2) = 0.6^2 = 0.36 \).

Example 2: MA(1) Autocovariance

Given \( Y_t = \varepsilon_t + 0.5\,\varepsilon_{t-1} \) with \( \sigma^2_\varepsilon = 1 \). Find \( \gamma(0) \), \( \gamma(1) \), and \( \rho(1) \).

1
Variance: \( \gamma(0) = (1 + \theta_1^2)\,\sigma^2_\varepsilon = (1 + 0.25)(1) = 1.25 \).
2
Autocovariance at lag 1: \( \gamma(1) = \theta_1\,\sigma^2_\varepsilon = 0.5 \times 1 = 0.5 \).
3
Autocorrelation: \( \rho(1) = \dfrac{\gamma(1)}{\gamma(0)} = \dfrac{0.5}{1.25} = 0.4 \). For \( h \geq 2 \), \( \rho(h) = 0 \).

Example 3: ARMA(1,1) Identification

Suppose a time series has an ACF that decays exponentially starting from lag 1, and a PACF that also decays exponentially. What model is appropriate?

ACF
Tails off (exponential decay). Not a pure MA, which would cut off.
PACF
Tails off (exponential decay). Not a pure AR, which would cut off.

Common Mistakes

✕ Fitting non-stationary data
Applying AR/ARMA to a series with a trend yields spurious results. Always test for stationarity first (ADF test).
✕ Overfitting with high orders
Choosing large \( p \) and \( q \) absorbs noise instead of signal. Use AIC/BIC to penalize model complexity.
✕ Ignoring invertibility
An MA model with roots inside the unit circle is not unique. Always check that \( \Theta(z) = 0 \) roots lie outside.

Summary of Model Properties

Property AR(\(p\)) MA(\(q\)) ARMA(\(p,q\))
ACF Tails off Cuts off at \( q \) Tails off
PACF Cuts off at \( p \) Tails off Tails off
Stationarity Roots of \( \Phi(z) \) outside unit circle Always Roots of \( \Phi(z) \) outside unit circle
Invertibility Always Roots of \( \Theta(z) \) outside unit circle Roots of \( \Theta(z) \) outside unit circle
Parameters \( \phi_1, \ldots, \phi_p \) \( \theta_1, \ldots, \theta_q \) \( \phi_1, \ldots, \phi_p, \theta_1, \ldots, \theta_q \)

Question 1 of 5

For a stationary AR(1) model \( Y_t = \phi_1 Y_{t-1} + \varepsilon_t \), which condition must hold?

Question 2 of 5

The autocorrelation function (ACF) of an MA(2) process:

Question 3 of 5

For \( Y_t = 0.5\,Y_{t-1} + \varepsilon_t \) with \( \sigma^2_\varepsilon = 3 \), what is \( \text{Var}(Y_t) \)?

Question 4 of 5

If both the sample ACF and sample PACF of a time series tail off gradually, which model class is most appropriate?

Question 5 of 5

Which of the following is always stationary, regardless of parameter values?