mastree

Two-way tables: 7 exam questions solved step by step

What this lesson covers

  • A conditional probability restricts attention to one row or column of the table.
  • P(A given B) and P(B given A) use different totals and are usually different.
Key idea

Reading a two-way table

  • Check the totals first.
  • No condition: divide by the grand total.
  • "Given": divide by that row or column total.
  • Given percentages? Turn them into counts.
Your turn

Question 1 · Achieved, in context

  • A Cook Strait ferry survey of 200 passengers.
  • Find P(seasick), and
  • P(sat outside and was not seasick).
SeasickNot seasickTotal
Inside18102120
Outside87280
Total26174200
Worked example

Q1: out of everyone

  • No condition: ÷ 200.
  • "And" is one cell.
  1. 120 + 80 = 26 + 174 = 200totals agree
  2. P(seasick) = 26 ÷ 200column total
  3. = 0.13
  4. P(outside and not seasick)
  5. = 72 ÷ 200one cell
  6. = 0.36
Your turn

Question 2 · Achieved, in context

  • The same ferry survey.
  • A passenger who sat inside is chosen.
  • Find P(seasick | inside).
SeasickNot seasickTotal
Inside18102120
Outside87280
Total26174200
Worked example

Q2: given inside

  • "Given inside": that row.
  • The total becomes 120.
  1. inside row: 18 + 102 = 120reduced total
  2. P(seasick | inside) = 18 ÷ 120
  3. = 0.15
  4. 18 ÷ 200 = 0.09wrong total
  5. of those inside, 15% seasick
Key idea

Try it: given inside the table

Your turn

Question 3 · Merit, in context

  • The same survey. A seasick passenger
  • Is chosen. Find P(inside | seasick).
  • Is it the same as P(seasick | inside)?
SeasickNot seasickTotal
Inside18102120
Outside87280
Total26174200
Worked example

Q3: the other way round

  • "Given seasick": a column.
  • Order matters.
  1. seasick column: 18 + 8 = 26reduced total
  2. P(inside | seasick) = 18 ÷ 26
  3. = 0.69230…calculator
  4. = 0.69234 d.p.
  5. P(seasick | inside) = 0.15
  6. 0.6923 ≠ 0.15different totals
  7. of the seasick, 69% sat inside
Your turn

Question 4 · Merit, in context

  • A packhouse sorts 400 trays of avocados.
  • 60% come from Orchard A.
  • 5% of Orchard A's trays are rejected.
  • 30 trays are rejected altogether.
  • Complete the table. Pause and try it.
RejectedPassedTotal
Orchard A???
Orchard B???
Total30?400
Worked example

Q4: complete the table

  • Percentages to counts.
  • Then subtract to fill gaps.
  1. A: 60% of 400 = 240
  2. B: 400 − 240 = 160
  3. A rejected: 5% of 240 = 12
  4. 5% of 400 = 205% of A only
  5. A passed: 240 − 12 = 228
  6. B rejected: 30 − 12 = 18
  7. B passed: 160 − 18 = 142
  8. passed: 400 − 30 = 370
  9. check: 228 + 142 = 370
Your turn

Question 5 · Merit, in context

  • The completed packhouse table.
  • Find P(rejected | Orchard B).
  • Compare with Orchard A in a sentence.
RejectedPassedTotal
Orchard A12228240
Orchard B18142160
Total30370400
Worked example

Q5: compare the orchards

  • Each orchard, its own row.
  • Answer in a sentence.
  1. P(rej | B) = 18 ÷ 160B row: 160
  2. = 0.1125
  3. P(rej | A) = 12 ÷ 240A row: 240
  4. = 0.05
  5. 0.1125 ÷ 0.05 = 2.25
  6. B: 2.25 times as likely
  7. P(B | rej) = 18 ÷ 30 = 0.6a different question
Key idea

Try it: compare the groups

Your turn

Question 6 · Excellence, in context

  • A survey of 600 workers.
  • 40% had the flu jab; 10% of those got flu.
  • 22% of all the workers got flu.
  • Find P(had the jab | got flu).
FluNo fluTotal
Jab???
No jab???
Total??600
Worked example

Q6: build the table

  • Every % to a count.
  • Subtract to fill the rest.
  1. jab: 40% of 600 = 240
  2. jab and flu: 10% of 240 = 24
  3. flu: 22% of 600 = 132
  4. no jab: 600 − 240 = 360
  5. no jab and flu: 132 − 24 = 108
  6. jab, no flu: 240 − 24 = 216
  7. no jab, no flu: 360 − 108 = 252
  8. check: 216 + 252 = 468 = 600 − 132
Worked example

Q6: given flu

  • "Given flu": the flu column.
  • Not the 10%.
  1. flu column total = 132reduced total
  2. P(jab | flu) = 24 ÷ 132
  3. = 0.181818…calculator
  4. = 0.18184 d.p.
  5. P(jab | flu) = 0.1that is P(flu | jab)
  6. P(flu | no jab) = 108 ÷ 360 = 0.3
  7. about 18% of flu cases had a jab
Your turn

Question 7 · Excellence, in context

  • A survey of 300 Year 12 students.
  • Claim: "80% of late students had a phone
  • In their room, so a phone in your room
  • Makes you 80% likely to be late."
  • Evaluate the claim. Pause and try it.
LateNot lateTotal
Phone in room60140200
No phone1585100
Total75225300
Worked example

Q7: test the claim

  • Work out both directions.
  • Then compare the rows.
  1. P(phone | late) = 60 ÷ 75late column
  2. = 0.8the 80% is right
  3. P(late | phone) = 60 ÷ 200phone row
  4. = 0.3
  5. claim: P(late | phone) = 0.8swaps the order
  6. P(late | no phone) = 15 ÷ 100
  7. = 0.15
  8. 0.3 ÷ 0.15 = 2twice as likely
  9. linked, but not shown to cause
Key idea

Try it: build, compare and flip

Common mistakes

  • P(seasick | inside) = 18 ÷ 200 = 0.09
    "Given inside" means only the inside row, so divide by its total: 18 ÷ 120 = 0.15.
  • P(jab | flu) = 0.1, because 10% of those with the jab got flu.
    0.1 is P(flu | jab). P(jab | flu) uses the flu column total: 24 ÷ 132 = 0.1818.
  • Orchard A rejected = 5% of 400 = 20 trays
    The 5% is of Orchard A's trays only: 5% of 240 = 12.
  • 80% of late students had a phone in their room, so a phone makes you 80% likely to be late.
    That swaps the order: P(late | phone) = 60 ÷ 200 = 0.3, twice the 0.15 without a phone, and a survey cannot show cause.
Summary

The method that solved all seven

  • "Given" picks the total; then say it in words.
StepHow
No conditiondivide by the grand total
"and"one cell ÷ grand total
"given"that row or column total
OrderP(A | B) ≠ P(B | A)
Percentagesturn them into counts first
In wordsname the group, then compare

Challenge

1

A Bay of Plenty orchard tests its kiwifruit vines for the vine disease Psa. 4% of the vines are infected. The test is positive for 90% of infected vines, but also for 5% of healthy vines. A vine tests positive. What is the probability it is really infected? A grower says "the test is 90% accurate, so a positive vine is 90% likely to be infected". Explain the error.

Hint

Imagine 5000 vines and build a two-way table: infected or healthy, against positive or negative. Then use the positive column.

Answer

P(infected given positive) = 180 ÷ 420 = 0.4286, about 43%. The 90% is P(positive given infected), the other way round. Healthy vines are so common that their 5% false positives (240) outnumber the true positives (180).

Step by step
  1. Take 5000 vines. 4% infected is 200 vines, so 4800 are healthy.
  2. 90% of the 200 infected test positive: 180. 5% of the 4800 healthy test positive: 240.
  3. So 180 + 240 = 420 vines test positive altogether.
  4. Given positive means use the positive column: 180 of those 420 are infected, 0.4286.
  5. The grower has swapped the condition: 90% is the chance of a positive given infected, not infected given positive.
Full working
  1. infected: 4% of 5000 = 200; healthy: 5000 − 200 = 4800row totals
  2. infected and positive: 90% of 200 = 180infected row
  3. healthy and positive: 5% of 4800 = 240healthy row
  4. positive column total: 180 + 240 = 420reduced total
  5. P(infected given positive) = 180 ÷ 420 = 0.428571…positive column
  6. = 0.42864 d.p.
  7. 0.9 is P(positive given infected)the order is swapped
  8. P(infected given positive) = 0.4286, about 43%, not 90%
2

At a Hamilton school, 48 Year 9 students catch the bus. Of all Year 9 students, 40% catch the bus. Of all the bus riders, 25% are in Year 9. Of the students not in Year 9, 30% catch the bus. How many students are at the school, and what is the probability that a student who does not catch the bus is in Year 9?

Hint

The 48 sits in one cell. Each percentage is that cell, or another cell, divided by a row or column total. Work out which total each one uses.

Answer

600 students. P(Year 9 given no bus) = 72 ÷ 408 = 317 ≈ 0.1765.

Step by step
  1. 40% of Year 9 students catch the bus and that is 48 students, so there are 48 ÷ 0.4 = 120 Year 9 students.
  2. 25% of bus riders are Year 9 and that is 48, so there are 48 ÷ 0.25 = 192 bus riders.
  3. So 192 − 48 = 144 bus riders are not in Year 9, and they are 30% of the non Year 9 students: 144 ÷ 0.3 = 480.
  4. Total: 120 + 480 = 600 students. Not on the bus: 600 − 192 = 408, of whom 120 − 48 = 72 are Year 9.
  5. Given no bus means the no-bus column: 72 ÷ 408 = 0.1765.
Full working
  1. Year 9 total = 48 ÷ 0.4 = 120P(bus given Year 9) = 0.4
  2. bus total = 48 ÷ 0.25 = 192P(Year 9 given bus) = 0.25
  3. bus, not Year 9 = 192 − 48 = 144bus column
  4. not Year 9 total = 144 ÷ 0.3 = 480P(bus given not Year 9) = 0.3
  5. school = 120 + 480 = 600grand total
  6. no bus = 600 − 192 = 408; Year 9, no bus = 120 − 48 = 72subtract
  7. P(Year 9 given no bus) = 72 ÷ 408 = 0.176470…no-bus column
  8. 600 students; P(Year 9 given no bus) = 317 ≈ 0.1765
3

A survey asked Year 12 students whether they ate breakfast and whether they felt tired in period 1. The table has one unknown, x, which appears twice. Ate breakfast: x tired, 100 not tired. No breakfast: 20 tired, x not tired. Surprisingly, students who ate breakfast were 3 times as likely to be tired as those who skipped it. Find x, then find P(ate breakfast given tired).

Hint

Write P(tired given ate breakfast) and P(tired given no breakfast) using x, each with its own row total. Set one equal to 3 times the other and solve the quadratic. Can a count be negative?

Answer

x = 100. P(ate breakfast given tired) = 100 ÷ 120 = 56 ≈ 0.8333.

Step by step
  1. The breakfast row total is x + 100 and the no-breakfast row total is x + 20.
  2. P(tired given breakfast) = x ÷ (x + 100) and P(tired given no breakfast) = 20 ÷ (x + 20).
  3. The first is 3 times the second, so cross-multiplying gives x(x + 20) = 60(x + 100).
  4. That is x² − 40x − 6000 = 0, which factorises to (x − 100)(x + 60) = 0. A count cannot be −60, so x = 100.
  5. The tired column is 100 + 20 = 120, so P(ate breakfast given tired) = 100 ÷ 120 = 0.8333.
Full working
  1. P(tired given breakfast) = x ÷ (x + 100)breakfast row
  2. P(tired given no breakfast) = 20 ÷ (x + 20)no-breakfast row
  3. x ÷ (x + 100) = 3 × 20 ÷ (x + 20)3 times as likely
  4. x(x + 20) = 60(x + 100)cross-multiply
  5. x² + 20x = 60x + 6000, so x² − 40x − 6000 = 0collect
  6. (x − 100)(x + 60) = 0−100 × 60 = −6000, −100 + 60 = −40
  7. x = 100 (x = −60 rejected)counts are not negative
  8. check: 100 ÷ 200 = 0.5 and 20 ÷ 120 = 16; 0.5 = 3 × 16holds
  9. tired column = 100 + 20 = 120reduced total
  10. x = 100; P(ate breakfast given tired) = 100 ÷ 120 = 56 ≈ 0.8333

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91267