Chapter 02
Medium

Stationarity, ACF, and PACF

00 · Symbol Glossary

$\gamma(h)$gamma of h — lag-h autocovariance

For a weakly stationary series, γ(h)=Cov(Xt,Xth)\gamma(h)=\mathrm{Cov}(X_t,X_{t-h}), independent of tt. Even function: γ(h)=γ(h)\gamma(-h)=\gamma(h). γ(0)=Var(Xt)\gamma(0)=\mathrm{Var}(X_t).

$\rho(h)$rho of h — autocorrelation

ρ(h)=γ(h)/γ(0)\rho(h)=\gamma(h)/\gamma(0). Scale-free measure of linear dependence at lag hh. ρ(0)=1\rho(0)=1 and ρ(h)1\lvert\rho(h)\rvert\leq 1.

$\phi_{hh}$phi sub hh — PACF at lag h

The partial autocorrelation: correlation of XtX_t and XthX_{t-h} after linearly removing lags 1,,h11,\ldots,h-1. The AR order diagnostic in Chapter 03.

$\hat\rho(h)$sample ACF

ρ^(h)=γ^(h)/γ^(0)\hat\rho(h) = \hat\gamma(h)/\hat\gamma(0) with γ^(h)=T1t=h+1T(xtxˉ)(xthxˉ)\hat\gamma(h)=T^{-1}\sum_{t=h+1}^{T}(x_t-\bar x)(x_{t-h}-\bar x). The T1T^{-1} divisor (not ThT-h) is the usual convention; it keeps the sample covariance matrix positive semidefinite.


01 · Strict and Weak Stationarity

If the mechanism generating XtX_t does not change date, then shifting the window should not change the joint law.

Definition — Strict Stationarity

{Xt}\{X_t\} is strictly stationary if for every kk, every tt, and every lag hh,

(Xt,Xt+1,,Xt+k)  =d  (Xt+h,Xt+1+h,,Xt+k+h)(X_t,X_{t+1},\ldots,X_{t+k}) \;\stackrel{d}{=}\; (X_{t+h},X_{t+1+h},\ldots,X_{t+k+h})

The joint distribution of any block depends only on the spacing of the dates, not on their location on the calendar.

Definition — Weak (Second-Order, Covariance) Stationarity

{Xt}\{X_t\} is weakly stationary if E[Xt2]<\mathbb{E}[X_t^2]<\infty, E[Xt]=μ\mathbb{E}[X_t]=\mu (constant), and Cov(Xt,Xth)=γ(h)\mathrm{Cov}(X_t,X_{t-h})=\gamma(h) depends only on hh.

Strict stationarity plus finite variance implies weak stationarity. The converse is false: weak stationarity constrains only first and second moments. Gaussian processes are the convenient exception — a Gaussian process is strictly stationary iff it is weakly stationary (finite-dimensional laws are determined by mean and covariance).

Why weak stationarity is the working definition

ACF, ARMA, and spectral densities are second-order objects. They require γ(h)\gamma(h), not the whole law. GARCH (Chapter 06) can be strictly stationary while failing weak stationarity if α+β\alpha+\beta is too large — a reminder that the two notions part company for nonlinear models.

❌ Confusing a visual trend with nonstationarity of returns

A price chart that “goes up” is not evidence that returns are nonstationary.

Why it breaks: a random walk in PtP_t has trending levels and (under constant volatility) stationary differences. Stationarity is a statement about the object you put into γ(h)\gamma(h).

Consequence: difference or detrend first, then test the transformed series (Chapter 04), rather than declaring “the market is nonstationary” from a price plot.


02 · Autocovariance and Autocorrelation

Definition — ACF

For weakly stationary {Xt}\{X_t\} with γ(0)>0\gamma(0)>0,

ρ(h)=γ(h)γ(0),hZ\rho(h) = \frac{\gamma(h)}{\gamma(0)}, \qquad h\in\mathbb{Z}

Properties: ρ(0)=1\rho(0)=1, ρ(h)=ρ(h)\rho(-h)=\rho(h), ρ(h)1\lvert\rho(h)\rvert\leq 1. The sequence {γ(h)}\{\gamma(h)\} is positive semidefinite: for all nn and all a1,,ana_1,\ldots,a_n, i,jaiajγ(ij)0\sum_{i,j}a_i a_j\gamma(i-j)\geq 0. That is exactly Var(iaiXi)0\mathrm{Var}(\sum_i a_i X_i)\geq 0.

Example — MA(1) autocovariance

Let Xt=εt+θεt1X_t=\varepsilon_t+\theta\varepsilon_{t-1} with εtWN(0,σ2)\varepsilon_t\sim\mathrm{WN}(0,\sigma^2). Then γ(0)=σ2(1+θ2)\gamma(0)=\sigma^2(1+\theta^2), γ(1)=θσ2\gamma(1)=\theta\sigma^2, and γ(h)=0\gamma(h)=0 for h2\lvert h\rvert\geq 2. So ρ(1)=θ/(1+θ2)\rho(1)=\theta/(1+\theta^2) and ρ(h)=0\rho(h)=0 for h2\lvert h\rvert\geq 2: the ACF of an MA(1) cuts off after lag 1.


03 · Partial Autocorrelation

The ACF of an AR(1) decays geometrically, so many lags look “significant.” The PACF isolates the extra linear contribution of lag hh.

Definition — PACF

Let ϕh1,,ϕhh\phi_{h1},\ldots,\phi_{hh} be the coefficients in the hh-th linear projection

Xt=ϕh1Xt1++ϕhhXth+ηtX_t = \phi_{h1} X_{t-1}+\cdots+\phi_{hh} X_{t-h}+\eta_t

chosen to minimize E[ηt2]\mathbb{E}[\eta_t^2] (population OLS on the stationary process). The PACF at lag hh is ϕhh\phi_{hh}. Equivalently, ϕhh=Corr(Xt,Xth)\phi_{hh}=\mathrm{Corr}(X_t^\star, X_{t-h}^\star) where ^\star denotes residual after projecting on Xt1,,Xth+1X_{t-1},\ldots,X_{t-h+1}. In practice, ϕhh\phi_{hh} is the last coefficient in the lag-hh Yule–Walker / OLS projection on Xt1,,XthX_{t-1},\ldots,X_{t-h}.

For a causal AR(p)(p), ϕhh=0\phi_{hh}=0 for all h>ph>p: the PACF cuts off after lag pp. That is the identification counterpart of the MA cutoff in the ACF (Chapter 03).


04 · Sample ACF and Bartlett Bands

Definition — Sample Autocovariance
γ^(h)=1Tt=h+1T(xtxˉ)(xthxˉ),ρ^(h)=γ^(h)γ^(0)\hat\gamma(h) = \frac{1}{T}\sum_{t=h+1}^{T}(x_t-\bar x)(x_{t-h}-\bar x), \qquad \hat\rho(h)=\frac{\hat\gamma(h)}{\hat\gamma(0)}

with xˉ=T1t=1Txt\bar x = T^{-1}\sum_{t=1}^{T}x_t. Using TT rather than ThT-h is deliberate: the Toeplitz matrix of γ^\hat\gamma stays positive semidefinite.

Under iid(0,σ2)(0,\sigma^2) with finite fourth moment, Tρ^(h)N(0,1)\sqrt{T}\hat\rho(h)\Rightarrow N(0,1) for each fixed h1h\geq 1. The rule of thumb Bartlett band ±1.96/T\pm 1.96/\sqrt{T} is a 95% interval for a white-noise null. It is not valid under dependence: if the true process is AR(1) with ρ(1)=0.8\rho(1)=0.8, the sampling variance of ρ^(h)\hat\rho(h) is larger, and “spikes” at large hh are not comparable to the iid bands.

Ergodicity, in one sentence

Weak stationarity makes γ(h)\gamma(h) well-defined. Ergodicity makes γ^(h)γ(h)\hat\gamma(h)\to\gamma(h) in probability as TT\to\infty. Mixing conditions (dependence dying out) are the usual sufficient story. Without something like that, a single path need not reveal γ\gamma.

❌ Reading every spike outside ±1.96/√T as ‘significant AR structure’

With T=100T=100, twenty plotted lags, and a true WN series, several ρ^(h)\hat\rho(h) will wander outside the bands by chance (multiple testing).

Why it breaks: each band is a marginal 5% test. Twenty lags are twenty tests.

Consequence: use the bands as a screen, then confirm with a portmanteau test (Ljung–Box, Chapter 05) and with PACF/ACF patterns (cutoff vs decay), not isolated spikes.


05 · Exercises

EXERCISE 2.1

Check mean and Cov(Xt,Xth)\mathrm{Cov}(X_t,X_{t-h}) for Xt=a+bt+εtX_t = a + bt +\varepsilon_t.

E[Xt]=a+bt\mathbb{E}[X_t]=a+bt depends on tt, so {Xt}\{X_t\} is not weakly stationary. The residual εt\varepsilon_t may be; the observed series is not. Detrend first: Xta^b^tX_t-\hat a-\hat b t, then inspect ACF of residuals.

Let Xt=5+0.2t+εtX_t=5+0.2t+\varepsilon_t with εtWN(0,1)\varepsilon_t\sim\mathrm{WN}(0,1). Is {Xt}\{X_t\} weakly stationary? What transformation would you apply before computing ρ^(h)\hat\rho(h)?

EXERCISE 2.2

For MA(1), ρ(1)=θ/(1+θ2)\rho(1)=\theta/(1+\theta^2). Maximize as a function of θ\theta.

Let f(θ)=θ/(1+θ2)f(\theta)=\theta/(1+\theta^2). Then f(θ)=(1θ2)/(1+θ2)2=0f'(\theta)=(1-\theta^2)/(1+\theta^2)^2=0 at θ=±1\theta=\pm 1, and f(±1)=1/2\lvert f(\pm 1)\rvert=1/2. So ρ(1)1/2\lvert\rho(1)\rvert\leq 1/2 for every MA(1). A sample ρ^(1)=0.7\hat\rho(1)=0.7 is incompatible with an invertible (or any) MA(1) as the population ACF — look at AR or ARMA instead.

Show that every MA(1) satisfies ρ(1)1/2\lvert\rho(1)\rvert\leq 1/2. Why does a sample ACF with ρ^(1)=0.7\hat\rho(1)=0.7 argue against a pure MA(1)?

EXERCISE 2.3

AR(1) Xt=ϕXt1+εtX_t=\phi X_{t-1}+\varepsilon_t, ϕ<1\lvert\phi\rvert<1, has ρ(h)=ϕh\rho(h)=\phi^{\lvert h\rvert} and PACF ϕ11=ϕ\phi_{11}=\phi, ϕhh=0\phi_{hh}=0 for h>1h>1.

ACF: geometric decay ρ(h)=ϕh\rho(h)=\phi^h for h0h\geq 0 (here 0.7h0.7^{h}). PACF: spike at lag 1 equal to 0.70.7, then zeros. That pair is the textbook AR(1) signature, complementary to the MA(1) signature (ACF cutoff, PACF decay).

For causal AR(1) with ϕ=0.7\phi=0.7, write ρ(h)\rho(h) and describe the PACF pattern.


06 · Chapter Summary

ObjectRole
Strict stationarityJoint laws shift-invariant
Weak stationarityConstant mean, γ(h)\gamma(h) only
ACF ρ(h)\rho(h)Linear dependence at lag hh
PACF ϕhh\phi_{hh}Extra linear dependence at lag hh
Sample bands ±1.96/T\pm 1.96/\sqrt{T}WN null, not a general significance law
MA(1) ACFCuts off after lag 1; ρ(1)1/2\lvert\rho(1)\rvert\leq 1/2
AR(1) ACF / PACFGeometric decay / cutoff after lag 1

Next: Chapter 03 — Linear Processes and ARMA Models, which turn these patterns into parametric filters of white noise.