Skip to content
Tutorials Center
My learning

Topics

Lesson 18 of 37 ยท Probability Basics

Complements and Mutually Exclusive Events

Use the complement rule P(not A) = 1 - P(A), the addition rule for mutually exclusive events, and the general or-rule with Venn diagrams and Python checks.

Often the easiest way to find a probability is to avoid the direct route. "At least one head in five tosses" sounds complicated, but "no heads at all" is a single outcome. In this lesson you will learn three tools for combining events: the complement rule, the addition rule for events that cannot happen together, and the general rule when they can.

Complement of an event

The complement of an event A is "A does not happen", written A' or not A. Since exactly one of "A happens" and "A does not happen" must be true, their probabilities add up to 1:

P(A') = 1 โˆ’ P(A)

Example: if the chance of rain is 0.35, the chance of no rain is 1 โˆ’ 0.35 = 0.65.

At least one

"At least one" is the complement of "none". For a fair coin tossed 5 times, P(no heads) = (1/2)^5 = 1/32, so

P(at least one head) = 1 โˆ’ 1/32 = 31/32.

Python At least one: use the complement

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Mutually exclusive events

Two events are mutually exclusive (or disjoint) if they cannot both happen at the same time. On one die roll, "an even number" and "a 5" are mutually exclusive: no roll is both. "An even number" and "a number greater than 3" are not: a 4 or a 6 is both.

For mutually exclusive events, the addition rule (the "or" rule) is:

P(A or B) = P(A) + P(B)

Example: a bag has 5 red, 3 blue and 2 green counters. P(red or blue) = 5/10 + 3/10 = 8/10 = 4/5.

The rule extends to any number of exclusive events. If a set of mutually exclusive events covers all possibilities, their probabilities add to 1.

When events overlap

If events can both happen, adding double-counts the overlap. The general addition rule is

P(A or B) = P(A) + P(B) โˆ’ P(A and B)

Example: draw one card from a standard 52-card deck. Let A = "a heart" (13 cards) and B = "a king" (4 cards). The king of hearts is in both, so

P(heart or king) = 13/52 + 4/52 โˆ’ 1/52 = 16/52 = 4/13.

flowchart LR
  A["Hearts only<br/>12 cards"] --- B["King of hearts<br/>1 card (both)"] --- C["Kings only<br/>3 cards"]

Overlap of "heart" and "king": 12 + 1 + 3 = 16 cards are hearts or kings.

Python Addition rule on a deck of cards

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Always ask first: "Can both events happen together?" If yes, subtract the overlap. If you add two probabilities and get a total over 1, you have probably forgotten the overlap.

Check by simulation

A simulation can test your answer. Roll two dice many times and check the relative frequency of "at least one six". The complement says 1 โˆ’ (5/6)ยฒ = 11/36 โ‰ˆ 0.306.

Python At least one six with two dice

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The multiplication of (5/6) ร— (5/6) for "no six on either die" anticipates the multiplication rule for independent events, which is the start of the next chapter.

Strategy summary

Situation Tool
"Not A" 1 โˆ’ P(A)
"At least one" 1 โˆ’ P(none)
"A or B", cannot both happen P(A) + P(B)
"A or B", can both happen P(A) + P(B) โˆ’ P(A and B)

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. P(win) = 0.4 for a team that can only win, draw or lose, and P(draw) = 0.25. What is P(lose)?

    The three probabilities add to 1, so P(lose) = 1 โˆ’ 0.4 โˆ’ 0.25 = 0.35.
  2. 2. A fair die is rolled. A = 'even', B = 'greater than 3'. What is P(A or B)?

    A = {2, 4, 6} and B = {4, 5, 6}, so A or B = {2, 4, 5, 6}. That is 4 outcomes out of 6, so 4/6 = 2/3.
  3. 3. Which pair of events is mutually exclusive when one card is drawn from a deck?

    No card is both a heart and a spade. The other pairs can overlap (queen of hearts, red kings).
  4. 4. What is the probability of at least one tail in 3 fair coin tosses?

    P(no tails) = 1/8, so P(at least one tail) = 1 โˆ’ 1/8 = 7/8.

Summary

  • Complement rule: P(not A) = 1 โˆ’ P(A); "at least one" is 1 โˆ’ P(none).
  • Mutually exclusive events cannot both happen; then P(A or B) = P(A) + P(B).
  • For overlapping events, P(A or B) = P(A) + P(B) โˆ’ P(A and B).
  • Always check whether events overlap before adding probabilities.

Next: back to the track overview for the chapters on compound events, distributions, regression and inference.