Chi-square distribution
Encyclopedia : C : CH : CHI : Chi-square distribution
x^ e^\,]| cdf =[\frac\,]| mean =[k\,]| median =approximately [k-2/3\,]| mode =[k-2\,] if [k\geq 2\,]| variance =[2\,k\,]| skewness =[\sqrt\,]| kurtosis =[12/k\,]| entropy =[\frac\!+\!\ln(2\Gamma(k/2))\!+\!(1\!-\!k/2)\psi(k/2)]| mgf =[(1-2\,t)^] for [2\,t<1\,]| char =[(1-2\,i\,t)^\,] }} In probability theory and statistics, the chi-square distribution (also chi-squared or χ2 distribution) is one of the theoretical probability distributions most widely used in inferential statistics, i.e. in statistical significance tests. It is useful because, under reasonable assumptions, easily calculated quantities can be proven to have distributions that approximate to the chi-square distribution if the null hypothesis is true.
If [X_i] are k independent, normally distributed random variables with means [\mu_i] and variances [\sigma_i^2], then the random variable
- [Z = \sum_^k \left(\frac\right)^2]
- [Z\sim\chi^2_k.\,]
The chi-square distribution is a special case of the gamma distribution.
The best-known situations in which the chi-square distribution is used are the common chi-square tests for goodness of fit of an observed distribution to a theoretical one, and of the independence of two criteria of classification of qualitative data. However, many other statistical tests lead to a use of this distribution. One example is Friedman's analysis of variance by ranks.
Properties
The chi-square probability density function is
- [f(x;k)=\frac} x^ e^]
- [F(x;k)=\frac\,]
Tables of this distribution — usually in its cumulative form — are widely available (see the External links below for online versions), and the function is included in many spreadsheets (for example OpenOffice.org calc or Microsoft Excel) and all statistical packages.
If [p] independent linear homogeneous constraints are imposed on these variables, the distribution of [X] conditional on these constraints is [\chi^2_], justifying the term "degrees of freedom". The characteristic function of the Chi-square distribution is
- [\phi(t;k)=(1-2it)^.\,]
The normal approximation
If [X\sim\chi^2_k], then as [k] tends to infinity, the distribution of [X] tends to normality. However, the tendency is slow (the skewness is [\sqrt] and the kurtosis is [12/k]) and two transformations are commonly considered, each of which approaches normality faster than [X] itself:
Fisher showed that [\sqrt] is approximately normally distributed with mean [\sqrt] and unit variance.
Wilson and Hilferty showed in 1931 that [\sqrt[3]] is approximately normally distributed with mean [1-2/(9k)] and variance [2/(9k)].
The expected value of a random variable having chi-square distribution with [k] degrees of freedom is [k] and the variance is [2k]. The median is given approximately by
- [k-\frac+\frac-\frac.]
The information entropy is given by
- [H=\int_^\infty f(x;k)\ln(f(x;k)) dx=\frac+\ln \left( 2 \Gamma \left( \frac \right) \right)+\left(1 - \frac\right)\psi(k/2).]
Related distributions
- [X \sim \mathrm(\lambda = 2)] is an exponential distribution (where λ is a survival parameter) if [X \sim \chi_2^2] (with 2 degrees of freedom).
- [Y \sim \chi_k^2] is a chi-square distribution if [Y = \sum_^k X_m^2] for [X_i \sim N(0,1)] independent that are normally distributed. If the [X_i\sim N(\mu_i,1)] have nonzero means, then [Y = \sum_^k X_m^2] is drawn from a noncentral chi-square distribution.
- [Y \sim \mathrm(\nu_1, \nu_2)] is an F-distribution if [Y = (X_1 / \nu_1)/(X_2 / \nu_2)] where [X_1 \sim \chi_^2] and [X_2 \sim \chi_^2] are independent with their respective degrees of freedom.
- [Y \sim \chi^2(\bar)] is a chi-square distribution if [Y = \sum_^N X_m] where [X_m \sim \chi^2(\nu_m)] are independent and [\bar = \sum_^N \nu_m].
- if [X] is chi-square distributed, then [\sqrt] is chi distributed.
- if [X_1, \dots, X_n] are i.i.d. [N(\mu,\sigma^2)] random variables, then [\sum_^n(X_i - \bar X)^2 \sim \sigma^2 \chi^2_] where [\bar X = \frac \sum_^n X_i].
| Name | Statistic |
|---|---|
| chi-square distribution | [\sum_^k \left(\frac\right)^2] |
| noncentral chi-square distribution | [\sum_^k \left(\frac\right)^2] |
| chi distribution | [\sqrt^k \left(\frac\right)^2}] |
| noncentral chi distribution | [\sqrt^k \left(\frac\right)^2}] |
See also
External links
- [SixSigmaFirst, On line tutorials for Six Sigma and Statistics]
- [On-line calculator for the significance of chi-square], in Richard Lowry's statistical website at Vassar College.
- [Distribution Calculator] Calculates probabilities and critical values for normal, t-, chi2- and F-distribution
- [Chi-Square Calculator for critical values of Chi-Square] in R. Webster West's applet website at University of South Carolina
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
