Last modified: February 26, 2024
This article is written in: πΊπΈ
Chi-Square Distribution (Continuous)
A chi-square distribution is a continuous probability distribution of the sum of the squares of k independent standard normal random variables. The chi-square distribution is denoted as , where k is the number of degrees of freedom.
Probability Density Function (PDF)
The PDF of a chi-square distribution is given by:
where is the gamma function.
Cumulative Distribution Function (CDF)
The CDF of a chi-square distribution is given by:
where is the lower incomplete gamma function and is the gamma function.
Expected Value and Variance
The expected value (mean) of a chi-square distribution is equal to the number of degrees of freedom:
The variance of a chi-square distribution is given by:
Moment Generating Functions and Moments
The moment generating function (MGF) of a chi-square distribution is:
To find the n-th moment, we take the n-th derivative of the MGF with respect to t and then evaluate it at t=0:
- First Moment (Mean):
- Second Moment (Variance + Mean^2):
Example: Goodness-of-Fit Test for a Fair Die
A researcher is testing the fairness of a six-sided die. The die is rolled 60 times, resulting in the following observed frequencies for each face:
Face of the Die | Observed Frequency |
1 | 8 |
2 | 9 |
3 | 13 |
4 | 7 |
5 | 12 |
6 | 11 |
To determine if the die is fair, the researcher employs a chi-square goodness-of-fit test.
Given:
The expected frequency for each face (assuming the die is fair): E = Total rolls / Number of faces = 60 / 6 = 10
The chi-square formula:
where is the observed frequency and is the expected frequency.
I. Calculate the chi-square statistic:
II. Determine the degrees of freedom:
Degrees of freedom for chi-square test: Number of categories - 1 = 6 - 1 = 5
Applications
Chi-square distributions are widely used in hypothesis testing (such as the chi-square test for independence), goodness-of-fit tests, and confidence interval estimation for the population variance in normally distributed data.