Chi-Square () Distribution
The Chi-Square distribution is primarily used in inferential statistics, specifically for hypothesis testing. You rarely use it to model real-world events directly; instead, you use it to evaluate how well your theoretical models fit your actual data.
Core Concepts
The entire Chi-Square distribution is built upon the Standard Normal Distribution (Z).
If you take a Standard Normal variable (), draw a random sample, and square it, the resulting value follows a Chi-Square distribution with 1 degree of freedom.
If you take independent Standard Normal variables, square them all, and add them together, the sum follows a Chi-Square distribution with degrees of freedom.
Why square them?
By squaring the Z-scores, we ensure that all negative and positive deviations from the mean become positive.
This makes the Chi-Square distribution perfect for measuring total error or total variance—because an error of -2 is just as bad as an error of +2.
Probability Density Function (PDF)
(Note: The PDF formula is mathematically dense and involves the Gamma function . In practice, statisticians rely on software or lookup tables rather than computing this by hand).
Key Metrics
- Expected Value (Mean):
- Variance:
Notice how beautifully simple the mean and variance are! They depend entirely on the degrees of freedom ().
Real-World Applications
- Goodness of Fit Test: Checking if a six-sided die is actually fair by comparing your observed rolls against the expected uniform rolls.
- Test of Independence: Determining if two categorical variables (e.g., "Gender" and "Voting Preference") are mathematically related or completely independent.
Interactive Visualization
Use the slider below to adjust the Degrees of Freedom (). Notice two critical things:
- The distribution is defined only for positive numbers () because squares cannot be negative.
- When is small, the distribution is heavily skewed to the right. As grows larger, the Central Limit Theorem takes over, and the Chi-Square distribution slowly begins to look like a symmetrical Normal Distribution!
Chi-Square Distribution
Common in variance and goodness-of-fit tests. Adjust k (degrees of freedom).
Test Your Knowledge
Example: Chi-Square Test Statistic
You flip a coin 100 times. You expect 50 Heads and 50 Tails. You actually get 60 Heads and 40 Tails. Calculate the Chi-Square test statistic .
View Step-by-Step Solution
Formula:
For Heads:
For Tails:
(To finish a real test, you would compare to a Chi-Square table with 1 degree of freedom).