Business Mathematics and Basic Statistics · Ch 9 — Sets — Operations and Functions
The Inclusion-Exclusion Principle — Three Sets
The Inclusion-Exclusion Principle — Three Sets
The same idea extends to three overlapping sets , , , 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.
Inclusion-Exclusion — Three Sets
To see why the final term is needed: an element belonging to all three sets is counted once in each of , , (three times total), then subtracted once in each of the three pairwise-overlap terms (three times total) — leaving it counted times, when it should be counted exactly once. Adding back in restores that missing count. …
$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 …