Factsheet: Chi-squared distribution

Statistics
Author

Michelle Arnetta and Tom Coleman

Summary
A factsheet for the \(\chi^2\) distribution.
Chi-squared Distribution Calculator
Parameters

Probability to calculate:
5.0
5.0
2.0
7.0
Chi-squared distribution plot
Chi-Squared(k = 3)

Results

Where to use: The \(\chi^2\) distribution is used for hypothesis testing, such as for goodness of fit tests and tests for independence. (See Guide: Introduction to hypothesis testing for more.) It is a special case of the gamma distribution, as \(\chi^2(k)=\textrm{Gam}(\frac{k}{2},2)\).

Notation: \(X \sim \chi^2(k)\)

Parameter: The integer \(k\) is the number of degrees of freedom in the sample.

Quantity Value Notes
Mean \(\mathbb{E}(X) = k\)
Variance \(\mathbb{V}(X) = 2k\)
PDF \(\mathbb{P}(X=x)=\dfrac{x^{\frac{k}{2}-1}\exp\left({-\frac{x}{2}}\right)}{2^\frac{k}{2}\Gamma\left(\frac{k}{2}\right)}\) \(\Gamma(x)\) is the gamma function
CDF \(\mathbb{P}(X \leq x)=\dfrac{1}{\Gamma\left(\frac{k}{2}\right)}\textrm{Gam}\left(\frac{k}{2},\frac{x}{2}\right)\) \(\Gamma(x)\) is the gamma function, \(\textrm{Gam}(\alpha,\theta)\) is the PDF of the gamma distribution

Examples:

Further reading

This interactive element appears in Overview: Probability distributions. Please click this link to go to the guide.

Version history

v1.0: initial version created 04/25 by tdhc and Michelle Arnetta as part of a University of St Andrews VIP project.

This work is licensed under CC BY-NC-SA 4.0.

Feedback

Your feedback is appreciated and useful. Feel free to leave a comment here,
but please be specific with any issues you encounter so we can help to resolve them
(for example, what page it occured on, what you tried, and so on).