A streaming service tracked 2,000 new subscribers for a year. Overall, 24% canceled. But among subscribers on the cheaper ad-supported plan, 30% canceled, and among premium subscribers only 15% did. Each of those percentages is a probability of canceling, computed after narrowing attention to one group, and the narrowing is what conditional probability is.
Probability given that something happened
The conditional probability of given , written , is the probability that occurs when you already know that has occurred. Read the bar as "given."
Knowing happened rules out every outcome outside . The outcomes in become the whole sample space, and can now happen only through outcomes that are in both and . So is the share of 's probability that also lies in :
Here are the streaming service's data:
| Canceled | Stayed | Total | |
|---|---|---|---|
| Ad-supported | 360 | 840 | 1,200 |
| Premium | 120 | 680 | 800 |
| Total | 480 | 1,520 | 2,000 |
For a subscriber chosen at random, and , so
The shortcut gives the same thing: given ad-supported, you're choosing from the 1,200 subscribers in that row, and 360 of them canceled, so . The grand total 2,000 cancels out of the formula, which is why the table method works.
A conditional probability is still a probability: it's between 0 and 1, and the complement rule from topic 2.4 holds inside the condition. .
The order of the condition matters
and have the same numerator, , and different denominators, so they are usually different numbers. From the table:
- : of the ad-supported subscribers, 30% canceled.
- : of the subscribers who canceled, 75% were on the ad-supported plan.
Both are true, and they answer different questions. The first is what the company would use to predict whether a new ad-plan customer will leave. The second describes who is leaving. To tell which one a question wants, find the group it says you know about ("of those who...", "given that...", "if a subscriber is...") and put that event after the bar. That event's total goes in the denominator.
The general multiplication rule
Write the definition with as the condition, , and multiply both sides by . The result finds "both" from a chain of steps:
This is how you handle a process that happens in stages, where the first stage changes the odds of the second. A drawer holds 10 batteries, and 3 of them are dead. You grab two without putting the first back. The chance the first is dead is . Given that it was, 9 batteries are left and 2 are dead, so the chance the second is also dead is . Then
Using for the second draw too would give , which is wrong because the first draw changed what was left in the drawer.
Tree diagrams
A tree diagram lays out a two-stage process. The first set of branches shows the first stage with its probabilities. From the end of each first branch, a second set shows the second stage, labeled with conditional probabilities given that branch. Multiplying along a path applies the general multiplication rule, and the path products of the whole tree add to 1.
A basketball player takes two free throws. She makes the first 80% of the time. If she makes it, she makes the second 85% of the time; if she misses the first, she makes the second only 60% of the time.
The four paths are mutually exclusive (topic 2.5) and cover every possibility: . An event that several paths lead to gets the sum of their products. She makes exactly one shot on the make-miss and miss-make paths, so . She makes the second shot on two paths, so .
The tree also answers "backward" questions, where the condition is the second stage. Given that she made the second shot, what's the chance she missed the first? Use the definition: the "both" path is miss-make, and the condition's probability is the sum just found.
Worked examples
A pizza shop recorded the size and the type of its 250 orders on a Friday night.
| Delivery | Pickup | Total | |
|---|---|---|---|
| Small | 20 | 30 | 50 |
| Medium | 45 | 55 | 100 |
| Large | 75 | 25 | 100 |
| Total | 140 | 110 | 250 |
One order is chosen at random. Find (a) , (b) , and (c) the probability the order was picked up, given that it was not large.
Show solution
(a) Given delivery, the order is one of the 140 in the Delivery column, and 75 of those are large: .
(b) Given large, the order is one of the 100 in the Large row, and 75 were delivered: .
Same cell, two answers: (a) asks what share of deliveries were large, (b) what share of large orders were delivered.
(c) "Not large" is the Small and Medium rows together, orders, of which were picked up: .
A class of 24 students includes 9 seniors. The teacher picks two different students at random to present first and second. Find the probability that (a) both are seniors and (b) exactly one is a senior.
Show solution
(a) The first pick is a senior with probability . Given that, 23 students remain and 8 are seniors. By the general multiplication rule,
(b) Exactly one senior happens two ways, which are mutually exclusive: senior then non-senior, or non-senior then senior.
Adding, . The two orders have the same probability because the same factors appear in each product, just in a different order.
At an airport, 4% of checked bags contain an item that is not allowed. A scanner flags 95% of the bags that contain such an item. It also flags 8% of the bags that do not.
(a) What is the probability that a randomly selected checked bag is flagged by the scanner?
(b) A bag has just been flagged. What is the probability that it actually contains an item that is not allowed? Show your work.
Show solution
Let = the bag contains an item that is not allowed, and = the scanner flags the bag. The givens are , , and , so . A tree has and as the first branches and flagged or not as the second.
(a) A bag is flagged along two paths, which are mutually exclusive:
The probability that a randomly selected checked bag is flagged is 0.1148.
(b) The question gives the flag and asks about the contents, so the condition is :
Only about 33.1% of flagged bags actually contain an item that is not allowed.
Why these moves: the tree organizes the givens, which are all conditional on the bag's contents, and the definition of conditional probability turns them around to condition on the flag. Every product and sum is written out, because on the exam the work earns the credit as much as the final number. The result is low because bags without a forbidden item are so common (96%) that even 8% of them outnumber the flagged bags that do have one: 0.0768 against 0.038.
Where students lose points
Check yourself
Question 1
For two events, , , and . What is ?
- A
- B
- C
- D
Show answer
C
. Choice B divides by instead, which gives : the condition decides the denominator.
- A
Question 2
At a cafe, 30% of customers order a pastry, and 60% of the customers who order a pastry also order coffee. What is the probability that a randomly chosen customer orders both a pastry and coffee?
Show answer
The 60% is , so the general multiplication rule gives .
Question 3
Using only the cafe information in the previous question, what is the probability that a customer who orders coffee also orders a pastry?
- A
- B
- C
- D
It cannot be determined from the information given.
Show answer
D
, and nothing tells you what fraction of all customers order coffee. Choice C is tempting, but 0.60 is the probability with the condition the other way around.
- A
Question 4
Events and are mutually exclusive and . What is , and why?
Show answer
.
Mutually exclusive means (topic 2.5), so . Once you know happened, cannot have happened.