Chapter 09
Hard

Spectral Analysis and Linear Filters

00 · Symbol Glossary

$f(\omega)$f of omega — spectral density

The frequency-domain partner of the autocovariance γ(h)\gamma(h). On (π,π](-\pi,\pi], f(ω)dωf(\omega)\,d\omega is the contribution of frequencies near ω\omega to the variance of the series.

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

γ(h)=Cov(Xt,Xth)\gamma(h)=\mathrm{Cov}(X_t,X_{t-h}) for a weakly stationary series. Wiener–Khinchin says γ\gamma and ff are Fourier duals.

$I(\omega)$I of omega — periodogram

A raw sample estimate of f(ω)f(\omega) from one stretch of data. Noisy; useful after smoothing, or as a diagnostic that a series is not white.

$\psi(e^{-i\omega})$filter gain at frequency omega

If Yt=ψ(B)XtY_t=\psi(B)X_t, the output spectrum is ψ(eiω)2fX(ω)\lvert\psi(e^{-i\omega})\rvert^2 f_X(\omega). Band-pass and difference filters are statements about this gain.


01 · Autocovariance as a Spectrum

Weak stationarity packages all second-order dependence into γ(h)\gamma(h). The spectral density unpacks that same information by frequency: cycles of period 2π/ω2\pi/\omega rather than lags of length hh. This is not a second course in Fourier analysis. It is the ACF, rewritten so that “business-cycle band” and “high-frequency noise” become visible.

Theorem — Wiener–Khinchin (discrete time)

If {Xt}\{X_t\} is weakly stationary and hγ(h)<\sum_h\lvert\gamma(h)\rvert<\infty, there is a continuous spectral density

f(ω)=12πh=γ(h)eiωh,ω[π,π]f(\omega)=\frac{1}{2\pi}\sum_{h=-\infty}^{\infty}\gamma(h)e^{-i\omega h}, \qquad \omega\in[-\pi,\pi]

and the inversion

γ(h)=ππeiωhf(ω)dω\gamma(h)=\int_{-\pi}^{\pi} e^{i\omega h} f(\omega)\,d\omega

In particular γ(0)=Var(Xt)=ππf(ω)dω\gamma(0)=\mathrm{Var}(X_t)=\int_{-\pi}^{\pi} f(\omega)\,d\omega: variance is an integral of the spectrum.

The 1/(2π)1/(2\pi) convention is the one used in Hamilton and Brockwell–Davis. Other books fold 2π2\pi into ff; do not mix formulas across conventions.


02 · White Noise, AR(1), and Peaks

Example — White noise is flat

If εtWN(0,σ2)\varepsilon_t\sim\mathrm{WN}(0,\sigma^2), then γ(0)=σ2\gamma(0)=\sigma^2 and γ(h)=0\gamma(h)=0 for h0h\neq 0, so

fε(ω)=σ22πf_{\varepsilon}(\omega)=\frac{\sigma^2}{2\pi}

Every frequency contributes equally. A periodogram that is roughly level is the frequency-domain version of “the ACF is a spike at 00.”

Formula — Causal AR$(1)$ spectrum

For Xt=ϕXt1+εtX_t=\phi X_{t-1}+\varepsilon_t with ϕ<1\lvert\phi\rvert<1 and εtWN(0,σ2)\varepsilon_t\sim\mathrm{WN}(0,\sigma^2),

fX(ω)=σ22π11ϕeiω2=σ22π11+ϕ22ϕcosωf_X(\omega)=\frac{\sigma^2}{2\pi}\cdot\frac{1}{\lvert 1-\phi e^{-i\omega}\rvert^2}=\frac{\sigma^2}{2\pi}\cdot\frac{1}{1+\phi^2-2\phi\cos\omega}

If ϕ>0\phi>0, ff is largest at ω=0\omega=0 (low-frequency / persistent). If ϕ<0\phi<0, the peak is at ω=π\omega=\pi (period-22 oscillation). Persistence in the ACF is a low-frequency pile-up in ff.

A seasonal monthly series with a strong twelve-month cycle shows a peak near ω=2π/12\omega=2\pi/12. GARCH clustering is not a mean-spectrum story: it lives in the squares. Do not hunt for a spectral peak to “explain” volatility clustering.


03 · The Periodogram

Definition — Periodogram

For a sample X1,,XTX_1,\ldots,X_T (mean-subtracted),

I(ω)=12πTt=1TXteiωt2I(\omega)=\frac{1}{2\pi T}\left\lvert\sum_{t=1}^{T} X_t e^{-i\omega t}\right\rvert^2

At Fourier frequencies ωj=2πj/T\omega_j=2\pi j/T, I(ωj)I(\omega_j) is (approximately) an unbiased but inconsistent estimator of f(ωj)f(\omega_j): variance does not fall with TT because each ordinate behaves like a noisy draw (for Gaussian series, roughly exponential at a fixed ω\omega), not an average that shrinks as TT grows. Smooth neighboring ordinates (a spectral window) to get a stable estimate of f(ω)f(\omega).

❌ Treating one periodogram spike as a proven cycle

A single large I(ωj)I(\omega_j) can be sampling noise, a leftover calendar effect, or leakage from a nearby frequency.

Why it breaks: the periodogram is asymptotically exponential (for Gaussian series, at a fixed ω0\omega\neq 0), so the maximum over many frequencies is stochastically large even under white noise.

Consequence: prewhiten, smooth, and ask whether the peak survives a holdout or a different sample. Do not name a “cycle” from one noisy plot.


04 · Linear Filters

If Yt=jψjXtj=ψ(B)XtY_t=\sum_{j}\psi_j X_{t-j}=\psi(B)X_t with absolutely summable weights, the spectra multiply by the squared gain:

fY(ω)=ψ(eiω)2fX(ω)f_Y(\omega)=\lvert\psi(e^{-i\omega})\rvert^2 f_X(\omega)

This is why differencing kills a unit-root pile-up at ω=0\omega=0: ψ(z)=1z\psi(z)=1-z has 1eiω2=22cosω\lvert 1-e^{-i\omega}\rvert^2=2-2\cos\omega, which is 00 at ω=0\omega=0 and large at high frequency. Overdifferencing an already stationary series therefore inflates high-frequency noise — the frequency-domain version of the MA unit-root warning in Chapter 04.

A band-pass filter is a ψ\psi whose gain is near 11 on a chosen interval of ω\omega and near 00 elsewhere (business-cycle band, seasonal band). Moving averages are low-pass filters: they damp high ω\omega. The Hodrick–Prescott filter is a popular high-pass for extracting a cycle; it is an ad hoc filter with a chosen smoothing constant, not a parametric time-series model whose spectrum you would estimate from ARMA/GARCH parameters.

What this chapter does not do

Fourier inversion proofs, continuous-time spectral measures, or a full treatment of leakage, tapering, and multitaper estimates. Those belong in a time-series / signal-processing sequel. The goal here is to read γ(h)\gamma(h) as f(ω)f(\omega) and to see a filter as a gain.


05 · Exercises

EXERCISE 9.1

Only γ(0)\gamma(0) is nonzero; plug into Wiener–Khinchin.

f(ω)=γ(0)/(2π)=σ2/(2π)f(\omega)=\gamma(0)/(2\pi)=\sigma^2/(2\pi) for all ω\omega. Flat spectrum: white noise has no preferred frequency.

Using Wiener–Khinchin, compute f(ω)f(\omega) for WN(0,σ2)\mathrm{WN}(0,\sigma^2).

EXERCISE 9.2

The AR(1)(1) formula is largest at ω=0\omega=0 when ϕ>0\phi>0.

A peak at low frequency: ϕ=0.9\phi=0.9 puts most variance in long swings (slow ACF decay). That is persistence, not a business-cycle “period” unless you impose a band-pass on top.

For causal AR(1)(1) with ϕ=0.9\phi=0.9, where is f(ω)f(\omega) largest, and what does that say about the series?

EXERCISE 9.3

fY(ω)=1eiω2fX(ω)f_Y(\omega)=\lvert 1-e^{-i\omega}\rvert^2 f_X(\omega) and 1eiω2=0\lvert 1-e^{-i\omega}\rvert^2=0 at ω=0\omega=0.

Differencing annihilates ω=0\omega=0. If XX already had a spectral peak at zero (unit root or highly persistent AR), ΔX\Delta X removes it. If XX was already WN, ΔX\Delta X is MA(1)(1) with a hole at ω=0\omega=0 and extra high-frequency power — overdifferencing.

Let Yt=ΔXtY_t=\Delta X_t. What does the filter gain do at ω=0\omega=0? What goes wrong if XX was already I(0)I(0) white noise?


06 · Chapter Summary

ObjectRole
f(ω)f(\omega)Fourier dual of γ(h)\gamma(h); variance by frequency
WN spectrumflat, σ2/(2π)\sigma^2/(2\pi)
AR(1)(1)low-frequency peak if ϕ>0\phi>0
Periodogramraw, inconsistent estimate of ff; smooth it
Filter gainfY=ψ(eiω)2fXf_Y=\lvert\psi(e^{-i\omega})\rvert^2 f_X
Differencinghigh-pass that kills ω=0\omega=0

Next: Chapter 10 — State-Space Models and the Kalman Filter, when the object you care about (a latent factor, a time-varying β\beta) is not observed directly.