Complements, exclusive events and the addition rule ·… | StemPy Lab
Course 3.1·Lesson 3 of 3
Complements, exclusive events and the addition rule
Some chances are easier to find from what does not happen: P(not A)=1−P(A)
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
use the complement rule P(not A)=1−P(A);
tell when two events are mutually exclusive, and add their probabilities;
use the addition rule P(A∪B)=P(A)+P(B)−P(A∩B) with a Venn diagram or a count.
A club survey
A made-up survey asks 120 students two questions. Do you play a sport? Do you play an instrument? 54 play a sport, 40 play an instrument and 18 do both. Pick one student at random. What is the chance that the student plays a sport or an instrument?
A quick answer adds the two groups: 54+40=94. But the 18 students who do both are in each group, so they were counted twice. The right count is 94−18=76. So
P(sport or instrument)=12076≈0.633
A Venn diagram inside a rectangle that stands for 120 students. The left circle is sport and the right circle is instrument, and they overlap. The part of the sport circle outside the overlap holds 36, the overlap holds 18, the part of the instrument circle outside the overlap holds 22, and the region outside both circles holds 44.
The words we need
The complement of an event A is "not A": every outcome that is not in A. Books write it A′, Aˉ or Ac.
A∪B is "A or B or both". It is the union.
A∩B is "A and B". It is the intersection, the overlap.
Two events are mutually exclusive when they cannot happen together, so A∩B is empty.
The complement rule
An event either happens or it does not. So
P(not A)=1−P(A)
In the survey, 120−76=44 students play neither, so P(neither)=12044≈0.367. Check: 1−0.633=0.367. The complement is useful when "not A" is easier to count than A.
Two kinds of "or"
When A and B are mutually exclusive, nothing is counted twice, and
P(A∪B)=P(A)+P(B)
A fair die cannot show a 1 and an even number at once. So P(1 or even)=61+63=32.
When the events can overlap, take the overlap away once. This is the addition rule:
P(A∪B)=P(A)+P(B)−P(A∩B)
For the survey: 12054+12040−12018=12076. The first rule is the second rule with P(A∩B)=0.
Try it in Python
Python has sets: collections of names in which each name appears once. The sign | joins two sets, and & keeps only what is in both. The program builds a small made-up club and checks the addition rule by counting.
Your turn
The usual mistakes
Counting the overlap twice. Add the two events, then subtract the overlap once.
Subtracting the overlap for exclusive events. If A and B cannot happen together, the overlap is 0 already.
Mixing up "or" and "and". "Or" is the union, and it is at least as big as each event. "And" is the overlap, and it is at most as big as each event.
Forgetting the outside. In a Venn diagram, some people are in neither circle. They count in the total.
Remember these
P(not A)=1−P(A).
Mutually exclusive events: P(A∪B)=P(A)+P(B).
Any two events: P(A∪B)=P(A)+P(B)−P(A∩B).
You meet the exam form of these rules, with cards, dice and committees, in the Maths course on probability by counting.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
The probability that a made-up train is full is 0.36. What is the probability that it is not full?
A fair die is rolled. Are the events "a 2" and "an odd number" mutually exclusive? Find the probability of "a 2 or an odd number".
For two events, P(A)=0.5, P(B)=0.4 and P(A∩B)=0.2. Find P(A∪B) and the probability of neither.
In a made-up group of 40 people, 25 drink tea, 18 drink coffee and 7 drink neither. How many drink both?
Why can P(A)+P(B) be more than 1, while P(A∪B) never is?
References
OpenStax, Introductory Statistics, Chapter 3, the sections on the two basic rules of probability and on Venn diagrams.
Enroll free in Long-Run Chance and the Addition Rule
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.