Venn diagrams and sets
A Venn diagram sorts things into overlapping circles inside a rectangle. The rectangle is the universal set ξ. The diagram makes it easy to count the items in one group, in both, in either or in neither. It also helps you find probabilities.
Key facts
- A ∩ B (intersection): in both A and B. This is the overlap.
- A ∪ B (union): in A or B or both.
- A′ (complement): not in A.
- Fill in a Venn diagram from the middle (the overlap) outwards.
- n(A ∪ B) = n(A) + n(B) − n(A ∩ B).
- P(A ∪ B) = P(A) + P(B) − P(A ∩ B).
- P(A | B) = n(A ∩ B) ÷ n(B). Only look inside circle B.
Worked examples
Example 1
In a class of 30, 18 play football (F), 12 play tennis (T) and 5 play both. How many play neither?
- Start in the middle: 5 play both.
- Football only: 18 − 5 = 13
- Tennis only: 12 − 5 = 7
- Neither: 30 − 13 − 5 − 7 = 5
Answer: 5
Example 2
Using the same class, find P(F′ ∩ T) and P(F ∪ T).
- F′ ∩ T is tennis but not football. 7/30
- F ∪ T is everything inside the circles. (13 + 5 + 7)/30 = 25/30 = 5/6
Answer: 7/30 and 5/6
Example 3
The Venn diagram has 50 members. Find x, then P(B | A).
- All the regions add up to 50. 2x + x + (x + 4) + 6 = 50
- Solve. 4x + 10 = 50, 4x = 40, x = 10
- Only look inside A. It holds 3x = 30, and 10 of them are also in B. P(B | A) = 10/30 = 1/3
Answer: x = 10; P(B | A) = 1/3
Example 4
In a group of 20 people, 12 like tea, 9 like coffee and 5 like both. How many like neither?
- Put 5 in the overlap. 5
- Tea only and coffee only: 12 − 5 = 7, 9 − 5 = 4
- Take the total inside the circles from 20. 20 − (7 + 5 + 4) = 4
Answer: 4
Example 5
The universal set is the whole numbers 1 to 10 and A is the set of even numbers. List the elements of A′.
- A′ is everything in the universal set that is not in A.
- Remove the even numbers. A′ = {1, 3, 5, 7, 9}
Answer: 1, 3, 5, 7, 9
Example 6
P(A) = 0.5, P(B) = 0.4 and P(A ∩ B) = 0.2. Find P(A ∪ B).
- Add the two probabilities and take off the overlap once. P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
- Substitute. 0.5 + 0.4 − 0.2 = 0.7
Answer: 0.7
Example 7
A Venn diagram has 6 in A only, 4 in both, 7 in B only and 3 outside the circles. Find P(A).
- A holds A only and the overlap. 6 + 4 = 10
- There are 20 altogether. 6 + 4 + 7 + 3 = 20
- Divide. 10/20 = 1/2
Answer: 1/2
Example 8
P(A) = 0.6, P(B) = 0.5 and P(A ∪ B) = 0.8. Find P(A ∩ B).
- P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
- Substitute and solve. 0.8 = 0.6 + 0.5 − P(A ∩ B), so P(A ∩ B) = 0.3
Answer: 0.3