Chi-Square Distribution
Definition
Consistency
Chi-square distribution is often used to check state estimators for "consistency", i.e., whether their actual errors are consistent with the variances calculated by the estimator.
Consider an \(n\)-dimensional Gaussian random vector \(\mathbf{X}\) with mean \(\bar{\mathbf{X}}\) and covariance \(\mathbf{P}\). Then the (scalar) random variable defined by the quadratic form:
Such a random variable is said to have a chi-square distribution with \(n\) degrees of freedom.
If we transform the random variable vector \(\mathbf{X}\) to \(\mathbf{Z}\) with:
Then \(\mathbf{Z}\) is a Gaussian with:
Hence, \(\mathbf{Z} \sim \mathcal{N}(0, 1)\) and \(\mathbf{Z}\). Let \(Z_1, Z_2, \ldots, Z_n\) be the vector components of \(\mathbf{Z}\). Then the sum of squares \(Z^2_1 + \cdots + Z^2_n\) is a chi-square distributed with \(n\) degrees of freedom, \(\chi^2_n\):
Probability Density Function
The probability density function for a chi-square random variable \(X\) with parameter \(n\) (DOF) is:
where \(\Gamma\) is the gama function with the following properties:
The chi-square distribution (\(\chi^2\)) is a special case of the gamma distribution with parameters \(r = k / 2\) and \(\lambda = 1 / 2\).
Addition Rule
Given the independent random variables:
their sum \(\mathbf{X} + \mathbf{Y}\) is a chi-square distribution with \(k = n + m\) DOF. Symbolically:
Mean and Variance
The mean and variance of the \(\chi^2_n\) random variable \(\mathbf{X}\) is:
Related Distributions
The ratio of a standard normal \(Z\) and the square root of an independent chi-square \(\chi^2\) random variable normalized by its number of DOF, has a \(t\)-distribution with \(n\) degrees of freedom, \(t_n\):
The ratio of two independent chi-squares normalized by their respective number of DOF is distributed as an \(F\):