Unit 2 · Topic 2.6 Beta

Conditional Probability

3 min read · freeNot practiced

New information changes probabilities. The chance that a randomly chosen adult gets news online is one number; the chance once you know the adult is under 40 is another. This topic is about that second kind of probability, and about the most common mistake in all of probability: mixing up which event is known.

Given that: a new total

A random sample of 400 adults reported their main news source.

Age groupOnlineTVPrintTotal
Under 401326622220
40 and over549036180
Total18615658400

Choose one of the 400 at random. The probability of "online" is 186400=0.465\frac{186}{400} = 0.465. Now suppose you are told the person is under 40. Only the 220 people in that row are possible, so the probability becomes 132220=0.6\frac{132}{220} = 0.6. That is a conditional probability, written

P(online|under 40)=0.6,P(\text{online} \mid \text{under } 40) = 0.6,

read "the probability of online given under 40". The event after the bar is the one you know; its total goes on the bottom. In general,

P(A|B)=P(A∩B)P(B).P(A \mid B) = \frac{P(A \cap B)}{P(B)}.

With the table: 132/400220/400\frac{132/400}{220/400}=132220= \frac{132}{220}, the same as dividing the cell by its row total. A conditional probability from a table is a conditional relative frequency.

Reversing the condition changes the answer

Worked example 1. Find P(under 40|online)P(\text{under } 40 \mid \text{online}) and compare it with P(online|under 40)P(\text{online} \mid \text{under } 40).

Given online, the 186 online readers are the total: P(under 40|online)P(\text{under } 40 \mid \text{online})=132186= \frac{132}{186}≈0.710\approx 0.710.

P(online|under 40)P(\text{online} \mid \text{under } 40)=132220= \frac{132}{220}=0.6= 0.6.

Same cell, different condition, different answer.

Getting the condition backward is behind many bad arguments. "Most injured drivers wore seat belts" is about P(belt|injured)P(\text{belt} \mid \text{injured}), which is high simply because most drivers wear belts. Whether belts are safe is about P(injured|belt)P(\text{injured} \mid \text{belt}).

The multiplication rule

Multiply both sides of the definition by P(A)P(A), with the events in the other order, and you get the general multiplication rule:

P(A∩B)=P(A)⋅P(B|A).P(A \cap B) = P(A) \cdot P(B \mid A).

It is the natural way to find "both" for events in sequence. Draw two tokens without replacement from a bag of 5 red and 3 blue: P(both red)P(\text{both red})=58⋅47= \frac{5}{8} \cdot \frac{4}{7}=2056= \frac{20}{56}≈0.357\approx 0.357. The second fraction is conditional: after a red token is gone, 4 of the 7 left are red.

Tree diagrams

Tree diagram for a screening test. First branches: 0.04 of people have the condition and 0.96 do not. Given the condition, the test is positive with probability 0.90 and negative 0.10. Given no condition, positive 0.06 and negative 0.94. The four paths multiply to 0.036, 0.004, 0.0576 and 0.9024. The positive paths add to 0.0936.
Figure 1. A tree for a screening test, from the share with the condition to the test result. LevlPrep original diagram.

A tree diagram lays out a process in stages. In a population, 4% of people have a condition. A screening test is positive for 90% of people with it and for 6% of people without it. The first branches split by condition (0.04 and 0.96); the second branches give the test result given each first branch. Two rules run the tree, as the figure shows:

  • Multiply along a path (the multiplication rule): P(condition∩positive)P(\text{condition} \cap \text{positive})=(0.04)= (0.04)(0.90)(0.90)=0.036= 0.036.
  • Add the paths that end where you want: P(positive)P(\text{positive})=0.036= 0.036+(0.96)+ (0.96)(0.06)(0.06)=0.036= 0.036+0.0576+ 0.0576=0.0936= 0.0936.

Worked example 2. A person tests positive. Find the probability that the person has the condition.

Structure: P(condition|positive)P(\text{condition} \mid \text{positive})=P(condition∩positive)P(positive)= \frac{P(\text{condition} \cap \text{positive})}{P(\text{positive})}.

Substitute: 0.0360.0936\frac{0.036}{0.0936}.

Answer: about 0.385. Of the people who test positive, about 38.5% have the condition.

Why so low when the test catches 90% of cases? Because so few people have the condition. The false positives, 0.0576 of everyone, outnumber the true positives, 0.036. Screening programs follow a positive result with a second, more accurate test for exactly this reason.

Checklist

You wantDo this
P(A|B)P(A \mid B) from a tablecell for A and B over the total for B
P(A∩B)P(A \cap B) in stagesP(A)⋅P(B|A)P(A) \cdot P(B \mid A), multiply along the path
P(result) from a treeadd every path ending in the result
Reverse a conditionone path over the sum of the paths with the known result

Before computing, write the probability in words and in notation, and say aloud which event comes after the bar. That one habit prevents most mistakes in this topic.

Spot a mistake on this page?