Course contentsShow
← Data Science
Lesson 89 of 2,1453. Probability FoundationsFree lesson

The Complement Rule

P(not A) = 1 - P(A) as a shortcut for computing the probability of an event not occurring.

The Complement Rule

You'll learn a simple shortcut to find the probability of something not happening.

What Is the Complement Rule?

Sometimes calculating the probability that an event doesn't occur is easier than calculating the probability that it does occur. The Complement Rule gives you a shortcut:

P(not A) = 1 − P(A)

In words: the probability that event A doesn't happen equals one minus the probability that it does happen.

Why This Works

Remember that probabilities must sum to 1 across the entire sample space. Every outcome either belongs to event A or to "not A"—these two possibilities are mutually exclusive and collectively exhaustive. They partition the sample space perfectly.

Since P(A) + P(not A) = 1, simple algebra gives us P(not A) = 1 − P(A).

When to Use It

Imagine you want the probability that at least one of five coin flips is heads. Calculating all the ways to get one, two, three, four, or five heads is tedious. But there's only one way to get zero heads (all tails). So:

  • P(at least one heads) = 1 − P(all tails)
  • P(at least one heads) = 1 − (0.5)⁵ = 1 − 0.03125 = 0.96875

The complement rule turns a complex problem into an easy one.

Plain-English Analogy

If there's a 30% chance of rain today, there's a 70% chance it won't rain. You didn't need to calculate sunny, cloudy, and snowy separately—you just subtracted from certainty (100%).

Key Takeaway: Use P(not A) = 1 − P(A) whenever calculating "not happening" or "at least one" is simpler than the direct approach.