| noise | definition | listen |
|---|---|---|
| white | \(W[k]\), i.i.d. \(\mathcal N(0,1)\) | |
| low-pass | \(L[k]=0.97\,L[k-1]+W[k]\) | |
| high-pass | \(D[k]=W[k]-W[k-1]\) |
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 Gaussian with the same variance at every instant (scaled to one):
| noise | definition | listen |
|---|---|---|
| white | \(W[k]\), i.i.d. \(\mathcal N(0,1)\) | |
| low-pass | \(L[k]=0.97\,L[k-1]+W[k]\) | |
| high-pass | \(D[k]=W[k]-W[k-1]\) |
Identical marginals \(\mathcal N(0,1)\). What tells them apart is the correlation of neighbors, \(\rho\big(X[k],X[k-1]\big)=0,\ 0.97,\ -\tfrac12\).
A signal is an infinitely long random vector.
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 how to whiten a process. 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
Random process A random process assigns a whole sequence to each outcome: \[X:(\eta,k)\mapsto X[\eta,k],\qquad \eta\in H,\quad k\in\mathbb Z .\] Distribution and density depend on the instant: \[\begin{gathered}F_X(x,k)=\Prob{X[k]\le x},\qquad f_X(x,k)=\frac{\partial F_X(x,k)}{\partial x},\\ F_{XX}(x_1,x_2,k_1,k_2)=\Prob{X[k_1]\le x_1\cap X[k_2]\le x_2}.\end{gathered}\]
| \(X[\eta,k]\) | \(k\) fixed | \(k\) free |
|---|---|---|
| \(\eta\) fixed | a scalar (one dot) | a function of time (one curve) |
| \(\eta\) free | a random variable (one vertical cut) | a random process |
Six realizations of \[X[k]=\sin(\omega_0k+\Phi),\qquad \omega_0=\tfrac{3\pi}{20},\qquad \Phi\sim\mathcal U(0,2\pi).\]

One key of a modelled piano: realization \(\eta\) is a strike with velocity \(V(\eta)\sim\mathcal U\{30,\dots,110\}\), \(k\) counted from the keypress.

Across 64 strikes, \(\rho\big(X[k_1],X[k_2]\big)=+0.96\) for cuts one period (3.8 ms) apart and \(\approx0\) for cuts 0.5 ms apart: the joint law depends on which two instants.
Moments of a process \[\begin{aligned} m_X[k]&=\E{X[k]},\\ R_{XY}[k_1,k_2]&=\E{X[k_1]Y\conj[k_2]},\\ C_{XY}[k_1,k_2]&=\E{\paren{X[k_1]-m_X[k_1]}\paren{Y[k_2]-m_Y[k_2]}\conj}=R_{XY}[k_1,k_2]-m_X[k_1]\,m_Y\conj[k_2]. \end{aligned}\] With \(Y=X\) they are the autocorrelation \(R_{XX}\) and the autocovariance \(C_{XX}\).
The arithmetic of the random-vector week carries over line by line: the correlation of a sum adds up the cross terms, \[Z[k]=X[k]+Y[k]\;\Rightarrow\;R_{ZZ}[k_1,k_2]=R_{XX}[k_1,k_2]+R_{XY}[k_1,k_2]+R_{YX}[k_1,k_2]+R_{YY}[k_1,k_2].\]
First index plain, second conjugated; swapping the subscripts is the adjoint, \[R_{YX}[k_1,k_2]=R_{XY}\conj[k_2,k_1].\]
White noise \(R_{XX}[k_1,k_2]=\sigma^2[k_1]\,\delta[k_1-k_2]\) (zero mean): distinct instants uncorrelated. Strictly white: distinct instants independent.
\(X[k]=W[k]\,W[k-1]\) with \(W\) i.i.d. \(\mathcal N(0,1)\) is white but not strictly white: \[\begin{aligned} R_{XX}[k+1,k]&=\E{W[k+1]\,W[k]^2\,W[k-1]}=0,\\ \E{X[k+1]^2X[k]^2}&=\E{W^2}\E{W^4}\E{W^2}=3\;\neq\;1=\E{X[k+1]^2}\,\E{X[k]^2}. \end{aligned}\]

Three laws, one autocorrelation \(R_{XX}[k+\kappa,k]=\sigma^2\,\delta[\kappa]\): second order sees one process.
\(X[k]\) i.i.d. with zero mean and variance \(\sigma^2\), from three laws: \(\mathcal N(0,\sigma^2)\), \(\ \mathcal U(-\sqrt3\sigma,\sqrt3\sigma)\), \(\ \pm\sigma\) with probability \(\tfrac12\) each.

\[\begin{aligned} X[k]&=X[k-1]+W[k],\quad X[0]=0,\quad W[k]\overset{\text{iid}}{\sim}\mathcal N(0,\sigma^2)\\ \Rightarrow\quad X[k]&=\sum_{i=1}^{k}W[i]\sim\mathcal N(0,k\sigma^2),\qquad R_{XX}[k_1,k_2]=\sigma^2\min(k_1,k_2). \end{aligned}\]

\[\mathbf X[k]=\mathbf X[k-1]+\mathbf W[k],\quad\mathbf X[0]=\mathbf 0,\quad\mathbf W[k]\overset{\text{iid}}{\sim}\mathcal N(\mathbf 0,\sigma^2\mathbf I) \;\Rightarrow\;\mathbf X[k]\sim\mathcal N(\mathbf 0,k\sigma^2\mathbf I).\] The \(1\sigma\) ellipses are circles of radius \(\sigma\sqrt k\).

Autoregressive process \[X[k]=\sum_{i=1}^{p}a_i\,X[k-i]+W[k],\] AR(\(p\)): the last \(p\) values plus a fresh innovation \(W\), white with variance \(\sigma_W^2\).
AR(1), \(X[k]=a\,X[k-1]+W[k]\), \(X[0]=0\): \(a=1\) is the random walk; for \(\abs a<1\) the past fades, \[\begin{aligned} \Var{X[k]}&=\sigma_W^2\,\frac{1-a^{2k}}{1-a^2}\;\to\;\frac{\sigma_W^2}{1-a^2},\\ R_{XX}[k+\kappa,k]&\;\to\;\frac{\sigma_W^2}{1-a^2}\,a^{\abs\kappa}. \end{aligned}\]

Dashed: \(\pm2\sigma\). The \(L[k]\) of the first slide is AR(1) with \(a=0.97\).
\[X[k]=(1+R[k])\,X[k-1],\quad X[0]=1,\quad\ln(1+R[k])\overset{\text{iid}}{\sim}\mathcal N(0,s^2) \;\Rightarrow\;\ln X[k]\sim\mathcal N(0,ks^2),\] \[\E{X[k]}=e^{ks^2/2}\uparrow,\qquad\operatorname{median}X[k]=1,\qquad\operatorname{mode}X[k]=e^{-ks^2}\downarrow.\]

Random amplitude, \(A\sim\mathcal U(0,A_0)\): \[\begin{aligned} X[k]&=A\cos(\Omega_0k+\phi),\\ m_X[k]&=\tfrac{A_0}{2}\cos(\Omega_0k+\phi),\\ R_{XX}[k_1,k_2]&=\tfrac{A_0^2}{3}\cos(\Omega_0k_1+\phi)\cos(\Omega_0k_2+\phi). \end{aligned}\]

Random phase, \(\Phi\sim\mathcal U(0,2\pi)\): \[\begin{aligned} X[k]&=A\cos(\Omega_0k+\Phi),\\ m_X[k]&=0,\\ R_{XX}[k+\kappa,k]&=\tfrac{A^2}{2}\cos(\Omega_0\kappa). \end{aligned}\]

Stationarity Strict sense (SSS): every joint law is shift-invariant, \[F_{X[k_1],\dots,X[k_n]}(x_1,\dots,x_n)=F_{X[k_1+\kappa],\dots,X[k_n+\kappa]}(x_1,\dots,x_n)\quad\forall\,n,k_i,\kappa.\] Wide sense (WSS): only the first two moments are, \(\;m_X[k]=m_X,\quad R_{XX}[k+\kappa,k]=R_{XX}[\kappa].\)
Gaussian process \((X[k_1],\dots,X[k_n])\sim\mathcal N(\mathbf m,\mathbf C)\) for every finite set of instants, with \(m_i=m_X[k_i]\), \(C_{ij}=C_{XX}[k_i,k_j]\). Strict implies wide; for a Gaussian process, wide implies strict.
Properties of a WSS autocorrelation \[R_{XX}[\kappa]=R_{XX}\conj[-\kappa],\qquad\abs{R_{XX}[\kappa]}\le R_{XX}[0]=\E{\abs{X[k]}^2},\] and every window is positive semidefinite: \(\mathbf a\herm\mathbf R\,\mathbf a\ge0\) with \([\mathbf R]_{mn}=R_{XX}[m-n]\).
Two microphones hear one source, the second farther away: \(Y[k]=X[k-\kappa_0]+N[k]\), with \(N\) zero-mean and uncorrelated with \(X\). Then \[R_{YX}[\kappa]=\E{Y[k+\kappa]X\conj[k]}=\E{X[k+\kappa-\kappa_0]X\conj[k]}+\underbrace{\E{N[k+\kappa]X\conj[k]}}_{0}=R_{XX}[\kappa-\kappa_0].\]

\(\abs{R_{XX}[\kappa]}\le R_{XX}[0]\) puts the peak of \(R_{YX}\) at \(\kappa_0\): how sound sources and radar echoes are located.
\(X[k]=A\cos(\omega_0k+\Theta)+N[k]\) with \(\Theta\sim\mathcal U(0,2\pi)\) and \(N\) white with power \(\sigma_N^2\), independent of \(\Theta\), is WSS with \[R_{XX}[\kappa]=\tfrac{A^2}{2}\cos(\omega_0\kappa)+\sigma_N^2\,\delta[\kappa].\]

At \(\tfrac{A^2/2}{\sigma_N^2}=-15\) dB the trace hides the tone; every lag \(\kappa\neq0\) shows it.
\[X[k]=A\cos(\Omega_0k+\Phi),\quad\Omega_0\sim\mathcal U(0,\pi),\ \Phi\sim\mathcal U(0,2\pi) \;\Rightarrow\;R_{XX}[\kappa]=\tfrac{A^2}{2}\,\E{\cos(\Omega_0\kappa)}=\tfrac{A^2}{2}\,\delta[\kappa].\]

Yet every realization obeys \(X[k+1]=2\cos(\Omega_0)\,X[k]-X[k-1]\): three samples predict the rest exactly. Whiteness rules out linear prediction only; the best linear predictor here is zero.
Often you have one recording, not an ensemble. Time averages must stand in for expectations:
Ergodic in the mean and in correlation \[\begin{aligned} \bar x_K&=\frac{1}{2K+1}\sum_{k=-K}^{K}x[k]\;\xrightarrow{K\to\infty}\;m_X,\\ \hat R_{XX}[\kappa]&=\frac{1}{2K+1}\sum_{k=-K}^{K}x[k+\kappa]\,x\conj[k]\;\xrightarrow{K\to\infty}\;R_{XX}[\kappa] . \end{aligned}\]
Sufficient for the mean: correlations die out, \(\displaystyle\sum_\kappa\abs{C_{XX}[\kappa]}<\infty\).

AR(1) \(X[k]=0.8\,X[k-1]+W[k]\), \(W\) i.i.d. \(\mathcal N(0,1)\): the ensemble average \(\tfrac{1}{400}\sum_{m}x_m[k]\) (left) and the time average \(\tfrac1K\sum_{k\le K}x_m[k]\) along four realizations (right) both reach \(m_X=0\).

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] \;\le\;\frac{1}{2K+1}\sum_\kappa\abs{C_{XX}[\kappa]} .\] The bound is the sufficient condition: \(\sum_\kappa\abs{C_{XX}[\kappa]}<\infty\) makes the variance vanish like \(\frac1{2K+1}\).
For AR(1) with pole \(0\le a<1\), \(C_{XX}[\kappa]=\sigma_X^2a^{\abs\kappa}\ge0\): \[\sum_\kappa C_{XX}[\kappa]=\sigma_X^2\,\frac{1+a}{1-a} \quad\Rightarrow\quad\Var{\bar x_K}\le\frac{\sigma_X^2}{(2K+1)\,\frac{1-a}{1+a}},\] tight as \(K\) grows: an effective sample size of \((2K+1)\frac{1-a}{1+a}\).
Delay, multiply, average: \[\hat R_{XY}[\kappa]=\frac1K\sum_{k=1}^{K}x[k]\,y\conj[k-\kappa].\]
No expectation is built anywhere; ergodicity is what makes \(\hat R_{XY}[\kappa]\to R_{XY}[\kappa]\).

In practice all lags at once, by FFT: zero-pad both records to \(M\ge2K-1\) points, then \[\hat R_{XY}[\kappa]=\frac1K\,\mathrm{IDFT}_M\big\{X_n\,Y_n\conj\big\}[\kappa],\] \(O(M\log M)\) instead of \(O(K^2)\); without the padding the lags wrap around (circular correlation).
The /ks/ of a recorded word: the time-average estimate \(\hat R_{XX}[\kappa]=\frac1K\sum_kx[k]\,x[k-\kappa]\), and the joint histogram of \((x[k],x[k-\kappa])\) at three lags.

Constant process: \(X[k]=A\cos\Phi\) for all \(k\), \(\Phi\sim\mathcal U(0,2\pi)\).

WSS: \(m_X=0\), \(R_{XX}[\kappa]=\tfrac{A^2}2\). Each realization is flat:
Random frequency: \(X[k]=A\cos(\Omega_0k+\Phi)\), \(\Omega_0\sim\mathcal U(0,\pi)\), \(\Phi\sim\mathcal U(0,2\pi)\).

WSS and white: \(m_X=0\), \(R_{XX}[\kappa]=\tfrac{A^2}2\delta[\kappa]\). Each realization is one tone:
One realization, \(N\) samples, the squared magnitude of its Fourier transform: \[P_N(e^{j\Omega})=\frac1N\abs{\sum_{k=0}^{N-1}x[k]\,e^{-j\Omega k}}^2 .\] Five realizations of an AR(2) process, \(N=128\), and their periodograms: \[\small X[k]=1.27\,X[k-1]-0.81\,X[k-2]+W[k].\]
Below, averaged over 2000 realizations: the autocorrelation \(R_{XX}[\kappa]\), and the expected periodogram, a smooth curve close to \(S_{XX}\).


Power spectral density The limit of the expected periodogram, \[S_{XX}(e^{j\Omega})=\lim_{N\to\infty}\E{P_N(e^{j\Omega})}\;\ge\;0,\] non-negative because every periodogram is.
Wiener–Khinchin \[S_{XX}(e^{j\Omega})=\sum_{\kappa=-\infty}^{\infty}R_{XX}[\kappa]\,e^{-j\Omega\kappa},\qquad R_{XX}[\kappa]=\frac{1}{2\pi}\int_{-\pi}^{\pi}S_{XX}(e^{j\Omega})\,e^{j\Omega\kappa}\dd\Omega.\]
White noise: \(R_{XX}[\kappa]=\sigma^2\delta[\kappa]\;\Rightarrow\;S_{XX}(e^{j\Omega})=\sigma^2\), a flat spectrum.
\[\E{P_N(e^{j\Omega})}\to S_{XX}(e^{j\Omega}),\qquad\text{but}\qquad\Var{P_N(e^{j\Omega})}\to S_{XX}^2(e^{j\Omega})\neq0.\] White noise, \(\sigma^2=1\), \(N=1024\): one periodogram, the average of 32, and \(S_{XX}=1\).

A longer record gives more frequencies, not steadier ones.
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 .\]
The tone in noise, \(\Theta\sim\mathcal U(0,2\pi)\), \(N\) white: \[\begin{aligned} X[k]&=A\cos(\omega_0k+\Theta)+N[k],\\ R_{XX}[\kappa]&=\tfrac{A^2}{2}\cos(\omega_0\kappa)+\sigma_N^2\,\delta[\kappa],\\ S_{XX}(e^{j\Omega})&=\tfrac{\pi A^2}{2}\big[\delta(\Omega-\omega_0)+\delta(\Omega+\omega_0)\big]+\sigma_N^2 \end{aligned}\] for \(\abs\Omega\le\pi\): the noise a flat floor, the tone a pair of lines.
Concentrated in one domain, spread in the other: easy to find in frequency, hard in time.

One record, so time averages stand in for the expectation (ergodicity). The periodogram is the Fourier transform of the estimated autocorrelation: \[P_N(e^{j\Omega})=\sum_{\abs\kappa<N}\hat R_{XX}[\kappa]\,e^{-j\Omega\kappa},\qquad \hat R_{XX}[\kappa]=\frac1N\sum_{k}x[k+\kappa]\,x\conj[k].\]
At large lags \(\hat R_{XX}[\kappa]\) averages only \(N-\abs\kappa\) products: that noise is why \(\Var{P_N}\not\to0\).
Both trade frequency resolution for variance, and both are time averages doing the work of an expectation.
The /ks/ segment again: \(\hat R_{XX}[\kappa]\), and \(\hat S_{XX}\) averaged over Hann-windowed 256-sample blocks.

\(\hat R_{XX}[1]<0\) and \(S_{XX}\) rising with frequency: one fact, read in two domains.
Cross-power spectral density For jointly WSS \(X\) and \(Y\), \[S_{YX}(e^{j\Omega})=\sum_\kappa R_{YX}[\kappa]\,e^{-j\Omega\kappa},\qquad S_{XY}(e^{j\Omega})=S_{YX}\conj(e^{j\Omega}).\] Complex in general: the magnitude is the power the two share at \(\Omega\), the phase how they are shifted.
Coherence \[\rho_{YX}(e^{j\Omega})=\frac{S_{YX}(e^{j\Omega})}{\sqrt{S_{XX}(e^{j\Omega})\,S_{YY}(e^{j\Omega})}},\qquad \abs{\rho_{YX}(e^{j\Omega})}^2=\frac{\abs{S_{YX}(e^{j\Omega})}^2}{S_{XX}(e^{j\Omega})\,S_{YY}(e^{j\Omega})}\in[0,1].\] The correlation coefficient of \(X\) and \(Y\), frequency by frequency; its square is the magnitude-squared coherence, bounded by Cauchy–Schwarz.
\(\abs{\rho_{YX}}=1\) at \(\Omega\) exactly when \(Y\) is a filtered \(X\) there; noise lowers it.
Two microphones, \(Y[k]=X[k-\kappa_0]+N[k]\), \(N\) white with power \(\sigma_N^2\) and uncorrelated with \(X\): \[S_{YX}(e^{j\Omega})=S_{XX}(e^{j\Omega})\,e^{-j\Omega\kappa_0},\qquad \abs{\rho_{YX}(e^{j\Omega})}^2=\frac{S_{XX}(e^{j\Omega})}{S_{XX}(e^{j\Omega})+S_{NN}(e^{j\Omega})}.\] The delay is the slope of the phase. Welch estimates, Hann blocks of 512 samples, 7 and 127 blocks (shaded: true coherence below \(\tfrac12\)):

WSS through an LTI filter For a stable filter \(h\) with frequency response \(H\), \(\;Y[k]=\sum_lh[l]\,X[k-l]\) is WSS again, with \[\begin{aligned} R_{YX}[\kappa]&=\sum_lh[l]\,R_{XX}[\kappa-l], & S_{YX}(e^{j\Omega})&=H(e^{j\Omega})\,S_{XX}(e^{j\Omega}),\\ R_{YY}[\kappa]&=\sum_l\sum_mh[l]\,h\conj[m]\,R_{XX}[\kappa-l+m], & S_{YY}(e^{j\Omega})&=\abs{H(e^{j\Omega})}^2\,S_{XX}(e^{j\Omega}). \end{aligned}\]
Why. Insert the filter twice and take the expectation inside: \[\begin{aligned} R_{YY}[\kappa]&=\E{Y[k+\kappa]\,Y\conj[k]}=\sum_l\sum_mh[l]\,h\conj[m]\,\E{X[k+\kappa-l]\,X\conj[k-m]}\\ &=\sum_l\sum_mh[l]\,h\conj[m]\,R_{XX}[\kappa-l+m]=\big(h\ast h\herm\ast R_{XX}\big)[\kappa],\qquad h\herm[\kappa]=h\conj[-\kappa]. \end{aligned}\] \(h\) transforms to \(H\) and \(h\herm\) to \(H\conj\), so \(S_{YY}=H\,H\conj S_{XX}=\abs H^2S_{XX}\).
The process version of \(\mathbf C_{\mathbf{YY}}=\mathbf A\mathbf C_{\mathbf{XX}}\mathbf A\herm\).
White noise, \(\sigma_W^2=1\), through a 10-tap moving average \(h[k]=\tfrac1{10}\), \(0\le k<10\): \[S_{YY}(e^{j\Omega})=\frac{\sigma_W^2}{100}\abs{\frac{\sin(5\Omega)}{\sin(\Omega/2)}}^2.\]
This is what you heard at the start.

\[Y[k]=\sum_{l=0}^{47}h[l]\,B[k-l],\qquad h[l]=c\,\sin^2\frac{\pi(l+1)}{49},\qquad B[k]\overset{\text{iid}}{\sim}\{\pm1\}:\] a 48-tap Hann low-pass, \(c\) chosen so that \(\sum_lh[l]^2=1\). Then \(Y[k]\approx\mathcal N(0,1)\).

A filter colors (\(\abs{H}^2S_{XX}\), second order) and Gaussianizes (the whole law, by the central limit theorem of the first week).
A colored process \(X\) with spectrum \(S_{XX}\): which filter \(G\) makes \(Y=g\ast X\) white? \[S_{YY}=\abs{G(e^{j\Omega})}^2\,S_{XX}(e^{j\Omega})\overset{!}{=}1\quad\Longrightarrow\quad\abs{G(e^{j\Omega})}=\frac{1}{\sqrt{S_{XX}(e^{j\Omega})}} .\]
An inverse square root of the spectrum, as \(\mathbf C^{-1/2}\) whitened a random vector. It fixes only the magnitude of \(G\); the phase is free.
The low-pass noise of the first slide, \(L[k]=0.97\,L[k-1]+W[k]\), has \(S_{LL}=\sigma_W^2/\abs{1-0.97e^{-j\Omega}}^2\): \(G(z)=1-0.97z^{-1}\) returns \(W\), and it is causal.

\[\begin{aligned}H(z)&=\frac{z^{-1}-a\conj}{1-a\,z^{-1}},\quad\abs a<1\\ \Rightarrow\quad\abs{H(e^{j\Omega})}&=1,\quad S_{YY}=S_{XX}.\end{aligned}\] It smears the impulse and keeps every second-order statistic: the process version of a rotation \(\mathbf U\).
So any \(G\) with \(\abs{G}^2S_{XX}=1\) whitens, and the choices are those of the random vector:

| random vector | stationary process |
|---|---|
| Cholesky \(\mathbf D^{-1/2}\mathbf L^{-1}\): causal | minimum phase \(1/(\sigma_WH)\): causal |
| ZCA \(\mathbf C^{-1/2}\): changes least | zero phase \(1/\sqrt{S_{XX}}\) |
| rotation \(\mathbf U\) | all-pass |
Start from a causal, minimum-phase \(H(z)=\dfrac{1-b\,z^{-1}}{1-a\,z^{-1}}\), \(\abs a,\abs b<1\), and \(S_{XX}=\sigma_W^2\abs{H}^2\).

Read backwards, this is the construction: the positive lags of the cepstrum are \(\ln H\). Minimum phase is what makes them one-sided.
Causality picks the minimum-phase factor \(S_{XX}=\sigma_W^2\abs{H}^2\): \(H\) and \(1/H\) causal, \(h[0]=1\). It exists if \(\int\abs{\ln S_{XX}}\dd\Omega<\infty\) (Paley–Wiener). \[c[\kappa]=\frac1{2\pi}\int_{-\pi}^{\pi}\ln S_{XX}(e^{j\Omega})\,e^{j\Omega\kappa}\dd\Omega,\qquad \sigma_W^2=e^{c[0]},\qquad H(e^{j\Omega})=\exp\Big(\sum_{\kappa\ge1}c[\kappa]\,e^{-j\Omega\kappa}\Big).\] For an ARMA(4,2) spectrum: log, inverse transform, keep \(\kappa\ge1\), exponentiate.

\(\sigma_W^2=\exp\big(\tfrac1{2\pi}\int\ln S_{XX}\dd\Omega\big)\): the power of the white driving noise is the geometric mean of the spectrum. → Demo: whitening temperature records by spectral factorization
A record of \(N\) samples sees the \(N\times N\) window \([\mathbf R]_{mn}=R_{XX}[m-n]\), constant along every diagonal; here \(R_{XX}[\kappa]=0.9^{\abs\kappa}\cos(0.42\,\kappa)\).

On the infinite index set this matrix is a convolution; cutting out \(N\) samples truncates it.
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_\Omega[l]=e^{j\Omega l}\) and substitute \(\lambda=k-l\): \[(\mathcal R\,e_\Omega)[k]=\sum_lR_{XX}[k-l]\,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 Let \(X\) be WSS with PSD \(S_{XX}\). Then for every \(\Omega\in[-\pi,\pi)\) \[\mathcal R\,e_\Omega=S_{XX}(e^{j\Omega})\,e_\Omega,\qquad R_{XX}[k-l]=\frac1{2\pi}\int_{-\pi}^{\pi}S_{XX}(e^{j\Omega})\,e_\Omega[k]\,e_\Omega\conj[l]\dd\Omega ,\] the continuous form of \(\mathbf R=\mathbf U\boldsymbol\Lambda\mathbf U\herm\): eigenfunctions \(e_\Omega\), the same for every WSS process, and eigenvalues \(S_{XX}(e^{j\Omega})\).
Exact for the infinite process. A finite window’s Toeplitz matrix is diagonalized by the DFT only approximately, and exactly if it is circulant.
\(X[k]=0.85\,X[k-1]+W[k]\) in 64-sample blocks, with DFT coefficients \(X_n=\sum_{k=0}^{63}x[k]\,e^{-j2\pi nk/64}\):

The transform decorrelated the process without ever being told its covariance.
For \(N=4\) and real \(r_\kappa=R_{XX}[\kappa]\): \[\mathbf T=\begin{bmatrix}r_0&r_1&r_2&\mathbf{r_3}\\r_1&r_0&r_1&r_2\\r_2&r_1&r_0&r_1\\\mathbf{r_3}&r_2&r_1&r_0\end{bmatrix},\] \[\mathbf C=\begin{bmatrix}r_0&r_1&r_2&\mathbf{r_1}\\r_1&r_0&r_1&r_2\\r_2&r_1&r_0&r_1\\\mathbf{r_1}&r_2&r_1&r_0\end{bmatrix}\]
\(\mathbf C=\mathbf F\herm\boldsymbol\Lambda\mathbf F\) exactly (unitary DFT \(\mathbf F\)), with \(\lambda_n=\sum_\kappa c_\kappa e^{-j2\pi n\kappa/N}\), the spectrum of the wrapped lags at \(\Omega=\frac{2\pi n}{N}\). \(\mathbf T\)’s eigenvectors are the same sinusoids, tapered at the ends.

Eigenvalue spread and the PSD The eigenvalues of the \(N\times N\) Toeplitz correlation matrix lie between the extrema of the PSD, \[\min_\Omega S_{XX}\le\lambda_i\le\max_\Omega S_{XX},\qquad\frac{\lambda_{\max}}{\lambda_{\min}}\le\frac{\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\) with \(\frac1{2\pi}\int\abs{Q}^2\dd\Omega=1\): an average of the spectrum. Below, \(N=32\), eigenvalues as horizontal levels:

\(x[k]=\cos(\omega_0k+\theta)+n[k]\), \(N=256\): keep only the two bins at \(\pm\omega_0\), \[\hat x[k]=\frac1N\sum_{n\in\{n_0,\,N-n_0\}}X_n\,e^{j2\pi nk/N}.\]

The rank-two KLT: what remains is the noise that fell inside the two kept bins.
\(8\times8\) image blocks as 64-vectors: the KLT basis (eigenvectors of their sample correlation), the DCT-II basis \(d_u[n]=\alpha_u\cos\frac{\pi(2n+1)u}{16}\), and the energy each packs into its first coefficients.
Image blocks are nearly stationary, so their KLT is nearly the DCT: the compaction comes without computing or transmitting any eigenvectors.

This week