Skip to content

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

The Inclusion-Exclusion Principle — Two Sets

9

The Inclusion-Exclusion Principle — Two Sets

Section 3 already hinted at a problem: simply adding n(A)+n(B)n(A) + n(B) over-counts any elements shared between AA and BB, because those elements get counted once inside n(A)n(A) and again inside n(B)n(B). The inclusion-exclusion principle for two sets fixes this by subtracting the overlap back out exactly once:

Note

Inclusion-Exclusion — Two Sets

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

If AA and BB happen to be disjoint (Section 5), n(A∩B)=0n(A \cap B) = 0 and the formula collapses to the simple n(A∪B)=n(A)+n(B)n(A \cup B) = n(A) + n(B) from before — disjoint sets are exactly the special case where nothing needs subtracting. …

Definition 1Inclusion-Exclusion Principle (Two Sets)

n(A∪B)=n(A)+n(B)−n(A∩B)n(A\cup B) = n(A)+n(B)-n(A\cap B) — adds the two set sizes, then subtracts the overlap once to avoi …