This module is part of the 2027 curriculum. You are following the 2026 curriculum, where it is not taught in this form. Switch if you are sitting the exam under the 2027 curriculum.
Lesson 20 of 22 · 14 min
Contingency tables and the chi-square test of independence
For categorical data, compare the count in each cell with the count you would expect if the two classifications had nothing to do with each other.
In short
- A contingency table (two-way table) counts observations classified by two categorical variables.
- : the classifications are independent (not related); : they are not independent (related).
- Expected frequency: = (row i total × column j total) / overall total.
- over all m = r × c cells, with (r − 1)(c − 1) degrees of freedom.
- The test is non-parametric and right-tailed: squared gaps make , so only large values reject.
Unlock this lesson free for 7 days
Create a free account to get 7 days of full access — every lesson, video, flashcard, mock and the question bank. No card needed.