Contingency tables and conditional relative frequencies
Machine translation
Learn
A contingency table, or two-way table, cross-tabulates two variables for the same outcomes. Here, 200 pupils, according to whether they are girls or boys and how they travel to school.
Walking Bike Bus Total Girls 12 24 84 120 Boys 28 24 28 80 Total 40 48 112 200 Absolute frequencies, with the total of each row and each column Each cell counts the outcomes that meet both conditions at once. If you divide a cell by the grand total, you get its relative frequency: the girls who go by bus are 84 out of 200, which is 42% of the total.
But almost always the question sets a condition: “of the girls…” or “of those who go by bus…”. Then the total is the one for that row or that column, and the relative frequency is conditional. Of the 120 girls, 84 go by bus: 84 ÷ 120 = 70%. Of the 112 who go by bus, 84 are girls: 84 ÷ 112 = 75%.
Walking Bike Bus Total Girls 12 24 84 120 Boys 28 24 28 80 Total 40 48 112 200 The same cell, 84, with different totals: 120 girls or 112 by bus “Of the girls, those who go by bus” is not the same as “of those who go by bus, the girls”: the total you divide by changes. To compare two groups of different sizes, the numbers of outcomes are no use: you compare the percentages. If they are the same in every group, the two variables do not seem to be related. If they are different, they do seem to be.
Percentage of girls and of boys using each means of transport The conditional percentages of the same row add up to 100%, because they are divided by the same total. Those of different rows or columns are not added together.
Worked examples
Example 1
In the transport table, what percentage of the boys walk to school?
| Walking | Bike | Bus | Total | |
|---|---|---|---|---|
| Girls | 12 | 24 | 84 | 120 |
| Boys | 28 | 24 | 28 | 80 |
| Total | 40 | 48 | 112 | 200 |
- The condition is “of the boys”: you divide by the total of the boys' row, 80.
- In the cell for the boys who walk there are 28.
- 28 ÷ 80 = 0.35, that is, 35%.
35% of the boys walk to school.
Watch out! Here many people divide by 200, the grand total, and say 14%.
Example 2
In the transport table, of the pupils who go by bike, what percentage are girls?
| Walking | Bike | Bus | Total | |
|---|---|---|---|---|
| Girls | 12 | 24 | 84 | 120 |
| Boys | 28 | 24 | 28 | 80 |
| Total | 40 | 48 | 112 | 200 |
- The condition is “of those who go by bike”: you divide by the total of the bike column, 48.
- In the cell for the girls who go by bike there are 24.
- 24 ÷ 48 = 0.5, that is, 50%.
50% of those who go by bike are girls.
Watch out! Here many people divide by 120, the total of the girls, and say 20%.
Example 3
Mara says that 72 large packages and 48 small ones arrive on time. Which type of package arrives on time more often?
| On time | Delayed | Total | |
|---|---|---|---|
| Large | 72 | 153 | 225 |
| Small | 48 | 27 | 75 |
| Total | 120 | 180 | 300 |
- There are 225 large packages and 75 small ones: the groups are different sizes, so you do not compare 72 and 48.
- Large: 72 ÷ 225 = 32%. Small: 48 ÷ 75 = 64%.
- You compare the percentages: 64% is greater than 32%.
Small packages arrive on time more often.
Watch out! Here many people compare 72 and 48 and say it is the large ones.
A challenge to think about
Ask 20 people in your class whether they prefer dogs or cats and whether they prefer summer or winter. Make a contingency table with their totals. Work out the percentage of those who prefer dogs among those who prefer summer, and the percentage of those who prefer summer among those who prefer dogs. Do you get the same answer? Why?
Practise
Rounds of 10 questions. Choose a level:
Your grade in this topic:No grade yetDo a round at the Basic level to get a grade.