stylistic:style_transfer
In probability theory and statistics, the chi-squared distribution with k degrees of freedom is the distribution of a sum of the squares of k independent standard normal random variables. The chi-squared distribution χ k 2 is a special case of the gamma distribution and the univariate Wishart distribution. Specifically if X ∼ χ k 2 then X ∼ Gamma and X ∼ W 1. The scaled chi-squared distribution s 2 χ k 2 is a reparametrization of the gamma distribution and the univariate Wishart distribution. Specifically if X ∼ s 2 χ k 2 then X ∼ Gamma and X ∼ W 1. The chi-squared distribution is one of the most widely used probability distributions in inferential statistics, notably in hypothesis testing and in construction of confidence intervals. This distribution is sometimes called the central chi-squared distribution, a special case of the more general noncentral chi-squared distribution. The chi-squared distribution is used in the common chi-squared tests for goodness of fit of an observed distribution to a theoretical one, the independence of two criteria of classification of qualitative data, and in finding the confidence interval for estimating the population standard deviation of a normal distribution from a sample standard deviation. Many other statistical tests also use this distribution, such as Friedman's analysis of variance by ranks.