Sub topic 8
Three-Set Venn Diagrams and the Eight Regions
Prerequisites
Assume that you know basic arithmetic, simple algebra, and how to read a two-set Venn diagram. A set is a collection of objects. We write \(n(A)\) for the number of elements in set \(A\).
With three sets \(A\), \(B\), and \(C\), a Venn diagram has eight regions:
- Only \(A\)
- Only \(B\)
- Only \(C\)
- \(A\) and \(B\), but not \(C\)
- \(B\) and \(C\), but not \(A\)
- \(A\) and \(C\), but not \(B\)
- \(A\), \(B\), and \(C\)
- None of the three sets
The central region represents \(A \cap B \cap C\), where all three conditions are true.
Fill the diagram from the center outward
If the number in all three sets is known, place it in the center first. Then calculate each pair-only region.
Suppose:
- \(n(A \cap B \cap C)=4\)
- \(n(A \cap B)=10\)
- \(n(B \cap C)=8\)
- \(n(A \cap C)=6\)
The pairwise intersection counts include the central region. Therefore:
- \(A\) and \(B\) only: \(10-4=6\)
- \(B\) and \(C\) only: \(8-4=4\)
- \(A\) and \(C\) only: \(6-4=2\)
Now use the total for each set. If \(n(A)=30\), then:
\[ A\text{ only}=30-(6+2+4)=18 \]
The same method gives the other single-set regions.
| Region | Calculation | Count |
|---|---|---|
| All three | Given | 4 |
| \(A\) and \(B\) only | \(10-4\) | 6 |
| \(B\) and \(C\) only | \(8-4\) | 4 |
| \(A\) and \(C\) only | \(6-4\) | 2 |
| \(A\) only | \(30-6-2-4\) | 18 |
The three-set inclusion-exclusion formula
The union \(A \cup B \cup C\) contains every element in at least one set:
\[ n(A\cup B\cup C) = n(A)+n(B)+n(C) -n(A\cap B)-n(B\cap C)-n(A\cap C) +n(A\cap B\cap C) \]
The pairwise intersections are subtracted because elements in overlaps were counted twice. The central region was then subtracted three times, so it must be added once.
Using \(n(A)=30\), \(n(B)=25\), \(n(C)=20\), pairwise intersections \(10,8,6\), and central count \(4\):
\[ n(A\cup B\cup C)=30+25+20-10-8-6+4=55 \]
n_a, n_b, n_c = 30, 25, 20
n_ab, n_bc, n_ac = 10, 8, 6
n_abc = 4
union = n_a + n_b + n_c - n_ab - n_bc - n_ac + n_abc
print(union) # 55Exactly one, exactly two, and none
In this example:
- Exactly three: \(4\)
- Exactly two: \(6+4+2=12\)
- Exactly one: \(18+11+10=39\)
- At least one: \(55\)
If the universal set contains 70 elements, then the number in none of the sets is:
\[ 70-55=15 \]
Always check that all eight regions are non-negative and that their sum equals the universal total.
Exercise
In a group of 80 students, n(A)=40, n(B)=35, n(C)=30, n(A ∩ B)=12, n(B ∩ C)=10, n(A ∩ C)=8, and n(A ∩ B ∩ C)=5. How many students belong to none of the sets?
Show answer
The union is 40+35+30−12−10−8+5=80. Therefore, none belong to the sets: 80−80=0.