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
- Same identity ➔ for probabilities of events.
- Counting = uniform case ➔ divide sizes by (Equally Likely Outcomes).
⚖️ Core Decision Matrix
| Sign | Term | |
|---|---|---|
| 1 | single-set sizes | |
| 2 | pairwise intersections | |
| 3 | triple intersections | |
| all disjoint | — | collapses 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 / State | Sign | Sum of sizes | Contribution | |
|---|---|---|---|---|
| 0 (Init) | — | — | — | — |
| 1 | 1 | |||
| 2 | 2 | |||
| 3 | 3 |
⚠️ 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
State inclusion–exclusion for three sets and why each sign is needed.
- Hint: Count each element once.
Answer
- Short answer: .
- Why: Overcount fix ➔ triples counted 3×, dropped to 0 by pairwise subtraction, restored to 1 by the triple term.
Outline the inductive step of the general theorem.
- Hint: Two-set rule + distributive law.
Answer
- Short answer: Split off , apply two-set rule, distribute the intersection, apply the hypothesis to both -fold unions.
- Why: Reindex ➔ terms excluding and including combine into the full signed sum over sets.