Overview
Conditional probability is the probability of an event occurring given that another event has already occurred. It's fundamental to understanding dependent events and Bayesian reasoning.
Definition
The conditional probability of A given B:
P(A∣B)=P(B)P(A∩B)where P(B)>0
Read as: "The probability of A given B."
Key Formulas
Multiplication Rule (Rearranged)
From the definition:
P(A∩B)=P(B)×P(A∣B)
P(A∩B)=P(A)×P(B∣A)
Chain Rule
For multiple events:
P(A∩B∩C)=P(A)×P(B∣A)×P(C∣A∩B)
Independence
Two events A and B are independent if:
P(A∣B)=P(A)or equivalentlyP(B∣A)=P(B)
For independent events:
P(A∩B)=P(A)×P(B)
Testing Independence
Events are independent if:
P(A∩B)=P(A)×P(B)
If this equality doesn't hold, the events are dependent.
Total Probability Theorem
If B1,B2,…,Bn form a partition of S:
P(A)=P(A∣B1)P(B1)+P(A∣B2)P(B2)+⋯+P(A∣Bn)P(Bn)
P(A)=∑P(A∣Bi)P(Bi)
Common Mistakes
| Mistake | Correction |
|---|
| P(A∣B)=P(B∣A) | These are generally different! |
| P(A∣B)=P(A∩B) | Must divide by P(B) |
| Assuming independence | Check if P(A∣B)=P(A) |
Examples
Example 1: Basic Conditional Probability
A bag contains 3 red and 2 blue balls. Draw one ball, then another without replacement.
P(2nd red∣1st red)=42=21
P(2nd red∣1st blue)=43
Example 2: Using a Table
Survey results (200 people):
| Favor (F) | Oppose (O) | Total |
|---|
| Male (M) | 60 | 40 | 100 |
| Female (W) | 50 | 50 | 100 |
| Total | 110 | 90 | 200 |
P(F|M) = \frac{60}{100} = 0.60 \quad \text{(60% of males favor)}
P(M|F) = \frac{60}{110} = 0.545 \quad \text{(54.5% of supporters are male)}
P(F)=200110=0.55
Example 3: Medical Testing
- Disease prevalence: P(D)=0.01
- Test sensitivity: P(+∣D)=0.95 (true positive rate)
- Test specificity: P(−∣D′)=0.90 (true negative rate)
P(+∣D′)=1−0.90=0.10(false positive rate)
Example 4: Drawing Cards Without Replacement
P(both aces when drawing 2 cards):
P(A1∩A2)=P(A1)×P(A2∣A1)=524×513=265212=2211
Example 5: Testing Independence
Roll a die. Let A = "even" and B = "less than 4"
P(A)=63=21
P(B)=63=21
P(A∩B)=P({2})=61
Check: P(A)×P(B)=21×21=41=61
Therefore, A and B are NOT independent.
Tree Diagrams
Useful for visualizing conditional probabilities:
┌─ P(A|B) ─> B ∩ A
┌─ P(B) ─┤
/ └─ P(A'|B) ─> B ∩ A'
Start ──┤
\ ┌─ P(A|B') ─> B' ∩ A
└─ P(B')─┤
└─ P(A'|B') ─> B' ∩ A'
Multiply along branches, add across branches for total probability.