Sign in

← All revision topics

English variety

Contingency tables and conditional relative frequencies

Machine translation

Around age 15 · Usually taught in ⁨Key Stage 4⁩ · Free

Learn

  1. 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.

     WalkingBikeBusTotal
    Girls122484120
    Boys28242880
    Total4048112200
    Absolute frequencies, with the total of each row and each column
  2. 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%.

     WalkingBikeBusTotal
    Girls122484120
    Boys28242880
    Total4048112200
    The same cell, 84, with different totals: 120 girls or 112 by bus
  3. “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.

    01020304050607080WalkingBikeBusGirlsBoys%
    Percentage of girls and of boys using each means of transport
  4. 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?

 WalkingBikeBusTotal
Girls122484120
Boys28242880
Total4048112200
  1. The condition is “of the boys”: you divide by the total of the boys' row, 80.
  2. In the cell for the boys who walk there are 28.
  3. 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%.

Common mistake

Example 2

In the transport table, of the pupils who go by bike, what percentage are girls?

 WalkingBikeBusTotal
Girls122484120
Boys28242880
Total4048112200
  1. The condition is “of those who go by bike”: you divide by the total of the bike column, 48.
  2. In the cell for the girls who go by bike there are 24.
  3. 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%.

Common mistake

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 timeDelayedTotal
Large72153225
Small482775
Total120180300
  1. There are 225 large packages and 75 small ones: the groups are different sizes, so you do not compare 72 and 48.
  2. Large: 72 ÷ 225 = 32%. Small: 48 ÷ 75 = 64%.
  3. 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.

Common mistake

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.

Next topic: Correlation versus causation; interpolation and extrapolation; regression line using technology →