Conditional Probability
Probability 1 · Lecture slides
The plan
- A new piece of information changes a probability
- Part 1: tables and grids, where we can count
- Part 2: trees, where things happen in stages
The Titanic, April 1912
- 2201 people on board
- 470 female, 1731 male
- 711 survived
Pick a survivor at random. How likely is it a female?
- About 25%
- About 50%
- About 75%
- About 90%
The same 2201 people, sorted two ways
What changed between 48% and 73%?
- The top stayed the same: 344 people
- The bottom changed: 711 survivors, then 470 females
- The bottom is the group we were told about
- "Given" means: keep that group, and throw the rest away
The definition
Definition
P(A∣B)=P(B)P(A∩B)​
Read the bar as "given". B is the group we keep.
The definition gives the same 48%
Your turn: the males
On paper From the table, find P(survived∣male). Write the fraction before the decimal.
The males
Two dice
- A red die and a blue die: 36 outcomes, each equally likely
- We are told one thing: the sum is at least 9
- Question: how likely is it that the two dice match?
Before we count
On paper Draw the 6 by 6 grid. Shade the outcomes where the sum is at least 9. Then find the probability that the dice match.
Given that the sum is at least 9
Now turn it around
The two dice match. How likely is it that the sum is at least 9?
- 1/5, the same as before
- 1/3
- 1/2
- 2/3
Given that the two dice match
Same top, different bottom
P(A∣B) and P(B∣A) are different questions.
Part 1 is done
Part 2: what to do when there is nothing to count.
A late bus
- It rains on 3 mornings in 10
- On a rainy morning, the bus is late 1 time in 2
- On a dry morning, the bus is late 1 time in 10
Which of these is conditional?
- P(rain)=3/10 is about all mornings
- P(late∣rain)=1/2 is about rainy mornings only
- P(late∣dry)=1/10 is about dry mornings only
- Nobody has told us P(late)
The bus is late this morning. Is it raining?
- About 30%
- About 50%
- About 70%
- About 85%
Draw it in stages
On paper Draw a tree: rain or dry first, then late or on time. Write a probability on every branch.
The tree for the bus
Why we multiply
Rule
P(A∩B)=P(B)P(A∣B)
This is the definition, with both sides multiplied by P(B).
How often is the bus late?
The bus is late. Is it raining?
Before the bus came, rain was 3 mornings in 10. Given a late bus, it is about 7 in 10.
Two students are called on
- A class has 10 students, and 4 have done the reading
- Two are called on, one after the other
- Question: how likely is it that both have done the reading?
Both have done the reading?
- 4/25
- 2/15
- 1/5
- 2/5
Your turn: the tree for the two students
On paper Draw the tree: has the first done the reading, then has the second. Be careful with the second branches.
The tree for the two students
What the tree showed
- Both have read: 2/5×1/3=2/15
- The second branches differ: 1/3 on one side, 4/9 on the other
- The second has read: 2/5, the same as the first
- Backward: given the second has read, the first has with 1/3
What to take away
- "Given" keeps one group and looks only inside it
- When we can count: a count over a count
- When things happen in stages: multiply along a path, add the paths
- P(A∣B) and P(B∣A) are different questions
Before the next class
- Read the lesson "Conditional Probability"
- Work its five practice problems on paper