Educerie · AP · Statistics
AP Statistics 2.6
Conditional Probability
How do we describe chance and variation, so that a claim about a population can be backed by numbers?
What you will learn
- Understand that P(A given B) is the probability of A when the sample space is cut down to B
- Know the formula P(A given B) = P(A and B) / P(B), which is on the Exam Reference Information
- Know the general multiplication rule and when it is needed
- Understand that P(A given B) and P(B given A) are usually different
You must be able to
- Calculate a conditional probability from a two-way table
- Calculate a conditional probability from P(A and B) and P(B)
- Use the general multiplication rule, for example for draws without replacement
- Interpret a conditional probability in context
- Explain why P(A given B) is not P(B given A)
- Show the formula, the substituted values and the answer
In the exam. Section I multiple choice often gives a two-way table and asks for a conditional probability, or gives two probabilities and asks for a joint one with the multiplication rule. Many questions are built to catch the swap of with . In Section II, conditional probabilities arrive inside a context such as a screening test or a survey, and they lead on to independence and, later, to the idea of a p-value as a conditional probability. Skill 3.C.
1Reading the notation
is read "the probability of A given B". The condition is after the bar and is the group you restrict to. The event is before the bar.
In words, three phrases signal a conditional probability:
- "given that", as in "given that the test is positive";
- "of those who", as in "of the students who take the bus";
- "if", as in "if a customer pays by card".
2From a two-way table
Example (invented): a health screening is given to 1000 people. In the group, 40 have the condition and 960 do not. The test is positive for 36 of the 40 who have it, and positive for 48 of the 960 who do not. Table 1 shows the counts.
| Test positive | Test negative | Total | |
|---|---|---|---|
| Has the condition | 36 | 4 | 40 |
| Does not have it | 48 | 912 | 960 |
| Total | 84 | 916 | 1000 |
Let be "has the condition" and be "test is positive".
Given a positive test, what is the probability the person has the condition?
Restrict to the 84 people with a positive test. Of them, 36 have the condition.
The same answer comes from the formula, with counts over 1000:
Given that the person has the condition, what is the probability of a positive test?
The two answers are very different. 90% of the people who have the condition test positive, but only about 43% of those who test positive have it. The reason is the denominator: the 84 positives include 48 people without the condition.
In a table, the sample space shrinks to the row or column of the condition. You never need the formula for a table, but you must be able to write what you did: "36 out of the 84 people who tested positive".
3Never swap the two
and are usually different. They share the numerator, , and they have different denominators, and .
A test that picks up 90% of the cases (the second figure) can still have most of its positives wrong when the condition is rare (the first figure). Always ask: what is the group I am told about, and so what is the denominator?
4The general multiplication rule
Rearranging gives the rule for "A and B":
Use it when the joint probability is wanted and the second probability depends on what has happened first.
Worked example 1 (without replacement). A group of 10 students has 4 seniors and 6 juniors. Two are chosen at random to give a talk. What is the probability that both are seniors?
Let be "the first chosen is a senior" and be "the second chosen is a senior". After one senior has been taken, 3 seniors remain among 9 students.
Worked example 2 (from stated probabilities). 60% of the students at a school ride the bus. Of the students who ride the bus, 25% are late at least once a month. What is the probability that a randomly chosen student rides the bus and is late at least once a month?
Let be "rides the bus" and be "late at least once a month". and .
Note that 0.25 is a percentage of the bus riders, not of all students, so it cannot be the answer. It must be multiplied by the share of students who are bus riders.
5A conditional probability from the multiplication rule
Continue the bus example. Of the students who do not ride the bus, 10% are late at least once a month. We want the probability that a student rides the bus, given that the student is late at least once a month.
First find . A late student either rides the bus or does not, and these cannot overlap, so add the two joint probabilities.
Now use the definition:
Among the late students, about 79% ride the bus. This is a very different number from , the share of bus riders who are late.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.