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
The PDF of a chi-square distribution is given by:
where
The CDF of a chi-square distribution is given by:
where
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:
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):
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
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
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.