Chi Square distribution
What it represents
The chi-square distribution is the sum of squares of df independent standard normal variables. Its positive skew decreases with degrees of freedom, which makes it useful for variability and for normal approximations.
Historical clue
Karl Pearson introduced it while developing his goodness-of-fit statistic at the beginning of the twentieth century. The chi-square notation is tied to the Greek letter used for the sum of squares.
Relationships that clarify its use
It is a special case of Gamma and, for two independent scaled chi-square variables, leads to the F distribution. In a normal sample, the sum of squared deviations from the mean separates from the sample mean and follows a chi-square law.
Data examples
- intervals and tests for the variance of a normal population
- independence and goodness-of-fit tests for contingency-table counts
Modelling warning
Do not treat df as an arbitrary fitted knob when it comes from a design: changing it changes the inferential meaning as well as the curve.
Squared deviations create a new language
Each standard Normal variable contributes a signed deviation. Squaring removes the sign and leaves a positive contribution; adding several gives a Chi Square variable. This construction explains why degrees of freedom count independent dimensions and why the curve becomes less skewed as dimensions are added.
Pearson made this law the foundation of his 1900 goodness-of-fit test. It also appears when estimating the variance of Normal data and as a Gamma case whose shape is half the degrees of freedom. Pearson’s approximation needs adequate expected frequencies and defensibly chosen categories. A statistic computed without those conditions may look precise while being compared with the wrong reference law.
Decision guide
A good candidate when: the quantity is a sum of standardized squares or follows from a theoretical variance-and-degrees-of-freedom construction.
Compare it with: Gamma for positive data without that construction. Do not choose Chi-square merely for skewness: its parameters and scale are imposed by the sum-of-squares mechanism.
References
- SciPy reference: scipy.stats.chi2 — definition and parameterization
- Johnson, N. L., Kotz, S. & Balakrishnan, N. (1994). Continuous Univariate Distributions, 2nd ed., Vol. 1. Wiley.
- Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed. Wiley.
- Pearson, K. (1900). On the criterion that a given system of deviations from the probable in the case of a correlated system of variables is such that it can be reasonably supposed to have arisen from random sampling. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 50(302), 157–175.