01 / 22

Stationarity &
Autocorrelation

Master the foundational concepts of time series analysis: when a process is stable over time, and how observations relate to their own past values.

Statistics Time Series

What Is a Time Series?

A time series is a sequence of data points indexed in time order: \( \{X_t\}_{t=1}^{T} \). Each observation \( X_t \) is a realization of a random variable at time \( t \). The entire collection is called a stochastic process.

Time (t)
\( X_t \)

Defining Stationarity

A process \( \{X_t\} \) is strictly stationary if the joint distribution of any collection \( (X_{t_1}, X_{t_2}, \ldots, X_{t_k}) \) is identical to \( (X_{t_1+h}, X_{t_2+h}, \ldots, X_{t_k+h}) \) for all \( h \). In practice, we use a weaker condition.

Strict Stationarity
All finite-dimensional distributions are shift-invariant. Very strong: rarely verifiable.
Weak (Covariance) Stationarity
Only the first two moments are shift-invariant. The practical workhorse of time series.

Conditions for Weak Stationarity

1
Constant mean: \( E[X_t] = \mu \) for all \( t \). The expected value does not depend on time.
2
Constant variance: \( \text{Var}(X_t) = \sigma^2 < \infty \) for all \( t \). The spread remains finite and unchanged.
3
Autocovariance depends only on lag: \( \text{Cov}(X_t, X_{t+h}) = \gamma(h) \) for all \( t \). The covariance between two observations depends only on their separation \( h \), not on when they occur.

Stationary vs Non-Stationary

Stationary
\( \mu \)
Non-Stationary trend Constant mean & variance Drifting mean (trend)

The Autocovariance Function

For a weakly stationary process, the autocovariance function (ACVF) at lag \( h \) is: $$ \gamma(h) = \text{Cov}(X_t, X_{t+h}) = E[(X_t - \mu)(X_{t+h} - \mu)] $$ This is well-defined because it depends only on \( h \), not on \( t \).

\( \gamma(0) \)
Equals \( \text{Var}(X_t) = \sigma^2 \). Always the largest value of the ACVF.
Symmetry
\( \gamma(h) = \gamma(-h) \). Looking forward \( h \) steps is the same as looking backward.
Positive Semi-Definite
Any valid ACVF must be positive semi-definite: ensures no negative variances.

The Autocorrelation Function (ACF)

The autocorrelation function normalizes the ACVF so values lie in \([-1, 1]\): $$ \rho(h) = \frac{\gamma(h)}{\gamma(0)} = \frac{\text{Cov}(X_t, X_{t+h})}{\text{Var}(X_t)} $$

1
\( \rho(0) = 1 \) always: every observation is perfectly correlated with itself.
2
\( |\rho(h)| \leq 1 \) for all \( h \): correlation is bounded.
3
\( \rho(h) = \rho(-h) \): symmetry inherited from \( \gamma \).

Reading a Correlogram

Lag h
\( \rho(h) \)
1.0 0.0 -1.0
\( +\frac{1.96}{\sqrt{n}} \)
\( -\frac{1.96}{\sqrt{n}} \)
0 1 2 3 4 5 6 7 8 9

ACF vs PACF

ACF \( \rho(h) \) PACF \( \phi_{hh} \)
Measures Total correlation at lag \( h \) Direct correlation at lag \( h \), removing intermediate lags
AR(p) signature Tails off (decays gradually) Cuts off after lag \( p \)
MA(q) signature Cuts off after lag \( q \) Tails off (decays gradually)
Use Identify MA order Identify AR order

White Noise: The Building Block

A white noise process \( \{W_t\} \sim \text{WN}(0, \sigma^2) \) satisfies: $$ E[W_t] = 0, \quad \text{Var}(W_t) = \sigma^2, \quad \gamma(h) = 0 \text{ for } h \neq 0 $$ It is the simplest stationary process: no memory at all.

t
\( \mu=0 \)

Example: AR(1) Process

The first-order autoregressive model is: $$ X_t = \phi X_{t-1} + W_t, \quad W_t \sim \text{WN}(0, \sigma^2) $$ It is stationary if and only if \( |\phi| < 1 \).

Mean
\( E[X_t] = 0 \)
Variance
\( \gamma(0) = \frac{\sigma^2}{1 - \phi^2} \)
ACF
\( \rho(h) = \phi^{|h|} \): exponential decay

Example: MA(1) Process

The first-order moving average model is: $$ X_t = W_t + \theta W_{t-1}, \quad W_t \sim \text{WN}(0, \sigma^2) $$ An MA(1) is always stationary regardless of \( \theta \).

1
Variance: \( \gamma(0) = \sigma^2(1 + \theta^2) \)
2
Lag-1 ACF: \( \rho(1) = \frac{\theta}{1 + \theta^2} \)
3
Lag \( h \geq 2 \) ACF: \( \rho(h) = 0 \). The ACF cuts off after lag 1.

How to Check for Stationarity

1
Plot the series. Look for trends, changing variance, or seasonal patterns. Visual inspection is always the first step.
2
Examine the ACF. A stationary series has an ACF that decays to zero. A non-stationary series has an ACF that decays very slowly or stays large.
3
Apply a unit root test. The Augmented Dickey-Fuller (ADF) test: \( H_0 \): unit root (non-stationary) vs \( H_1 \): stationary. Small p-value \( \Rightarrow \) reject non-stationarity.
4
If non-stationary, difference. Compute \( \Delta X_t = X_t - X_{t-1} \). Repeat until stationary. The number of differences needed is the integration order \( d \).

Worked Example: Sample ACF

Given observations \( x_1=2,\; x_2=5,\; x_3=4,\; x_4=7,\; x_5=6 \), compute \( \hat{\rho}(1) \).

1
Sample mean: \( \bar{x} = \frac{2+5+4+7+6}{5} = 4.8 \)
2
Sample autocovariance at lag 0: \( \hat{\gamma}(0) = \frac{1}{5}\sum_{t=1}^{5}(x_t - 4.8)^2 = \frac{7.84+0.04+0.64+4.84+1.44}{5} = 2.96 \)
3
Sample autocovariance at lag 1: \( \hat{\gamma}(1) = \frac{1}{5}\sum_{t=1}^{4}(x_t - 4.8)(x_{t+1} - 4.8) = \frac{(-2.8)(0.2)+(0.2)(-0.8)+(-0.8)(2.2)+(2.2)(1.2)}{5} = \frac{-0.56-0.16-1.76+2.64}{5} = \frac{0.16}{5} = 0.032 \)
4
Sample ACF: \( \hat{\rho}(1) = \frac{\hat{\gamma}(1)}{\hat{\gamma}(0)} = \frac{0.032}{2.96} \approx 0.011 \)

Example: The Random Walk

Consider \( X_t = X_{t-1} + W_t \), with \( X_0 = 0 \) and \( W_t \sim \text{WN}(0,1) \). This is an AR(1) with \( \phi = 1 \).

Mean
\( E[X_t] = 0 \): constant. Condition 1: ✓
Variance
\( \text{Var}(X_t) = t\sigma^2 \): grows with time. Condition 2: ✕

Common Mistakes

✕ Confusing Strict and Weak
Assuming weak stationarity implies strict stationarity. It does not, unless the process is Gaussian.
✕ Ignoring the Unit Root
Fitting ARMA to a non-stationary series produces spurious results. Always test for unit roots first.
✕ Over-differencing
Differencing a stationary series introduces unnecessary MA structure and inflates variance.

Summary of Key Concepts

Concept Definition Key Property
Weak Stationarity Constant mean, variance, and lag-dependent autocovariance Required for ARMA modeling
ACVF \( \gamma(h) \) \( \text{Cov}(X_t, X_{t+h}) \) Symmetric, positive semi-definite
ACF \( \rho(h) \) \( \gamma(h) / \gamma(0) \) Bounded by \([-1,1]\), identifies MA order
PACF \( \phi_{hh} \) Direct correlation at lag \( h \) Identifies AR order
White Noise \( \gamma(h)=0 \) for \( h \neq 0 \) No memory: the simplest stationary process

Question 1 of 5

Which of the following is not a condition for weak (covariance) stationarity?

Question 2 of 5

For an AR(1) process \( X_t = 0.6 X_{t-1} + W_t \), what is \( \rho(2) \)?

Question 3 of 5

A correlogram shows the ACF cutting off sharply after lag 2, with all higher-lag values near zero. This pattern suggests which model?

Question 4 of 5

The random walk \( X_t = X_{t-1} + W_t \) is non-stationary because:

Question 5 of 5

For an MA(1) process \( X_t = W_t + \theta W_{t-1} \), the PACF will: