Counting Disjoint Cases
Add the numbers of outcomes in cases that cover the goal without overlap. Identify double counting before applying the rule.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Count by size
From three distinct labels, subsets of size zero number one, size one number three, and size two number three. There are seven subsets of size at most two. Those subset choices each belong to one size case.
Check coverage and overlap
Counting people with a red ticket and people with a blue ticket by addition counts holders of both twice. For cases defined by two binary properties, use inclusion–exclusion or divide people into mutually exclusive cases first.[1]
Turn an overlapping classification into exclusive cases
A course offers work in Python and SQL. A student can use both, so adding counts of the two languages double-counts such students. Divide the union into Python only, SQL only and both. These categories are disjoint by construction and cover everyone using either language. See inclusion–exclusion for two sets.
Python users 14, SQL users 9, both 4
Python only: 10
SQL only: 5
Both: 4
Total with at least one: 19
Test coverage separately from absence of overlap
A classification with just two “only” cases has no overlap but misses dual-language users. If counting everyone, add a neither case. Draw one witness for every region the task allows.