Sub topic 9
Three-Set Venn Diagrams and Inclusion-Exclusion
Prerequisites and the central problem
Assume you can read two-set Venn diagrams, work with basic set notation, and distinguish “and” from “or.” A set is a collection of objects. The union of sets means everything in at least one set. The intersection means the objects shared by sets.
With three sets, overlaps can be counted more than once. The inclusion-exclusion principle corrects this overcounting.
Let the sets be \(A\), \(B\), and \(C\). Then:
|A \cup B \cup C|
= |A|+|B|+|C|
-|A\cap B|-|A\cap C|-|B\cap C|
+|A\cap B\cap C|The symbol \(|A|\) means the number of objects in set \(A\).
Why the formula works
Start by adding \(|A|+|B|+|C|\). Any object in two sets is counted twice, so subtract each pairwise overlap. However, an object in all three sets was counted three times at first and subtracted three times afterward. That leaves zero copies, but it should count once. Add the triple overlap back.
A useful way to remember the signs is:
- Add the three single-set counts.
- Subtract the three pairwise overlaps.
- Add the one triple overlap.
Worked example
Suppose, among 100 students:
- 30 study algebra, so \(|A|=30\).
- 25 study geometry, so \(|B|=25\).
- 20 study statistics, so \(|C|=20\).
- 10 study both algebra and geometry.
- 8 study both algebra and statistics.
- 6 study both geometry and statistics.
- 4 study all three.
The pairwise overlap counts include the students in all three sets. Therefore:
\begin{aligned}
|A\cup B\cup C|
&=30+25+20-10-8-6+4\\
&=55
\end{aligned}Thus, 55 students study at least one of the three subjects.
To find how many study none of them, subtract the union from the total:
100-55=45# Three-set inclusion-exclusion
a, b, c = 30, 25, 20
ab, ac, bc = 10, 8, 6 # Each pair count includes the triple overlap
abc = 4
union = a + b + c - ab - ac - bc + abc
neither = 100 - union
print(union) # 55
print(neither) # 45Common errors
Subtracting the triple overlap only once
If the problem gives pairwise overlaps that include the triple overlap, use the standard formula and add the triple overlap at the end. Do not subtract the triple overlap separately from each pairwise count unless you first convert the pairwise counts into regions containing exactly two sets.
Confusing “at least one” with “exactly one”
The union \(A\cup B\cup C\) means at least one set. It includes people in two sets and people in all three sets. “Exactly one” requires separate region calculations.
Forgetting the total population
After finding the union, “none” is:
\text{total}-|A\cup B\cup C|The total must include every object under consideration, whether or not it belongs to one of the sets.
GRE strategy
Write the formula before substituting numbers. Label each quantity carefully. Then check that the union is not larger than the total population and is at least as large as each individual set.
Exercise
In a group of 80 students, 35 take biology, 30 take chemistry, and 25 take physics. The pairwise overlaps are 12, 10, and 9, and 5 students take all three. How many students take none of the subjects?
Show answer
The union is 35 + 30 + 25 - 12 - 10 - 9 + 5 = 64. Therefore, 80 - 64 = 16 students take none.