Practice
Probability from two-way tables
Joint, marginal and conditional probabilities read straight from a table of counts.
The skill
When one person or item is picked at random from a two-way table, each probability is a count over a total. "And" means a single cell over the grand total. "Or" means add the row total and the column total, then subtract the shared cell so it is not counted twice. "Given" shrinks the table to one row or one column, so the denominator becomes that row or column total. Most wrong answers on conditional probability come from dividing by the grand total anyway.
A worked example
The table shows students surveyed at one high school, classified by class and lunch habit.
| Buys lunch | Brings lunch | Total | |
|---|---|---|---|
| Freshmen | 64 | 61 | 125 |
| Sophomores | 67 | 40 | 107 |
| Juniors | 41 | 60 | 101 |
| Total | 172 | 161 | 333 |
One of these is chosen at random. Find the probability that it is in the "Juniors" row, given that it is in the "Brings lunch" column. Give your answer as a decimal rounded to four places.
Solution
- "Given" restricts you to the Brings lunch column, so the denominator is that column's total, 161. The numerator is the cell in that column: 60.
Answer: 0.3727