This MedLibrary.org supplementary page on Chi-square distribution is provided directly from the open source Wikipedia as a service to our readers. Please see the note below on authorship of this content, as well as the Wikipedia usage guidelines. To search for other content from our encyclopedia supplement, please use the form below:
Related Sponsors
| Probability density function |
|
| Cumulative distribution function |
|
| Parameters | degrees of freedom |
|---|---|
| Support | ![]() |
| Probability density function (pdf) | ![]() |
| Cumulative distribution function (cdf) | ![]() |
| Mean | ![]() |
| Median | approximately ![]() |
| Mode | if ![]() |
| Variance | ![]() |
| Skewness | ![]() |
| Excess kurtosis | ![]() |
| Entropy | ![]() |
| Moment-generating function (mgf) | for ![]() |
| Characteristic function | ![]() |
In probability theory and statistics, the chi-square distribution (also chi-squared or χ2 distribution) is one of the most widely used theoretical probability distributions in inferential statistics, e.g., in statistical significance tests.1234 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.
The best-known situations in which the chi-square distribution are 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. Many other statistical tests also lead to a use of this distribution, like Friedman's analysis of variance by ranks.
Contents |
Definition
If Xi are k independent, normally distributed random variables with mean 0 and variance 1, then the random variable
is distributed according to the chi-square distribution with k degrees of freedom. This is usually written
The chi-square distribution has one parameter: k - a positive integer that specifies the number of degrees of freedom (i.e. the number of Xi)
The chi-square distribution is a special case of the gamma distribution.
Characteristics
Probability density function
A probability density function of the chi-square distribution is
where Γ denotes the Gamma function, which has closed-form values at the half-integers.
Cumulative distribution function
Its cumulative distribution function is:
where γ(k,z) is the lower incomplete Gamma function and P(k,z) is the regularized Gamma function.
Tables of this distribution — usually in its cumulative form — are widely available and the function is included in many spreadsheets and all statistical packages.
Characteristic function
The characteristic function of the Chi-square distribution is
Expected value and variance
If
then
- E(X) = k
- Var(X) = 2k
Median
The median of
is given approximately by
Information entropy
The information entropy is given by
where ψ(x) is the Digamma function.
Derivation of the pdf for one degree of freedom
Let Y = X2 where X˜N(0,1)
then 
Then Y = X2˜χ2(1)
Related distributions and properties
The chi-square distribution has numerous applications in inferential statistics, for instance in chi-square tests and in estimating variances. It enters the problem of estimating the mean of a normally distributed population and the problem of estimating the slope of a regression line via its role in Student's t-distribution. It enters all analysis of variance problems via its role in the F-distribution, which is the distribution of the ratio of two independent chi-squared random variables divided by their respective degrees of freedom.
- If
, then as k tends to infinity, the distribution of X tends to a normal distribution with mean k and variance 2k (convergence is slow as the skewness is
and the excess kurtosis is 12 / k) - If
then
is approximately normally distributed with mean
and unit variance (result credited to R. A. Fisher). - If
then
is approximately normally distributed with mean 1 − 2 / (9k) and variance 2 / (9k) (Wilson and Hilferty,1931)
is an exponential distribution if
(with 2 degrees of freedom).
is a chi-square distribution if
for
independent that are normally distributed.- If
, where the Zis are independent Normal(0,σ2) random variables or
and
is an
idempotent matrix with rank n − k then the quadratic form
. - If the
have nonzero means, then
is drawn from a noncentral chi-square distribution. - The chi-square distribution
is a special case of the gamma distribution, in that
.
is an F-distribution if
where
and
are independent with their respective degrees of freedom.
is a chi-square distribution if
where
are independent and
.- if X is chi-square distributed, then
is chi distributed. - in particular, if
(chi-square with 2 degrees of freedom), then
is Rayleigh distributed. - if
are i.i.d. N(μ,σ2) random variables, then
where
. - if
, then 
- The box below shows probability distributions with name starting with chi for some statistics based on
independent random variables:
| Name | Statistic |
|---|---|
| chi-square distribution | ![]() |
| noncentral chi-square distribution | ![]() |
| chi distribution | ![]() |
| noncentral chi distribution | ![]() |
See also
- Cochran's theorem
- Inverse-chi-square distribution
- Degrees of freedom (statistics)
- Fisher's method for combining independent tests of significance
- Noncentral chi-square distribution
- Normal distribution
- Normalised Innovation Squared
- Wishart distribution
References
- ^ Abramowitz, Milton; Stegun, Irene A., eds. (1965), "Chapter 26", Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, New York: Dover, ISBN 0-486-61272-4.
- ^ NIST (2006). Engineering Statistics Handbook - Chi-Square Distribution
- ^ Jonhson, N.L.; S. Kotz, , N. Balakrishnan (1994). Continuous Univariate Distributions (Second Ed., Vol. 1, Chapter 18). John Willey and Sons. ISBN 0-471-58495-9.
- ^ Mood, Alexander; Franklin A. Graybill, Duane C. Boes (1974). Introduction to the Theory of Statistics (Third Edition, p. 241-246). McGraw-Hill. ISBN 0-07-042864-6.
External links
- Comparison of noncentral and central distributions Density plot, critical value, cumulative probability, etc., online calculator based on R embedded in Mediawiki.
- Course notes on Chi-Square Goodness of Fit Testing from Yale University Stats 101 class. Example includes hypothesis testing and parameter estimation.
- 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
- Chi-Square Calculator from GraphPad
- Table of Chi-squared distribution
- Mathematica demonstration showing the chi-squared sampling distribution of various statistics, e.g. Σx², for a normal population
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
Wikipedia content modification information:
- This page was last modified on 17 November 2008, at 19:01.
Wikipedia Authorship and Review
Wikipedia content provided here is not reviewed directly by MedLibrary.org. Wikipedia content is authored by an open community of volunteers and is not produced by or in any way affiliated with MedLibrary.org.
Wikipedia Usage Guidelines
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article on "Chi-square distribution".
The URL for this specific entry is:
All Wikipedia text is available under the terms of the GNU Free Documentation License. (See Copyrights for details). Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.

degrees of freedom




if 




for 











