Multiplication Rule
What you'll learn: You'll learn how to calculate the probability that two events both happen by multiplying their probabilities, accounting for whether one event affects the other.
The Core Idea
The Multiplication Rule tells us how to find the probability that two events occur together. There are two versions:
For independent events (when one doesn't affect the other):
- P(A and B) = P(A) × P(B)
For dependent events (when the first affects the second):
- P(A and B) = P(A) × P(B|A)
The second formula uses conditional probability P(B|A), which you just learned—it's the probability of B happening given that A already happened.
Why This Matters
Think of authentication: What's the probability a user enters the correct username AND correct password? If they're randomly guessing, you multiply the individual probabilities. But if the system shows hints after the username (making the password guess dependent), you need conditional probability.
Example
Suppose you're debugging and two tests must both pass:
- P(Test 1 passes) = 0.8
- P(Test 2 passes | Test 1 passes) = 0.7 (Test 2 depends on Test 1's setup)
The probability both pass:
- P(Both pass) = 0.8 × 0.7 = 0.56 or 56%
If they were independent (Test 2 doesn't depend on Test 1), and P(Test 2) = 0.9:
- P(Both pass) = 0.8 × 0.9 = 0.72 or 72%
Key Takeaway: The Multiplication Rule calculates joint probabilities by multiplying P(A) and P(B|A) for dependent events, or simply P(A) × P(B) when events are independent.