Two-variable data · Lesson 4

Two-way tables

A two-way table sorts one group by two categories at once, such as grade and lunch choice. Each inner cell counts the members who fit one row category and one column category. The last row and last column usually hold the totals.

A relative frequency is a part divided by a whole. The part is a cell. The whole is the group the question is about, and the question's wording picks it.

What fraction of all the students... divides by the grand total. Of the students who chose pizza, what fraction... divides by the pizza total. What fraction of the 11th graders... divides by the 11th-grade total. Probability works the same way: in a student is chosen at random from those who..., the group after from is the whole.

Before dividing, say the whole in words, out of the pizza choosers or out of all 100 students, then find that number in the table.

If a cell is missing, use the fact that each row and each column adds up to its total, and subtract.

To compare groups of different sizes, compare fractions of each group, not raw counts.

Lunch choice of 100 students by grade
GradePizzaSaladTotal
10th362460
11th301040
Total6634100

From this table: the fraction of all students who are 11th graders choosing pizza is 30100\frac{30}{100}. Of the pizza choosers, the fraction in 11th grade is 3066\frac{30}{66}. Of the 11th graders, the fraction choosing pizza is 3040\frac{30}{40}. Same cell, three different wholes, three different answers.

Worked example Easy

A museum surveyed 200 visitors about their age group and whether they used the audio guide.

Age groupUsed audio guideDid not use audio guideTotal
Under 18184260
18 to 645654110
65 or older161430
Total90110200

What fraction of all the visitors surveyed were 65 or older and used the audio guide?

  1. 225\frac{2}{25}Answer
  2. 320\frac{3}{20}
  3. 845\frac{8}{45}
  4. 815\frac{8}{15}

How to solve it

  1. The whole is all the visitors surveyed: the grand total, 200.
  2. The part is visitors who are 65 or older and used the guide: the cell in that row and column, 16.
  3. 16200=225\frac{16}{200} = \frac{2}{25}.

Why each choice is right or wrong

  • A. Correct. 16 of the 200 visitors were 65 or older and used the guide, and 16200=225\frac{16}{200} = \frac{2}{25}.
  • B. Incorrect. This is the fraction of all visitors who were 65 or older, 30200=320\frac{30}{200} = \frac{3}{20}. It ignores whether they used the guide.
  • C. Incorrect. This divides by the 90 visitors who used the guide: 1690=845\frac{16}{90} = \frac{8}{45}. That answers of the guide users, what fraction were 65 or older.
  • D. Incorrect. This divides by the 30 visitors who were 65 or older: 1630=815\frac{16}{30} = \frac{8}{15}. That answers of the visitors 65 or older, what fraction used the guide.

Worked example Medium

A school surveyed 160 students about whether they play a sport and whether they play a musical instrument.

Plays an instrumentDoes not play an instrumentTotal
Plays a sport216384
Does not play a sport354176
Total56104160

If a student who plays an instrument is selected at random, what is the probability that the student also plays a sport?

  1. 21160\frac{21}{160}
  2. 14\frac{1}{4}
  3. 720\frac{7}{20}
  4. 38\frac{3}{8}Answer

How to solve it

  1. The student is chosen from those who play an instrument, so the whole is the instrument column total, 56.
  2. The part is students in that column who also play a sport: 21.
  3. 2156=38\frac{21}{56} = \frac{3}{8}.

Why each choice is right or wrong

  • A. Incorrect. This divides by all 160 students: 21160\frac{21}{160}. The student is chosen only from those who play an instrument, so the whole is 56.
  • B. Incorrect. This divides by the 84 students who play a sport: 2184=14\frac{21}{84} = \frac{1}{4}. That is the probability that a sport player also plays an instrument, the reverse question.
  • C. Incorrect. This is the fraction of all students who play an instrument, 56160=720\frac{56}{160} = \frac{7}{20}. The question is about which of those students also play a sport.
  • D. Correct. Of the 56 students who play an instrument, 21 also play a sport, and 2156=38\frac{21}{56} = \frac{3}{8}.

Trap Dividing by the wrong total

The same cell gives different answers over a row total, a column total and the grand total, and SAT choices often include more than one of them. Words like of the, among the and from those who name the whole. Find that group's total before you divide.

Trap Comparing counts instead of fractions

When two groups have different sizes, the larger count doesn't mean the larger share. Divide each count by its own group's total before comparing.

Desmos When Desmos isn’t faster

The work in a two-way table is choosing which two numbers to divide, and that happens in your head.

Desmos is handy only as a calculator. If the choices are fractions and yours isn't in lowest terms, type it, for example 30/66, and Desmos shows its decimal value, about 0.4545. Type each choice the same way and compare the decimals.