Inclusion-Exclusion Principle
Updated 2026-07-30
Summary
The inclusion-exclusion principle, also known as the principle of inclusion and exclusion or the sieve principle, in combinatorics states that if A1, ..., An are finite sets, then ...
Definition
When calculating the union of multiple sets: first add the sizes of each set, then subtract the sizes of pairwise intersections, then add the sizes of triple intersections... alternately adding and subtracting to avoid double counting. Scaffold role: count without duplication or omission. Systematically handle overlapping parts in categorical counting to avoid overcounting or undercounting.
Introduction
How to use
Count without duplication or omission. Systematically handle overlapping parts in categorical counting to avoid overcounting or undercounting.
Mechanism
The size of the union of multiple sets requires alternately adding and subtracting intersections to correct for double counting: |A∪B| = |A| + |B| - |A∩B|, and for three sets add back the triple intersection. The essence is to systematically handle overlapping parts to achieve counting without duplication or omission.
Practice
In progress 0/5Practice this model in one real situation:
Cases
- Counting the number of people who speak English or French to avoid double counting; finding the probability of satisfying at least one condition in probability; using inclusion-exclusion to solve 'at least' type counting problems.
Common pitfalls
- Omitting intersections leads to overcounting; errors in alternating signs; directly adding sets that are not mutually exclusive. Another pitfall is ignoring higher-order intersections.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E6%8E%92%E5%AE%B9%E5%8E%9F%E7%90%86verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS