The distribution of a sum of squared Gaussian variables; the reference curve for goodness of fit.The chi-squared distribution is a probability distribution that arises naturally when you sum the squares of independent, standard normal (Gaussian) random variables. If you have k such variables, the sum of their squares follows a chi-squared distribution with k degrees of freedom. Its shape is skewed for small k and becomes more symmetric as k grows, eventually resembling a normal distribution.
Introduced by Karl Pearson in 1900 as part of his work on goodness-of-fit tests, specifically the chi-squared test.
The distribution is defined by a single parameter, the degrees of freedom (k). Its probability density function involves a gamma function and is zero for negative values, since squares are always non-negative. The mean equals k and the variance equals 2k. It is the sampling distribution of the sample variance for normally distributed data, which is why it underpins many statistical tests.
Used in hypothesis testing (e.g., chi-squared test for independence), in constructing confidence intervals for variance, and in model fitting to assess how well observed data match expected distributions.
The chi-squared distribution is a special case of the gamma distribution, with shape parameter k/2 and scale parameter 2.
