Conditional Probability
Prerequisites
- Probability Basics — Sample space, events, axioms
🎯 Learning Objectives
- Define and compute conditional probability P(A|B)
- Apply the multiplication rule to sequential events
- Use the chain rule for three or more events
- Solve urn-style and sequential drawing problems
1. Definition of Conditional Probability
Conditional Probability
The conditional probability of A given B is:
Intuitively, once we know B has occurred, the effective sample space shrinks to B, and we ask what fraction of B also includes A.
Example 1 — Fair Die
A fair die is rolled. Given that the outcome is even, what is P(outcome ≥ 5)?
Solution: B = {2, 4, 6} (even), A = {5, 6} (≥5). A ∩ B = {6}.
P(A|B) = P({6}) / P({2,4,6}) = (1/6) / (3/6) = 1/3.
2. Multiplication Rule
Multiplication Rule
Rearranging the conditional probability definition:
Example 2 — Drawing Cards Sequentially
Two cards are drawn without replacement. P(both Aces)?
Solution: P(1st Ace) = 4/52. P(2nd Ace | 1st Ace) = 3/51.
P(both Aces) = (4/52) × (3/51) = 12/2652 = 1/221 ≈ 0.0045.
3. Chain Rule (Product Rule)
Chain Rule
For events A1, A2, …, An:
Why the Chain Rule Matters
The chain rule is foundational for Bayesian networks, where we decompose a joint distribution into a product of conditional probabilities. We will use this extensively in later sections.
Example 3 — Three Cards
Three cards are drawn without replacement. P(all three are hearts)?
Solution:
P(H1) = 13/52
P(H2|H1) = 12/51
P(H3|H1 ∩ H2) = 11/50
P(all hearts) = (13/52)(12/51)(11/50) = 1716/132600 = 11/850 ≈ 0.0129
4. Urn Problems (Classic GATE Style)
Example 4 — Two-Urn Problem GATE Style
Urn I has 3 red and 4 blue balls. Urn II has 5 red and 2 blue balls. A ball is drawn from Urn I and placed in Urn II, then a ball is drawn from Urn II. What is P(2nd ball is red)?
Solution: Let R1 = red from Urn I, B1 = blue from Urn I, R2 = red from Urn II.
Case 1: Red transferred ⇒ Urn II has 6R, 2B.
P(R1) × P(R2|R1) = (3/7)(6/8) = 18/56
Case 2: Blue transferred ⇒ Urn II has 5R, 3B.
P(B1) × P(R2|B1) = (4/7)(5/8) = 20/56
P(R2) = 18/56 + 20/56 = 38/56 = 19/28 ≈ 0.6786
Example 5 — Sequential Without Replacement GATE Style NAT
A bag has 5 white and 3 black balls. Two balls are drawn without replacement. P(second ball is white)?
Solution:
P(W2) = P(W1)P(W2|W1) + P(B1)P(W2|B1)
= (5/8)(4/7) + (3/8)(5/7) = 20/56 + 15/56 = 35/56 = 5/8 = 0.625
Insight: Marginal probability of the second draw equals the marginal probability of the first draw when drawing without replacement from a homogeneous pool!
Summary
- Conditional probability: P(A|B) = P(A ∩ B) / P(B)
- Multiplication rule: P(A ∩ B) = P(A)P(B|A)
- Chain rule extends multiplication to n events — the basis for Bayesian network factorization
- For urn/sequential problems, enumerate cases and use the law of total probability