Inclusion-Exclusion Principle

Context: FIT1058_MOC · the size (or probability) of a union of overlapping sets · alternating signed sum of all intersections · generalises · proved by Mathematical Induction

Quick Revision

  • 🎯 Objective: size of a union of overlapping sets ➔ alternating signed sum of all intersections.
  • 📦 Core Components: add singles ➔ subtract pairs ➔ add triples ➔ sign .
  • ⚡ Key Constraint: terms (exponential); disjoint case collapses to addition.

📝 Core

1. The Correction (Overlap)

  • Problem ➔ adding sizes overcounts shared elements.
  • Two/three sets; add back for three.
  • Sign-fold intersection carries (+ odd, − even).

2. General Theorem

  • Formula.
  • Each element once ➔ signs make every element counted exactly once.

3. Probability Version

⚖️ Core Decision Matrix

SignTerm
1single-set sizes
2pairwise intersections
3triple intersections
all disjointcollapses to (Addition Principle)

When It Flips: the disjoint case (all intersections empty) is the Addition Principle. A dual form expresses via union sizes (De Morgan). counts the -fold terms at each level.

📊 Exam Execution Trace

Manual Execution Trace

Divisible by 2, 3, or 5 among 100:

Step / StateSignSum of sizesContribution
0 (Init)
11
22
33

⚠️ Common Mistakes

  • 💡 terms ➔ one per non-empty subset (Power Set count) — exact but exponential; practical only for small or when most intersections vanish.

🧠 Active Recall