Skip to content
Part IA Easter Term

Conditional Probability

The Intuition

New information changes probabilities. If we roll a die and learn the result is even, the probability of rolling 6 changes from 16\frac{1}{6} to 13\frac{1}{3}.

Conditional probability formalises this: given that some event occurred, what is the probability of another?

Definition

The conditional probability of EE given FF (with P(F)>0P(F) > 0) is:

P(EF)=P(EF)P(F)P(E \mid F) = \frac{P(E \cap F)}{P(F)}

Interpretation: We restrict our attention to outcomes where FF occurs. The probability of EE is then the relative proportion of these outcomes that also lie in EE.

Conditional probability as restricted sample space

Equivalent Forms

Rearranging:

P(EF)=P(EF)P(F)P(E \cap F) = P(E \mid F) \cdot P(F)

This is useful for computing joint probabilities: decompose into conditional times marginal.

Similarly:

P(EF)=P(FE)P(E)P(E \cap F) = P(F \mid E) \cdot P(E)

Properties

Conditional probability satisfies all probability axioms:

  • P(EF)0P(E \mid F) \geq 0 for all EE
  • P(ΩF)=1P(\Omega \mid F) = 1
  • P(iEiF)=iP(EiF)P(\bigcup_{i} E_i \mid F) = \sum_{i} P(E_i \mid F) for disjoint EiE_i

Conditional on FF, we have a valid probability measure on the restricted sample space FF.

Examples

Example 1: Dice

Roll two dice. Given that the sum is 7, what is the probability the first die shows 4?

Let EE = “first die is 4”, FF = “sum is 7”. The outcomes in FF are: {(1,6),(2,5),(3,4),(4,3),(5,2),(6,1)}\{(1,6), (2,5), (3,4), (4,3), (5,2), (6,1)\}.

Out of these 6 equally likely outcomes, only (4,3)(4,3) has first die 4.

P(EF)=16P(E \mid F) = \frac{1}{6}

Compare: P(E)=16P(E) = \frac{1}{6} (unconditionally). In this case, knowing the sum is 7 doesn’t change the probability.

Example 2: Cards

Draw two cards without replacement from a standard deck. Given the first card is a heart, what is the probability the second card is a heart?

Let EE = “second card is a heart”, FF = “first card is a heart”.

After drawing a heart first, 12 hearts remain out of 51 cards.

P(EF)=1251=417P(E \mid F) = \frac{12}{51} = \frac{4}{17}

Compare: P(E)=12P(E) = \frac{1}{2} (unconditionally, by symmetry).

Example 3: Medical Tests

A test for a disease has 99% sensitivity (true positive rate) and 95% specificity (true negative rate). Disease prevalence is 1%. What is the probability of having the disease given a positive test?

Let DD = “has disease”, TT = “tests positive”.

We want P(DT)P(D \mid T).

P(DT)=P(TD)P(D)P(T)P(D \mid T) = \frac{P(T \mid D) \cdot P(D)}{P(T)}

where P(T)=P(TD)P(D)+P(TDc)P(Dc)=0.99×0.01+0.05×0.99=0.0099+0.0495=0.0594P(T) = P(T \mid D) P(D) + P(T \mid D^c) P(D^c) = 0.99 \times 0.01 + 0.05 \times 0.99 = 0.0099 + 0.0495 = 0.0594

P(DT)=0.99×0.010.05940.00990.059416.7%P(D \mid T) = \frac{0.99 \times 0.01}{0.0594} \approx \frac{0.0099}{0.0594} \approx 16.7\%

Despite a positive test, there’s only a 16.7% chance of having the disease, due to low prevalence.

The Chain Rule

For multiple events:

P(E1E2En)=P(E1)P(E2E1)P(E3E1E2)P(EnE1En1)P(E_1 \cap E_2 \cap \cdots \cap E_n) = P(E_1) \cdot P(E_2 \mid E_1) \cdot P(E_3 \mid E_1 \cap E_2) \cdots P(E_n \mid E_1 \cap \cdots \cap E_{n-1})

This decomposes complex joint probabilities into simpler conditional probabilities.

Example: Drawing Without Replacement

Draw 3 cards from 52 without replacement. Probability all are spades:

P(all spades)=135212511150=131211525150P(\text{all spades}) = \frac{13}{52} \cdot \frac{12}{51} \cdot \frac{11}{50} = \frac{13 \cdot 12 \cdot 11}{52 \cdot 51 \cdot 50}

Common Misconceptions

Confusion with Inverse

P(EF)P(FE)P(E \mid F) \neq P(F \mid E) in general.

In the medical test example:

  • P(TD)=0.99P(T \mid D) = 0.99 (sensitivity)
  • P(DT)0.167P(D \mid T) \approx 0.167 (much smaller)

The Prosecutor’s Fallacy

Confusing P(evidenceinnocent)P(\text{evidence} \mid \text{innocent}) with P(innocentevidence)P(\text{innocent} \mid \text{evidence}). A small false positive rate doesn’t guarantee a small probability of innocence.

Conditioning as Restriction

Conditional probability can be understood as:

  1. Restrict the sample space to FF
  2. Renormalise probabilities so they sum to 1

For equally likely outcomes:

P(EF)=EFFP(E \mid F) = \frac{|E \cap F|}{|F|}

Count outcomes in EFE \cap F, divide by outcomes in FF.

Summary

ConceptFormula
DefinitionP(EF)=P(EF)P(F)P(E \mid F) = \frac{P(E \cap F)}{P(F)}
Product ruleP(EF)=P(EF)P(F)P(E \cap F) = P(E \mid F) P(F)
Chain ruleP(E1En)=i=1nP(EiE1Ei1)P(E_1 \cap \cdots \cap E_n) = \prod_{i=1}^{n} P(E_i \mid E_1 \cap \cdots \cap E_{i-1})