Stationary processes, their spectrum, and white noise through a filter
\[ % Number sets \newcommand{\Nat}{\mathbb{N}} \newcommand{\Integer}{\mathbb{Z}} \newcommand{\Real}{\mathbb{R}} \newcommand{\Complex}{\mathbb{C}} % Operators \newcommand{\SNR}{\operatorname{SNR}} \newcommand{\tr}{\operatorname{tr}} \newcommand{\re}{\operatorname{Re}} \newcommand{\im}{\operatorname{Im}} \newcommand{\sign}{\operatorname{sign}} \newcommand{\rect}{\operatorname{rect}} \newcommand{\sinc}{\operatorname{si}} \newcommand{\erf}{\operatorname{erf}} \newcommand{\erfc}{\operatorname{erfc}} \newcommand{\kurt}{\operatorname{kurt}} \newcommand{\diag}{\operatorname{diag}} \newcommand{\MSE}{\operatorname{MSE}} \newcommand{\argmin}{\operatorname*{argmin}} \newcommand{\argmax}{\operatorname*{argmax}} \newcommand{\bias}{\operatorname{bias}} \newcommand{\Bin}{\operatorname{Bin}} % Delimiters \newcommand{\paren}[1]{\left(#1\right)} \newcommand{\bracket}[1]{\left[#1\right]} \newcommand{\set}[1]{\left\{#1\right\}} \newcommand{\abs}[1]{\left\lvert #1 \right\rvert} \newcommand{\norm}[1]{\left\lVert #1 \right\rVert} \newcommand{\ip}[1]{\left\langle #1 \right\rangle} % Notation \newcommand{\dd}{\,\mathrm{d}} \newcommand{\tran}{^{\top}} \newcommand{\conv}{\ast} \newcommand{\conj}{^{*}} \newcommand{\herm}{^{\mathsf{H}}} \newcommand{\opt}{^{\star}} % Expectation and variance % \newcommand{\E}[1]{\mathbb{E}\!\left[#1\right]} \newcommand{\E}[2][]{\mathbb{E}_{#1}\!\left[#2\right]} \newcommand{\Var}[1]{\mathbb{V}\!\left[#1\right]} % Distributions \newcommand{\Gauss}{\mathcal{N}} \newcommand{\Uniform}{\mathcal{U}} \newcommand{\FT}{\mathcal{F}} % Probability \newcommand{\Prob}[1]{\mathbb{P}\!\left(#1\right)} % Misc \newcommand{\bsy}[1]{\boldsymbol{#1}} \newcommand{\calR}{\mathcal{R}} \newcommand{\calC}{\mathcal{C}} \]
Three recordings, each with the same variance at every instant, and each Gaussian:
Hiss, rumble, a thin sizzle: identical histograms. What tells them apart is how each sample relates to its neighbors.
A signal is a random vector that never ends: the Fourier transform does for it what the eigenvectors did for a face.
Describing a process. The autocorrelation, stationarity, white noise, and when one recording can stand in for all of them (ergodicity).
The spectrum. The power spectral density, what a filter does to it, and why every stationary process is white noise through a filter. Then back to a finite window, where the Fourier basis turns out to be the KLT.
In the notes Definition of a Random Process · Distributions and Expectations · Stationarity · Ergodicity · Power Spectral Density · LTI Systems and WSS Processes · Coloring, Whitening, and Spectral Factorization · The Finite Window
A random process assigns a whole sequence \(X[\eta,k]\) to each outcome \(\eta\).

Its second-order description is the autocorrelation \(R_{XX}[k_1,k_2]=\E{X[k_1]\,X\conj[k_2]}\): the correlation matrix of the random-vector week, with infinitely many rows.
Moments of a process \[m_X[k]=\E{X[k]},\qquad R_{XX}[k_1,k_2]=\E{X[k_1]X\conj[k_2]},\qquad R_{XY}[k_1,k_2]=\E{X[k_1]Y\conj[k_2]} .\]
The arithmetic of the random-vector week carries over line by line: correlations of sums add up their cross terms, and delaying a process delays its correlation, \(Y[k]=X[k-\kappa_0]\Rightarrow R_{XY}[k_1,k_2]=R_{XX}[k_1,k_2-\kappa_0]\).
The same rule names every correlation: first index plain, second conjugated. Swapping the subscripts is taking the adjoint.

Three different laws and one identical autocorrelation, \(\sigma^2\delta[\kappa]\). Everything second-order in this course sees these three as the same process.

The variance grows like \(k\) and the process never settles: the law at time \(k\) depends on \(k\). For most of signal processing we want the opposite.

Mean, median and mode drift apart as time goes on. A typical realization tells you very little about the ensemble mean: a warning worth keeping in mind for ergodicity.
The marginal alone says “noise”. The joint law of two consecutive samples is tilted: adjacent samples are negatively correlated, the time-domain signature of a hissing, high-frequency sound.

Wide-sense stationary (WSS) Constant mean, and an autocorrelation that depends only on the lag: \(R_{XX}[k+\kappa,k]=R_{XX}[\kappa]\). Strict-sense stationary: every joint law is shift-invariant.
Not knowing when you started listening is what makes a process stationary.
Strict and wide sense
The same collapse that made uncorrelated equal independent for Gaussian vectors. This course lives in the wide sense: first and second moments are what linear estimation needs.
Properties of a WSS autocorrelation \[R_{XX}[\kappa]=R_{XX}\conj[-\kappa],\qquad R_{XX}[0]=\E{\abs{X[k]}^2}\ge\abs{R_{XX}[\kappa]},\] and every finite window of lags forms a positive semidefinite matrix.
The second is Cauchy–Schwarz on \(X[k+\kappa]\) and \(X[k]\); the third says that no linear combination of samples can have negative power.
The peak at lag zero is what lets a cross-correlation locate a delay.
Two microphones hear one source, the second farther away: \(Y[k]=X[k-\kappa_0]+N[k]\).

The noise drops out of the cross-correlation and only the shifted \(R_{XX}[\kappa-\kappa_0]\) remains, peaked at \(\kappa_0\) because \(\abs{R_{XX}}\) is largest at zero lag. This is how sound sources and radar echoes are located.

Second-order statistics find what the trace hides: the tone survives at every lag, the noise only at lag zero.
White noise \(R_{XX}[\kappa]=\sigma^2\,\delta[\kappa]\): distinct instants uncorrelated, equal power, a process whose covariance matrix is the identity. Strictly white: distinct instants independent.

Whiteness is a second-order statement. Only for a Gaussian process does white mean independent.

Every realization obeys \(X[k+1]=2\cos(\Omega_0)X[k]-X[k-1]\). Three samples reveal the frequency, and everything after is predicted exactly.
Whiteness rules out linear predictability, not predictability. The best linear predictor of this process is zero; a nonlinear one is perfect.
“White” is about correlation across time, “stationary” about drift of the statistics, “Gaussian” about the shape of the law. Name which one a claim is about.
You have one recording, not an ensemble. Time averages must stand in for expectations:
Ergodic in the mean and in correlation \[\frac{1}{2K+1}\sum_{k=-K}^{K}x[k]\to m_X,\qquad \frac{1}{2K+1}\sum_{k=-K}^{K}x[k+\kappa]\,x\conj[k]\to R_{XX}[\kappa] .\]
It works when correlations die out: a time average is a sample mean of correlated terms, and its variance still shrinks as long as \(\sum_\kappa\abs{C_{XX}[\kappa]}<\infty\).
The time average over \(2K+1\) samples is a sample mean of correlated terms, so its variance keeps the cross terms:
Variance of the time average \[\Var{\bar x_K}=\frac{1}{2K+1}\sum_{\abs\kappa\le2K}\paren{1-\frac{\abs\kappa}{2K+1}}C_{XX}[\kappa] \;\approx\;\frac{1}{2K+1}\sum_\kappa C_{XX}[\kappa] .\]
If the covariance is summable this falls like \(1/K\): the effective sample size of correlated averaging, now along time. A process whose correlation never dies out has no such guarantee.
Every curve falls like \(1/K\) eventually; strong correlation only delays it. At \(a=0.98\) a record must be about a hundred times longer than for white noise to be worth the same.

\(R_{XX}[\kappa]\) is defined over an ensemble no laboratory has. What is built is a delay line, a multiplier and an integrator, and ergodicity is the entire justification for calling its output \(R_{XX}[\kappa]\).
Every number came from one recording, averaged along time, and is read as a property of the process.


Stationarity and ergodicity are independent properties. A parameter drawn once per realization (a per-device offset, a per-session gain) is never averaged out by time.
Power spectral density The limit of the expected periodogram, \[S_{XX}(e^{j\Omega})=\lim_{N\to\infty}\frac{1}{2N+1}\E{\abs{X_N(e^{j\Omega})}^2}.\]
Wiener–Khinchin \(S_{XX}(e^{j\Omega})=\sum_\kappa R_{XX}[\kappa]\,e^{-j\Omega\kappa}\), the Fourier transform of the autocorrelation.
White noise has a flat spectrum, which is where the name comes from. The expectation must come before the limit: a single periodogram never settles down.
A longer record gives more frequencies, not steadier ones. The spectrum belongs to the ensemble, which is why the definition takes the expectation before the limit.
Power is the area under the PSD \[\E{\abs{X[k]}^2}=R_{XX}[0]=\frac{1}{2\pi}\int_{-\pi}^{\pi}S_{XX}(e^{j\Omega})\dd\Omega .\]
Pass the process through a narrow bandpass around \(\Omega_0\): the output power is \(S_{XX}(e^{j\Omega_0})\) times the bandwidth. That is also why \(S_{XX}\ge0\): a power cannot be negative.

What is concentrated in one domain is spread in the other. Detecting a tone in noise is easy in frequency and hard in time.
The sign alternation of the autocorrelation and the rise of the spectrum with frequency are one fact, read in two domains.

A delay is a linear phase. The coherence \(\abs{S_{YX}}^2/(S_{XX}S_{YY})\) is a squared correlation coefficient, one frequency at a time: where it collapses, the noise has won and the phase is garbage.
WSS through an LTI filter For a stable filter \(h\) with frequency response \(H\), \(Y=h*X\) is WSS again, with \[R_{YX}=h*R_{XX},\qquad S_{YX}=H\,S_{XX},\qquad S_{YY}=\abs{H}^2\,S_{XX}.\]

The process version of \(\mathbf C_{\mathbf{YY}}=\mathbf A\mathbf C_{\mathbf{XX}}\mathbf A\herm\): a filter reshapes the spectrum by \(\abs{H}^2\). That is what you heard at the start.
A filter colors, which is the second-order statement \(\abs{H}^2S_{XX}\). A filter also Gaussianizes, which is a statement about the whole law: the central limit theorem of the first week, at work inside every filter.
Wold decomposition Every WSS process is the sum of a causal filtering of its own white innovations and a part that is perfectly predictable from its past.
So the spectrum factors, \(S_{XX}=\sigma_W^2\abs{H}^2\), with \(H\) causal and minimum phase, as long as \(\int\abs{\ln S_{XX}}\dd\Omega<\infty\) (Paley–Wiener). Then \(1/H\) is causal too, and it whitens: it recovers the innovations.
A spectrum that vanishes on a whole band fails Paley–Wiener: such a process is linearly deterministic, with nothing left to whiten.

The logarithm turns the product \(\sigma_W^2HH\conj\) into a sum, and causality becomes “keep the right half”. The innovation power \(\sigma_W^2\) is the geometric mean of the spectrum.
| random vector | stationary process |
|---|---|
| Cholesky \(\mathbf D^{-1/2}\mathbf L^{-1}\): causal | minimum-phase \(1/(\sigma_WH)\): causal, recovers the innovations |
| ZCA \(\mathbf C^{-1/2}\): changes least | zero-phase \(1/\sqrt{S_{XX}}\) |
| rotation \(\mathbf U\): keeps the covariance | all-pass filter |

Any \(G\) with \(\abs{G}^2S_{XX}=1\) whitens, so whitening a process is not unique either. Causality picks one whitener, exactly as it picked Cholesky.
For a WSS process the correlation acts on a sequence as \((\mathcal Rx)[k]=\sum_lR_{XX}[k-l]\,x[l]\), a convolution. Feed in \(e^{j\Omega l}\): \[\sum_\lambda R_{XX}[\lambda]\,e^{j\Omega(k-\lambda)}=S_{XX}(e^{j\Omega})\;e^{j\Omega k} .\]
Fourier is the KLT of every stationary process The complex exponentials are the eigenfunctions, and the PSD is the eigenvalue spectrum: the eigendecomposition done once, for every stationary process at once. Exact for the whole process; a finite window’s Toeplitz matrix is diagonalized by the DFT only approximately (exactly if circulant).
The transform decorrelated the process without ever being told its covariance.

Cutting out \(N\) samples truncates the convolution. Complex exponentials are no longer exactly the eigenvectors, and what survives is a bound.

Exact on the circle, approximate on the line, and the corners matter less and less as the window grows.
Eigenvalue spread and the PSD The eigenvalues of the \(N\times N\) Toeplitz correlation matrix lie between the extrema of the PSD, \(\min S_{XX}\le\lambda_i\le\max S_{XX}\), so \(\lambda_{\max}/\lambda_{\min}\le\max S_{XX}/\min S_{XX}\).
Why. For a unit eigenvector \(\mathbf q\) with spectrum \(Q\), \(\lambda=\mathbf q\herm\mathbf R\mathbf q=\frac{1}{2\pi}\int S_{XX}\abs{Q}^2\dd\Omega\): an average of the spectrum, which cannot leave its range. An eigenvalue is the process’s power seen through the filter \(\mathbf q\).
The eigenvalues of a finite window approach the spectrum as the window grows (Szegő), slowest where the spectrum is steepest. A short window cannot build a filter selective enough to sit on a sharp peak.

The KLT of the random-vector week, for a process: keep the strong eigen-directions, drop the noise floor. Two frequency coefficients recover the tone up to the noise that fell inside those two bins.

Image blocks are nearly stationary, so their KLT is nearly a cosine transform: the DCT gets almost all of the energy compaction without computing or transmitting any eigenvectors.
This week