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.
How to work these problems
- Find the row and the column the question refers to, and note the grand total in the corner of the table.
- For "and", use the single cell where the row and column meet, divided by the grand total. For a single category, use its row total or column total over the grand total.
- For "or", add the row total and the column total, then subtract the shared cell so it is not counted twice. Divide by the grand total.
- For "given", shrink the table to one row or one column, and divide the cell by that row or column total.
Common mistakes
- Dividing by the grand total on a conditional probability, which should use the row or column total.
- Adding the row total and the column total for "or" without subtracting the overlap.
- Choosing the wrong total for the condition. The group after "given that" goes on the bottom.
- Reading a cell from the wrong row or column, so check the labels before dividing.
Check your work
- Probabilities must be between 0 and 1. The probability of "A or B" is never smaller than the probability of A alone or of B alone, and never smaller than the probability of "A and B".
- Check a marginal value: 384 of 467 flights were on time, so the probability is about 0.8223. A conditional value uses a smaller total, such as 32 late flights out of 264 morning flights, or 0.1212.
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