Autocorrelation and Autocovariance

The Central Role of Autocorrelation

For a WSS process, the autocorrelation function rXX(Ο„)r_{XX}(\tau) encodes how the process at time tt relates to itself at time t+Ο„t + \tau. This single function determines the average power (rXX(0)r_{XX}(0)), the rate of fluctuation (how fast rXX(Ο„)r_{XX}(\tau) decays), the bandwidth (via the power spectral density, which is the Fourier transform of rXXr_{XX} β€” Chapter 14), and the performance of optimal linear filters. Understanding the properties of rXXr_{XX} is the gateway to spectral analysis and filter design.

Definition:

Autocorrelation Function

For a second-order process {X(t):t∈T}\{X(t) : t \in \mathcal{T}\}, the autocorrelation function is rXX(t1,t2)=E[X(t1)Xβˆ—(t2)].r_{XX}(t_1, t_2) = \mathbb{E}[X(t_1)X^*(t_2)].

If X(t)X(t) is WSS, then rXX(t1,t2)=rXX(t1βˆ’t2)β‰œrXX(Ο„)r_{XX}(t_1, t_2) = r_{XX}(t_1 - t_2) \triangleq r_{XX}(\tau), where Ο„=t1βˆ’t2\tau = t_1 - t_2.

For a discrete-time WSS process: rxx[k]=E[XnXnβˆ’kβˆ—]r_{xx}[k] = \mathbb{E}[X_n X_{n-k}^*] (independent of nn).

Definition:

Autocovariance Function

The autocovariance function of a second-order process is cXX(t1,t2)=Cov(X(t1),X(t2))=rXX(t1,t2)βˆ’ΞΌX(t1)ΞΌXβˆ—(t2).c_{XX}(t_1, t_2) = \text{Cov}(X(t_1), X(t_2)) = r_{XX}(t_1, t_2) - \mu_X(t_1)\mu_X^*(t_2).

For a WSS process with mean ΞΌ\mu: cXX(Ο„)=rXX(Ο„)βˆ’βˆ£ΞΌβˆ£2.c_{XX}(\tau) = r_{XX}(\tau) - |\mu|^2.

The autocovariance measures the fluctuation around the mean. If X(t)X(t) has zero mean, then cXX(Ο„)=rXX(Ο„)c_{XX}(\tau) = r_{XX}(\tau).

Theorem: Properties of the WSS Autocorrelation

Let {X(t)}\{X(t)\} be a WSS process with autocorrelation rXX(Ο„)r_{XX}(\tau). Then:

  1. Average power: rXX(0)=E[∣X(t)∣2]β‰₯0r_{XX}(0) = \mathbb{E}[|X(t)|^2] \geq 0.

  2. Hermitian symmetry: rXX(Ο„)=rXXβˆ—(βˆ’Ο„)r_{XX}(\tau) = r_{XX}^*(-\tau). For real-valued processes: rXX(Ο„)=rXX(βˆ’Ο„)r_{XX}(\tau) = r_{XX}(-\tau) (even function).

  3. Maximum at the origin: ∣rXX(Ο„)βˆ£β‰€rXX(0)|r_{XX}(\tau)| \leq r_{XX}(0) for all Ο„\tau.

  4. Non-negative definiteness: For any NN, any (t1,…,tN)(t_1, \ldots, t_N), and any (a1,…,aN)∈CN(a_1, \ldots, a_N) \in \mathbb{C}^N: βˆ‘i=1Nβˆ‘j=1Naiajβˆ—rXX(tiβˆ’tj)β‰₯0.\sum_{i=1}^{N}\sum_{j=1}^{N} a_i a_j^* r_{XX}(t_i - t_j) \geq 0.

Property 3 says that X(t)X(t) is most correlated with itself (at lag zero). This is intuitive: the best predictor of a signal is the signal itself, and correlation decreases as you look further into the past or future. Property 4 ensures that the variance of any linear combination βˆ‘aiX(ti)\sum a_i X(t_i) is non-negative.

Definition:

Non-Negative Definite Function (Definition 50)

A Hermitian symmetric function f:TΓ—Tβ†’Cf : \mathcal{T} \times \mathcal{T} \to \mathbb{C} (i.e., f(t1,t2)=fβˆ—(t2,t1)f(t_1, t_2) = f^*(t_2, t_1)) is positive semi-definite (or non-negative definite) if for all NN, all (t1,…,tN)(t_1, \ldots, t_N), and all (a1,…,aN)∈CN(a_1, \ldots, a_N) \in \mathbb{C}^N: βˆ‘i=1Nβˆ‘j=1Naiajβˆ—f(ti,tj)β‰₯0.\sum_{i=1}^{N}\sum_{j=1}^{N} a_i a_j^* f(t_i, t_j) \geq 0.

For a WSS function depending only on Ο„=t1βˆ’t2\tau = t_1 - t_2, we say r(Ο„)r(\tau) is positive semi-definite if βˆ‘i,jaiajβˆ—r(tiβˆ’tj)β‰₯0\sum_{i,j} a_i a_j^* r(t_i - t_j) \geq 0 for all choices.

The autocorrelation of any process is positive semi-definite. Conversely, every positive semi-definite function is the autocorrelation of some process. This is the Herglotz (or Bochner) theorem, which we will see in Chapter 14 in connection with the power spectral density.

Example: Exponential Autocorrelation

A real-valued WSS process has autocorrelation rXX(Ο„)=Οƒ2eβˆ’Ξ±βˆ£Ο„βˆ£r_{XX}(\tau) = \sigma^2 e^{-\alpha|\tau|} with Ξ±>0\alpha > 0. Verify the four properties of the autocorrelation and find the average power and autocovariance (assuming ΞΌ=0\mu = 0).

Autocorrelation Properties

Explore the properties of the autocorrelation function for different WSS processes. Observe the even symmetry, the maximum at the origin, and how the decay rate relates to the "memory" of the process.

Parameters
1
1

Theorem: Toeplitz Covariance Matrix of WSS Processes

Let {Xn}\{X_n\} be a WSS process. For any block of NN consecutive samples X=(Xβ„“,Xβ„“+1,…,Xβ„“+Nβˆ’1)⊀\mathbf{X} = (X_\ell, X_{\ell+1}, \ldots, X_{\ell+N-1})^\top, the covariance matrix is [Ξ£]ij=cxx[iβˆ’j],i,j=0,…,Nβˆ’1,[\boldsymbol{\Sigma}]_{ij} = c_{xx}[i - j], \quad i, j = 0, \ldots, N-1, which is Toeplitz (constant along diagonals) and independent of the starting index β„“\ell.

The Toeplitz structure is the matrix manifestation of WSS: the covariance between XiX_i and XjX_j depends only on the distance ∣iβˆ’j∣|i - j|, not on the absolute position. This structure is exploited in fast algorithms (Levinson-Durbin) and in the asymptotic analysis of the eigenvalue distribution (SzegΕ‘'s theorem).

Example: Autocorrelation of a Moving Average Process

Let {Wn}\{W_n\} be a zero-mean i.i.d. sequence with variance ΟƒW2\sigma_W^2. Define the moving average (MA) process Xn=13(Wnβˆ’1+Wn+Wn+1)X_n = \frac{1}{3}(W_{n-1} + W_n + W_{n+1}). Find the autocorrelation rxx[k]r_{xx}[k] and verify that XnX_n is WSS.

Common Mistake: Confusing Autocorrelation with Autocovariance

Mistake:

Using rXX(Ο„)r_{XX}(\tau) and cXX(Ο„)c_{XX}(\tau) interchangeably, especially for processes with nonzero mean.

Correction:

rXX(Ο„)=E[X(t)Xβˆ—(tβˆ’Ο„)]r_{XX}(\tau) = \mathbb{E}[X(t)X^*(t-\tau)] includes the mean product, while cXX(Ο„)=rXX(Ο„)βˆ’βˆ£ΞΌβˆ£2c_{XX}(\tau) = r_{XX}(\tau) - |\mu|^2 measures only the fluctuations. For zero-mean processes they coincide, but for ΞΌβ‰ 0\mu \neq 0 they differ. Many spectral analysis formulas use rXXr_{XX} while estimation formulas use cXXc_{XX}.

Historical Note: Norbert Wiener and the Autocorrelation Function

1930s--1940s

Norbert Wiener introduced the systematic use of the autocorrelation function in his 1930 paper "Generalized Harmonic Analysis" and his classified 1942 report on fire-control prediction (later published as Extrapolation, Interpolation, and Smoothing of Stationary Time Series, 1949). Wiener recognized that for stationary processes, the autocorrelation function and its Fourier transform (the power spectral density) provide a complete framework for linear prediction and filtering. His work, independently paralleled by Kolmogorov (1941), laid the foundation for all of modern statistical signal processing.

Historical Note: Khintchine and the Positive-Definiteness Connection

1930s

Aleksandr Khintchine (1934) proved that the autocorrelation function of a stationary process is positive semi-definite, and conversely that every continuous positive semi-definite function is the autocorrelation of some stationary process. This result, combined with Bochner's theorem on positive-definite functions and Fourier transforms, established the rigorous link between autocorrelation and power spectral density β€” the Wiener-Khintchine theorem (Chapter 14).

Quick Check

For a real-valued zero-mean WSS process with rXX(0)=4r_{XX}(0) = 4 and rXX(3)=βˆ’2r_{XX}(3) = -2, what is rXX(βˆ’3)r_{XX}(-3)?

22

βˆ’2-2

44

πŸ”§Engineering Note

Estimating the Autocorrelation from Data

In practice, we estimate rXX(Ο„)r_{XX}(\tau) from a single observed sample path {x(t0),x(t1),…,x(tNβˆ’1)}\{x(t_0), x(t_1), \ldots, x(t_{N-1})\}. The standard estimator is r^xx[k]=1Nβˆ‘n=0Nβˆ’1βˆ’βˆ£k∣x[n+∣k∣] xβˆ—[n],∣k∣<N.\hat{r}_{xx}[k] = \frac{1}{N}\sum_{n=0}^{N-1-|k|} x[n+|k|]\,x^*[n], \quad |k| < N. This is the biased estimator (dividing by NN rather than Nβˆ’βˆ£k∣N - |k|). The biased version is preferred because it guarantees a non-negative PSD estimate, while the unbiased version (1/(Nβˆ’βˆ£k∣)1/(N - |k|)) can produce negative PSD values.

Autocorrelation Function

rXX(Ο„)=E[X(t)Xβˆ—(tβˆ’Ο„)]r_{XX}(\tau) = \mathbb{E}[X(t)X^*(t - \tau)] for a WSS process. Measures the linear dependence between the process at two time instants separated by lag Ο„\tau.

Related: Autocovariance Function, Wide-Sense Stationary (WSS)

Autocovariance Function

cXX(Ο„)=rXX(Ο„)βˆ’βˆ£ΞΌβˆ£2c_{XX}(\tau) = r_{XX}(\tau) - |\mu|^2. The autocorrelation of the zero-mean part of the process.

Related: Autocorrelation Function

Key Takeaway

The autocorrelation function rXX(Ο„)r_{XX}(\tau) of a WSS process is even (Hermitian symmetric), maximized at the origin (where it equals the average power), and non-negative definite. These properties are not just mathematical curiosities β€” they ensure that the power spectral density (its Fourier transform) is real and non-negative, which is the basis for all spectral analysis in Chapter 14.