Written by the Fiveable Content Team • Last updated September 2025
Written by the Fiveable Content Team • Last updated September 2025
Definition
A test of independence evaluates whether two categorical variables are statistically independent. It uses the chi-square statistic to measure the association between the variables.
5 Must Know Facts For Your Next Test
The null hypothesis states that the two categorical variables are independent.
The alternative hypothesis states that there is a significant association between the variables.
The expected frequency for each cell in a contingency table must be at least 5 for the chi-square approximation to be valid.
The degrees of freedom for the test are calculated as $(\text{number of rows} - 1) \times (\text{number of columns} - 1)$.
A large chi-square statistic relative to the critical value indicates rejection of the null hypothesis.