Contingency Tables and Tree Diagrams
A contingency table counts people by two traits at once, so any probability you want is just one count divided by another. The only question is what goes on the bottom: everyone, or just the row or column you're told about. Tree diagrams do the same job for events that happen one after another.
What the symbols mean
- Conditional probability
Restrict attention to the row or column for B, then find the share that is also A.
Explanation
A contingency table is simply a grid that counts people by two traits at once, like whether they exercise and whether they sleep 7 hours. The name comes from "contingent," meaning "depending on": the table lets you see whether one trait depends on the other. The formula is less scary than it looks: the top is the people with both traits (one cell), and the bottom is everyone with trait (one row or column total). It's the conditional probability from the last lesson, done by counting instead of by formula.
Reading a table (200 people surveyed):
| Sleeps 7+ hours | Sleeps less | Total | |
|---|---|---|---|
| Exercises | 60 | 30 | 90 |
| Doesn't | 50 | 60 | 110 |
| Total | 110 | 90 | 200 |
- Joint: .
- Marginal: , from a total.
- Conditional: : only the "exercises" row counts.
Notice that the conditional one matches the formula from the last lesson: . The 200s cancel, which is why with a table you can skip straight to counts.
Tree diagrams: each branch carries a conditional probability. Multiply along a path for "and"; add the paths that lead to the event you want. Multiplying along a path is just the multiplication rule, one step at a time, and adding paths works because different paths can't both happen.
A common mistake. It's tempting to divide by the grand total, 200, for every question. That's only right for joint and marginal probabilities. A conditional probability like "given they exercise" means you only look at the 90 people who exercise, so 90 goes on the bottom.
See it
Worked examples
A bag has 3 red and 2 blue marbles. Draw two without replacement. Find .
- 1
One of each can happen two ways. Red then blue: , since after a red there are 2 blues among 4 marbles.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Using the table, find .
Find .
Find .
Find .
For the marbles, find .
In a survey of 500 drivers, 180 admit to texting while driving. 80 of the texters and 40 of the non-texters had an accident last year. Find .
With the same survey, find .
The hardest one here. Get it, and you've got this lesson.
Hospital A treats 1000 mild cases (900 survive) and 100 severe cases (30 survive). Hospital B treats 100 mild (95 survive) and 1000 severe (350 survive). Find each hospital's overall survival rate. Enter A, then B.
Where it's used
Medical researchers summarize trials in two-way tables (treatment vs outcome); marketers cross-tab customer segments against purchases.