Unit 2 · Topic 2.6 · about 25 minutes
Conditional Probability
Calculate a conditional probability from a table or from given probabilities, and use the general multiplication rule to find the probability that two events both happen.
Predict first
A sports league tests its athletes for a banned substance. Suppose 4% of the athletes use it. The test comes back positive for 95% of users, and also, wrongly, for 6% of athletes who do not use it. An athlete tests positive. About how likely is it that this athlete uses the substance?
What "given" does
A conditional probability is the probability that event A occurs given that event B has occurred. It is written and read "the probability of A given B". Knowing that B happened shrinks the possibilities to the outcomes in B, and the question becomes what fraction of those are also in A:
This is the probability version of the conditional relative frequency from 2.2 Summary Statistics for Two Categorical Variables. With a table of counts, "given" tells you which row or column to stay inside, and that row or column total becomes the denominator.
| Has a job | No job | Total | |
|---|---|---|---|
| Junior | 96 | 224 | 320 |
| Senior | 140 | 140 | 280 |
| Total | 236 | 364 | 600 |
Choose one of these 600 students at random. Given that the student is a senior, you stay in the senior row, so . The formula agrees: .
Now reverse the condition. Given that the student has a job, you stay in the job column: . The numerator is the same, but the denominator changes because the question changed. Half of the seniors have jobs, and about 59% of the students with jobs are seniors.
The general multiplication rule
Write the definition for instead, multiply both sides by , and you get the general multiplication rule:
For A and B both to happen, A has to happen, and then B has to happen given that A did. It is the tool to reach for when events happen in sequence and the second depends on the first.
A club has 12 members, 5 of them seniors. Two members are chosen at random as president and treasurer, and nobody can hold both jobs. The chance that the president is a senior is . Given that a senior was chosen, 4 of the remaining 11 members are seniors, so
Worked exampleBack to the drug test
In the league from the prediction, 4% of athletes use the banned substance. The test is positive for 95% of users and for 6% of non-users. Find the probability that an athlete who tests positive is a user.
Name the events and sort the facts. Let U be "uses the substance" and + be "tests positive". The facts are , and . The question asks for , with the condition on the other side.
Find each way to test positive with the multiplication rule. User and positive: . Non-user and positive: .
Add them for the total chance of a positive. .
Apply the definition. .
Interpret in context. About 39.7% of the athletes who test positive actually use the substance. Most positive tests are false alarms, because non-users far outnumber users.
. A positive test raises the chance of use from 0.04 to about 0.40, but on its own it is not enough to conclude that this athlete uses the substance.
| Tests positive | Tests negative | Total | |
|---|---|---|---|
| User | 380 | 20 | 400 |
| Non-user | 576 | 9,024 | 9,600 |
| Total | 956 | 9,044 | 10,000 |
Check your understanding
Of 320 juniors at a school, 96 have a part-time job. Of 280 seniors, 140 have one. One of these 600 students is chosen at random. Given that the student has no job, what is the probability that the student is a junior? Round to three decimal places.
A survey found that among adults who own a dog, 70% walk at least 30 minutes a day. Let D be "owns a dog" and W be "walks at least 30 minutes a day" for a randomly chosen adult. Which statement matches the survey result?
A box holds 20 phone chargers, and 3 of them are defective. Two chargers are taken out at random, one after the other, without replacement. What is the probability that both are defective?
At a coffee shop, 60% of customers order a hot drink. Of the customers who order a hot drink, 25% also buy a pastry. What is the probability that a randomly chosen customer orders a hot drink and buys a pastry?
For a randomly chosen adult in a town, the probability of having a library card is 0.40, and the probability of having a library card and visiting the library in the past month is 0.12. Given that an adult has a library card, what is the probability that the adult visited the library in the past month?
Course alignment, for teachers
AP Statistics topic 2.6, Unit 2: Probability, Random Variables, and Probability Distributions.
- Skill 3.C: Calculate and estimate expected counts, percentages, probabilities, and intervals.