Chi-Squared, Wishart, and Related Distributions
What Happens When You Square and Multiply Gaussians
Many quantities in statistics and engineering are quadratic functions of Gaussian vectors: the sample variance, the SNR, the test statistic in hypothesis testing, the eigenvalues of sample covariance matrices. This section develops the distributions that arise from such quadratic operations: the chi-squared for sums of squared Gaussians, the non-central chi-squared when the Gaussians have non-zero means, and the Wishart distribution for the sample covariance matrix.
Definition: Chi-Squared Distribution
Chi-Squared Distribution
Let be i.i.d. . The random variable
has the chi-squared distribution with degrees of freedom, written . Its PDF is
The mean is and the variance is .
The chi-squared with degrees of freedom is a Gamma distribution with shape and rate : .
Definition: Non-Central Chi-Squared Distribution
Non-Central Chi-Squared Distribution
Let be independent. Then
where is the non-centrality parameter. When , this reduces to the central chi-squared.
Theorem: Distribution of Quadratic Forms
Let with . The quadratic form
More generally, if is a symmetric matrix, then is a weighted sum of independent (possibly non-central) chi-squared random variables, with weights given by the eigenvalues of .
Whiten
Let . Then , a sum of independent squared standard Gaussians.
Identify as chi-squared
By definition, .
Chi-Squared Distribution Explorer
Explore how the chi-squared PDF changes with the degrees of freedom . Observe that for large , the distribution becomes approximately Gaussian (by the CLT).
Parameters
Definition: Wishart Distribution
Wishart Distribution
Let be i.i.d. random vectors in . The random matrix
has the Wishart distribution . When , is positive definite almost surely. The Wishart is the matrix analogue of the chi-squared.
The sample covariance matrix is a scaled Wishart: .
Wishart distribution
The distribution of the sample scatter matrix when the are i.i.d. Gaussian. The matrix analogue of the chi-squared distribution.
Related: Covariance matrix
Example: Rayleigh Distribution from Bivariate Gaussian
Let . Find the distribution of .
Distribution of $R^2$
and are i.i.d. , so . The distribution is Exponential with rate : , i.e., .
Transform to $R$
By the change-of-variable formula :
This is the Rayleigh distribution with parameter .
Engineering significance
The Rayleigh distribution models the envelope of a narrowband signal passing through a rich scattering channel (the "Rayleigh fading" model in wireless communications).
Why This Matters: Rayleigh Fading from the Gaussian Model
In a wireless channel with many scatterers and no line-of-sight component, the received complex baseband coefficient is where are independent (by the CLT applied to the sum of many scattered paths). The envelope is Rayleigh-distributed, and the power is exponentially distributed. This is the i.i.d. Rayleigh fading model — the default model for MIMO channels (Book MIMO, Chapter 2) and the starting point for all diversity analysis (Book Telecom, Chapter 10).
Sample Covariance Matrix and the Wishart in Practice
In massive MIMO, the base station estimates the channel covariance from pilot observations: . When is comparable to (the number of antennas), the sample covariance is a poor estimate of the true covariance — the eigenvalues spread out (the Marchenko-Pastur effect). Understanding the Wishart distribution is essential for analyzing when and how covariance estimation can be trusted. This topic is developed further in the random matrix theory chapter (Chapter 21).
Quick Check
If , what is the distribution of ?
Exponential with rate
, a sum of 4 independent squared standard Gaussians.