Conditional probability

By Jude Wallis · Published

Conditional probability is the chance one event happens when you count only the cases where a second event holds, so that event is the denominator.

Conditional probability shrinks the sample space. P(AB)P(A \mid B), read the probability of A given B, is defined as P(AB)P(B)\frac{P(A \cap B)}{P(B)} whenever P(B)>0P(B) > 0: the outcomes where both happen, divided by the outcomes where the condition holds. The event after the bar is the denominator. Nothing in that definition requires BB to happen first in time, only that you are counting inside it.

Take 1,000 drivers followed for a year. 200 texted at the wheel and 800 did not; 40 of the texting drivers had an accident and 10 of the others did.

AccidentNo accidentTotal
Texting40160200
Not texting10790800
Total509501000

Both conditional probabilities are built from the same 40. P(textingaccident)=40/50=0.80P(\text{texting} \mid \text{accident}) = 40/50 = 0.80, while P(accidenttexting)=40/200=0.20P(\text{accident} \mid \text{texting}) = 40/200 = 0.20. Same numerator, different denominator, a factor of four apart.

Here is the sentence readers actually get wrong: 80 percent of accidents involved a texting driver, so texting gives you an 80 percent chance of crashing. The first clause is P(textingaccident)P(\text{texting} \mid \text{accident}) and the second is P(accidenttexting)P(\text{accident} \mid \text{texting}), which is 0.20. Flipping the bar is not a rephrasing, it is a different quantity, and news copy makes that swap constantly.

As long as both events can occur together, the two directions agree only when the events are equally likely, since dividing the definitions gives P(AB)P(BA)=P(A)P(B)\frac{P(A \mid B)}{P(B \mid A)} = \frac{P(A)}{P(B)}. Here that ratio is 0.05/0.20=0.250.05/0.20 = 0.25, matching 0.20/0.800.20/0.80. So the gap is widest exactly where it does the most damage: a rare outcome conditioned on a common behavior, or the reverse. Topic 2.6 is where the course takes this up.

Where this comes up

12 pages on the site use this term.

More probability terms, or browse the full statistics glossary.