Skip to content

Business Mathematics and Basic Statistics · Ch 9 — Sets — Operations and Functions

The Inclusion-Exclusion Principle — Three Sets

10

The Inclusion-Exclusion Principle — Three Sets

The same idea extends to three overlapping sets AA, BB, CC, though the bookkeeping is a little more involved: simply adding all three individual counts and subtracting all three pairwise overlaps ends up subtracting the "all three at once" region too many times, so it has to be added back in once more.

Note

Inclusion-Exclusion — Three Sets

n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(B∩C)−n(A∩C)+n(A∩B∩C)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)

To see why the final + n(A∩B∩C)+\,n(A\cap B\cap C) term is needed: an element belonging to all three sets is counted once in each of n(A)n(A), n(B)n(B), n(C)n(C) (three times total), then subtracted once in each of the three pairwise-overlap terms (three times total) — leaving it counted 3−3=03 - 3 = 0 times, when it should be counted exactly once. Adding n(A∩B∩C)n(A\cap B\cap C) back in restores that missing count. …

Definition 1Inclusion-Exclusion Principle (Three Sets)

$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\c …