All AP Courses AP StatisticsAP Stats

Unit 2 · Topic 2.6 · about 25 minutes

AP Statistics 2.6: 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.

Unit 2: 15 to 25% of the multiple-choice section

What you'll be able to do

  • Calculate the probability of one event given that another event has occurred.

Key vocabulary

TermWhat it meansThe exam trap
Conditional probabilityThe probability that A occurs given that B has occurred, P(A|B)=P(A∩B)P(B).Reversing the condition changes the answer: half of the seniors have jobs, yet about 59 percent of the students with jobs are seniors.
General multiplication ruleThe probability that A and B both occur is P(A∩B)=P(A)⋅P(B|A).Forgetting that the second factor is conditional gives 320⋅320 for two defective chargers, when the second draw is really 219.
Joint probabilityThe probability that two events both occur, P(A∩B).Dividing where the rule multiplies turns 0.60 and 0.25 into about 0.42, but the chance of a hot drink and a pastry is 0.60(0.25)=0.15.

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 P(A|B) 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:

P(A|B)=P(A∩B)P(B)

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.

600 juniors and seniors by part-time job (counts)
Has a jobNo jobTotal
Junior96224320
Senior140140280
Total236364600

Choose one of these 600 students at random. Given that the student is a senior, you stay in the senior row, so P(job|senior)=140280=0.50. The formula agrees: P(job∩senior)P(senior)=140/600280/600=0.50.

Now reverse the condition. Given that the student has a job, you stay in the job column: P(senior|job)=140236≈0.593. 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 P(B|A) instead, multiply both sides by P(A), and you get the general multiplication rule:

P(A∩B)=P(A)⋅P(B|A)

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 512. Given that a senior was chosen, 4 of the remaining 11 members are seniors, so

P(both seniors)=512⋅411=20132≈0.152

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.

  1. Name the events and sort the facts. Let U be "uses the substance" and + be "tests positive". The facts are P(U)=0.04, P(+|U)=0.95 and P(+|UC)=0.06. The question asks for P(U|+), with the condition on the other side.

  2. Find each way to test positive with the multiplication rule. User and positive: P(U∩+)=P(U)⋅P(+|U)=0.04(0.95)=0.038. Non-user and positive: P(UC∩+)=0.96(0.06)=0.0576.

  3. Add them for the total chance of a positive. P(+)=0.038+0.0576=0.0956.

  4. Apply the definition. P(U|+)=P(U∩+)P(+)=0.0380.0956≈0.397.

  5. 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.

Answer.

P(U|+)≈0.397. 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.

The same probabilities as counts for 10,000 imagined athletes. The answer is 380 out of 956 positives.
Tests positiveTests negativeTotal
User38020400
Non-user5769,0249,600
Total9569,04410,000

Check your understanding

1

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.

2

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?

3

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?

4

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?

5

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?

Practice

Practice until it is automatic

Work the problems that say "given" first: find the group you are restricted to, and use its total as the denominator. The rest read a probability straight from a table or use the complement rule from 2.4 Introduction to Probability.

Probability from two-way tables practice page · Addition rule, complements and conditional probability practice page

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 90 minutes.
  • Section II, Free Response: 4 questions in 90 minutes.
  • A graphing calculator with statistical capabilities is expected on both sections.

Questions students ask

How is a conditional probability related to a conditional relative frequency?

It is the same idea in probability language. With a table of counts, given tells you which row or column to stay inside, and that total becomes the denominator.

Why does a positive test mean only about a 40 percent chance that the athlete uses the substance?

Non-users far outnumber users. Out of 10,000 imagined athletes, 380 users test positive, but so do 576 non-users. Only 380 of the 956 positives are users, which is about 0.397.

When do I use the general multiplication rule?

When you want the chance that two things both happen and the second depends on the first, like choosing two club officers from the same 12 members or drawing two chargers without putting the first one back.

Can a conditional probability be bigger than the plain probability?

Yes. Among the seniors, the chance of having a job is 0.50, higher than the 236600≈0.393 for all 600 students.

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.