L02 ConditionalProbability
L02 ConditionalProbability
September 2, 2014
Review of “English translation” for events:
• A ∩ B = “both events A and B happen”
• Associative Law:
(A ∪ B) ∪ C = A ∪ (B ∪ C)
(A ∩ B) ∩ C = A ∩ (B ∩ C)
• Commutative Law:
A∪B =B∪A
A∩B =B∩A
• Distributive Law:
(A ∪ B) ∩ C = (A ∩ C) ∪ (B ∩ C)
(A ∩ B) ∪ C = (A ∪ C) ∩ (B ∪ C)
• DeMorgan’s Law:
(A ∪ B)c = Ac ∩ B c
(A ∩ B)c = Ac ∪ B c
Probability Rules:
• Inclusion-Exclusion Rule: P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
Conditional Probability:
P (A|B) = “the probability of event A given that we know B happened”
Formula: P (A|B) = P (A ∩ B)/P (B)
Multiplication Rule:
P (A ∩ B) = P (A|B)P (B)
1
Tree diagrams to compute “two stage” probabilities (B = first stage, A = second stage):
2. Second branch computes probability of second stage, given the first: P (A|B)
Example: You are given two boxes with balls numbered 1 - 5. One box contains balls 1, 3, 5, and the other
contains balls 2 and 4. You first pick a box at random, then pick a ball from that box at random. What is the
probability that you pick a 2?
5 1/3
1/2 1 3 3 1/2 x 1/3 = 1/6
1/3
5 1/2 x 1/3 = 1/6
Let R1 = “first ball red” and R2 = “second ball red” and use product rule:
1 9 9
P (R1 ∩ R2) = P (R1)P (R2|R1) = × = ≈ 0.24
2 19 38
If I draw 3 balls without replacement, what is the probability that they are all red?
P (R1 ∩ R2 ∩ R3) = P (R1 ∩ R2)P (R3|R1 ∩ R2) Multiplication rule for (R1 ∩ R2) ∩ R3
= P (R1)P (R2|R1)P (R3|R1 ∩ R2) Multiplication rule for R1 ∩ R2
1 9 8 18
= × × = ≈ 0.11
2 19 18 171
In-Class Problem: Exercise 3.2a