Sub topic 7
The Multiplication Rule and Independence
This chapter assumes you can already compute a classical probability as favourable over total outcomes, and that you know the conditional probability P(B | A) as "the probability of B once A is known to have happened". You also need the complement rule and basic fraction arithmetic. Here you will use the multiplication rule to find the probability that several events happen together, decide when that calculation simplifies, and avoid the standard CAT traps around "independent".
The multiplication rule
The multiplication rule answers the question "what is the probability that A and B both happen?". It follows directly from the definition of conditional probability, P(B | A) = P(A ∩ B) / P(A). Multiply both sides by P(A):
P(A ∩ B) = P(A) × P(B | A)
Read it as a sequence of steps. First A happens, with probability P(A). Then, given that A has happened, B happens with its updated probability P(B | A).
The rule extends to any number of events:
P(A ∩ B ∩ C) = P(A) × P(B | A) × P(C | A ∩ B)
Each factor is conditioned on everything that came before it.
Example. Two cards are drawn from a 52-card deck without replacement. What is the probability that both are aces?
- The first card is an ace with probability 4/52.
- Given that, 3 aces remain among 51 cards, so the second is an ace with probability 3/51.
- The product is (4/52) × (3/51) = 12/2652 = 1/221.
The second factor is not 4/52. Drawing the first ace changed the deck, and the conditional probability records that change.
Independence
Two events are independent if knowing that one happened does not change the probability of the other. Formally, A and B are independent when
P(A ∩ B) = P(A) × P(B)
This is equivalent to P(B | A) = P(B), and also to P(A | B) = P(A). Independence is the special case of the multiplication rule in which the conditioning has no effect, so each conditional factor collapses to a plain probability.
Independence is a property of the probabilities, not of the story. Two events can look unrelated and still be dependent, and two events that look connected can be independent. The reliable test is the product formula.
Independence is common in these situations:
- Separate tosses of a coin, or separate rolls of a die.
- Draws made with replacement, where the bag is restored each time.
- Separate people attempting separate tasks, when the problem says they act independently.
Draws without replacement are the standard case of dependence, because each draw changes what is left.
Checking independence by computation
When a problem does not tell you whether two events are independent, compute P(A), P(B) and P(A ∩ B) and compare. The sample space here is two fair dice, with 36 equally likely outcomes. Let A be "the first die is even".
from itertools import product
from fractions import Fraction
outcomes = list(product(range(1, 7), repeat=2))
def prob(event):
return Fraction(sum(1 for o in outcomes if event(o)), len(outcomes))
def first_even(o):
return o[0] % 2 == 0
for target in (7, 8):
def total_is_target(o, t=target):
return sum(o) == t
p_a = prob(first_even)
p_b = prob(total_is_target)
p_ab = prob(lambda o: first_even(o) and total_is_target(o))
print(target, p_a, p_b, p_ab, p_ab == p_a * p_b)
# 7 1/2 1/6 1/12 True
# 8 1/2 5/36 1/12 FalseFor a total of 7, P(A ∩ B) = 1/12 = (1/2)(1/6), so the events are independent. Whatever the first die shows, exactly one value of the second die makes the sum 7.
For a total of 8, P(A ∩ B) = 1/12 but P(A) × P(B) = 5/72, so the events are dependent. If the first die is odd, the second must be odd as well. That removes the outcomes (2,6), (4,4) and (6,2) from consideration, which is why the total of 8 is more likely given an even first die.
Independent is not the same as mutually exclusive
Students confuse these two ideas more than any other pair in probability. They describe opposite situations.
| Property | Mutually exclusive | Independent |
|---|---|---|
| Meaning | A and B cannot both happen | Knowing A does not change P(B) |
| Defining equation | P(A ∩ B) = 0 | P(A ∩ B) = P(A) P(B) |
| Effect on union | P(A ∪ B) = P(A) + P(B) | P(A ∪ B) = P(A) + P(B) − P(A) P(B) |
| Effect on P(B given A) | P(B given A) = 0 | P(B given A) = P(B) |
If A and B are mutually exclusive and both have positive probability, they are dependent. Knowing that A occurred tells you B did not, which is a large change in the probability of B. So P(A ∩ B) = 0 cannot equal P(A) P(B), which is positive.
Sequential reasoning with a tree
A probability tree is a picture of the multiplication rule. Each branch carries a conditional probability, and the probability of a complete path is the product along that path.
A bag holds 3 red and 2 blue balls. Two balls are drawn without replacement.
The four path probabilities are (3/5)(2/4) = 3/10, (3/5)(2/4) = 3/10, (2/5)(3/4) = 3/10 and (2/5)(1/4) = 1/10. They add to 1, which is a useful check. The probability of "one red and one blue in any order" is 3/10 + 3/10 = 3/5. You add these paths because they are mutually exclusive.
Independent events and "at least one"
For independent events, the complement rule and the multiplication rule work well together. The complement of "at least one happens" is "none happens". If the events are independent, so are their complements, and
P(at least one) = 1 − P(none) = 1 − (1 − p₁)(1 − p₂) … (1 − pₙ)
For two independent events this equals p + q − pq, which is the addition rule with the overlap pq subtracted.
Example. Three students try the same problem independently. Their chances of solving it are 1/2, 1/3 and 1/4. The probability that nobody solves it is (1/2)(2/3)(3/4) = 1/4. So the probability that at least one solves it is 1 − 1/4 = 3/4.
Compare the direct route. You would need to add up seven cases (exactly one, exactly two, all three) and risk an arithmetic slip. The complement takes one line.
Exactly one: combining paths
Questions about "exactly one" or "exactly two" need you to list the mutually exclusive ways, multiply along each, and add.
Example. A, B and C shoot at a target independently with hit probabilities 2/3, 3/4 and 1/2. Find the probability that exactly one hits.
- Only A hits: (2/3)(1/4)(1/2) = 2/24
- Only B hits: (1/3)(3/4)(1/2) = 3/24
- Only C hits: (1/3)(1/4)(1/2) = 1/24
The total is 6/24 = 1/4. This can be checked by enumerating all eight hit/miss patterns.
from itertools import product
from fractions import Fraction
hit = [Fraction(2, 3), Fraction(3, 4), Fraction(1, 2)]
total = Fraction(0)
for pattern in product([True, False], repeat=3):
p = Fraction(1)
for h, p_hit in zip(pattern, hit):
p *= p_hit if h else 1 - p_hit
if sum(pattern) == 1:
total += p
print(total) # 1/4The inner loop applies the multiplication rule to each pattern, which is legitimate only because the shooters are independent. The outer sum applies the addition rule to patterns that cannot occur together.
Pairwise and mutual independence
For three or more events, independence has two levels. Events are pairwise independent if every pair satisfies the product formula. They are mutually independent if, in addition, every larger group does too, so P(A ∩ B ∩ C) = P(A) P(B) P(C).
Pairwise independence does not imply mutual independence. Toss a fair coin twice and define:
- A: the first toss is heads.
- B: the second toss is heads.
- C: both tosses show the same face.
Each event has probability 1/2. Every pair intersects in exactly one outcome: A ∩ B = HH, A ∩ C = HH and B ∩ C = HH. That gives probability 1/4 for each pair, which equals (1/2)(1/2). So the events are pairwise independent. But A ∩ B ∩ C = HH has probability 1/4, while P(A) P(B) P(C) = 1/8. The three together are not mutually independent. Once you know A and B, C is certain.
For CAT problems, "independent events" almost always means mutually independent, and you can multiply any collection of them. The distinction matters when a problem asks you to verify independence for a set of three events.
Common traps
- Multiplying when events are dependent. In draws without replacement, use the changed counts for each later factor.
- Adding probabilities of "and". "Both" and "all" lead to multiplication. "Either" or "or" leads to addition, with an overlap correction.
- Assuming exclusive means independent. See the table above. Exclusive events with positive probability are always dependent.
- Judging independence by intuition. Check the product formula. The dice example above shows a case where intuition about "unrelated" events fails.
- Using P(A) P(B) for the intersection after the problem has told you something. If a condition has been given, the second factor must be conditional.
- Forgetting the order of conditioning. P(A | B) and P(B | A) are different numbers unless P(A) = P(B).
Practice
Exercise
Events A and B are independent, with P(A) = 0.4 and P(B) = 0.5. Find P(A ∪ B) and P(A ∩ B').
Show answer
P(A ∩ B) = 0.4 × 0.5 = 0.2, so P(A ∪ B) = 0.4 + 0.5 − 0.2 = 0.7. For P(A ∩ B'), A and the complement of B are also independent, so P(A ∩ B') = 0.4 × 0.5 = 0.2. The same value follows from P(A) − P(A ∩ B) = 0.4 − 0.2 = 0.2.
Exercise
For two events, P(A) = 1/2, P(B) = 1/3 and P(A ∪ B) = 2/3. Are A and B independent?
Show answer
Use the union formula to find the intersection: P(A ∩ B) = 1/2 + 1/3 − 2/3 = 1/6. The product P(A) P(B) = (1/2)(1/3) = 1/6. The two values match, so A and B are independent.
Exercise
A box holds 4 good and 2 defective bulbs. Three bulbs are drawn one after another without replacement. What is the probability that all three are good?
Show answer
Multiply the conditional probabilities along the path: (4/6)(3/5)(2/4) = 24/120 = 1/5. The factors are not equal because each drawn good bulb reduces both the good count and the total count.