Skip to content

Business Mathematics and Statistics · Ch 3 — Set Theory

Cardinality and the Inclusion-Exclusion Principle

7

Cardinality and the Inclusion-Exclusion Principle

The cardinality of a finite set AA, written n(A)n(A), is simply the count of its distinct elements. n(∅)=0n(\emptyset) = 0; if AA is a singleton, n(A)=1n(A) = 1.

A natural question follows: given n(A)n(A) and n(B)n(B) separately, can we find n(A∪B)n(A \cup B)? Simply adding n(A)+n(B)n(A) + n(B) over-counts every element lying in both sets, since it gets counted once inside n(A)n(A) and again inside n(B)n(B). Correcting for that double count gives the inclusion-exclusion principle for two sets:

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

The same idea extends to three sets, where elements can now be over-counted in more than one way — every pairwise overlap is subtracted once, but the triple overlap, having been subtracted three times over (once within each pairwise term), must be added back exactly once:

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).

Worked illustration. Suppose a market survey of 120 customers of an Odisha handicrafts store finds 70 customers buy textile products (AA), 50 buy pottery products (BB), and 25 buy both. Then

n(A∪B)=70+50−25=95n(A \cup B) = 70 + 50 - 25 = 95

customers buy at least one of the two, and 120−95=25120 - 95 = 25 customers buy neither.

<!-- FIGURE-NEEDED: Venn diagram, rectangle U labelled 120 total, two overlapping circles A (textile, only-region shows 45) and B (pottery, only-region shows 25), overlap region shows 25, and 25 shown outside both circles but inside U, illustrating the worked inclusion-exclusion example --> …
Definition 1Cardinality

The number of distinct elements in a finite set AA, writ …

Definition 2Inclusion-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) — the overlap is subtracted once to correct for …

Definition 3Inclusion-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 …