Sub topic 15
Inclusion-Exclusion for Overlapping Conditions
Assumed prerequisites: you know basic set notation, combinations, and how to translate a word problem into conditions. You should also be comfortable counting a total group and the overlap between two groups.
Why Direct Addition Can Overcount
The inclusion-exclusion principle corrects the overcount that occurs when categories overlap.
Suppose a class has students who study Mathematics or Economics. If you add the number studying each subject, students studying both subjects are counted twice. Subtracting the overlap once gives the correct count.
For two sets \(A\) and \(B\):
\[ n(A \cup B) = n(A) + n(B) - n(A \cap B) \]
Here:
- \(A \cup B\) means the students in \(A\) or \(B\), including both.
- \(A \cap B\) means the students in both \(A\) and \(B\).
| Quantity | Meaning |
|---|---|
| \(n(A)\) | Number in category A |
| \(n(B)\) | Number in category B |
| \(n(A \cap B)\) | Number in both categories |
| \(n(A \cup B)\) | Number in at least one category |
Worked Example
In a group of 40 students, 22 study Mathematics, 18 study Economics, and 7 study both.
\[ n(M \cup E)=22+18-7=33 \]
Therefore, 33 students study at least one of the two subjects.
The number studying neither subject is:
\[ 40-33=7 \]
Three Overlapping Conditions
For three sets \(A\), \(B\), and \(C\):
\[ n(A \cup B \cup C) = n(A)+n(B)+n(C) -n(A\cap B)-n(B\cap C)-n(C\cap A) +n(A\cap B\cap C) \]
The pairwise overlaps are subtracted because they were counted twice. The triple overlap is then added because it was subtracted too many times.
Worked Example
Among 100 applicants:
- 55 know Excel.
- 45 know SQL.
- 30 know Python.
- 20 know Excel and SQL.
- 12 know SQL and Python.
- 10 know Python and Excel.
- 5 know all three.
Then:
\[ n(E\cup S\cup P) =55+45+30-20-12-10+5 =93 \]
So, 93 applicants know at least one of the three tools. The remaining 7 know none.
Common Errors
- Adding category counts without subtracting overlaps.
- Subtracting the triple overlap but forgetting to add it back.
- Treating “or” as exclusive. In counting questions, “A or B” usually includes students in both unless the question says “but not both.”
- Confusing “at least one” with “exactly one.” Inclusion-exclusion directly gives at least one. For exactly one, additional subtraction is needed.
Exam Strategy
Use inclusion-exclusion when categories overlap and the question asks for the number in at least one category. For two categories, remember “add, then subtract the overlap.” For three categories, use the alternating signs: add singles, subtract pairs, add the triple.
Exercise
In a survey of 60 students, 35 like cricket, 28 like football, and 12 like both. How many like neither sport?
Show answer
Students liking at least one sport = 35 + 28 - 12 = 51. Therefore, 60 - 51 = 9 students like neither sport.