Set theory and inclusion-exclusion
5 min read
Short answer
For two sets, : adding the sizes counts the overlap twice, so subtract it once. For three sets add the pair overlaps back as and then .
Set vocabulary
is everything in or ; is what they share; is everything outside ; is without . De Morgan: .
Why the formula works
Every element of the overlap is counted once in and once in . Subtracting once leaves it counted exactly once, as it should be.
Worked example
Of students, take math, take physics and take both. How many take at least one, and how many take neither?
take at least one. Neither: . Check by parts: . ✓
Try it yourself
In a group of , play chess and play go, and play both. How many play neither?
Show the answer
At least one: . Neither: .
Keep going with practice
Vidi's probability lessons apply exactly this formula as the addition rule for events.