Inclusion–Exclusion for Three Sets

For three sets, adding sizes and subtracting pair overlaps removes a triple member once too often. Add the triple overlap back.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Track one attendee
  2. Check with measured sizes
  3. Follow one member included three times
  4. Check what each reported overlap measures

Track one attendee

A person in all three groups contributes \(3-3+1=1\). Someone in exactly two contributes \(2-1=1\). Someone in only one contributes one from the start. This extends two-set inclusion–exclusion.

Check with measured sizes

If group sizes are 6, 5, 4, pair overlaps 2, 2, 1, and triple overlap one, the union is 11. Consistent membership counts can also classify each person once from the original observations.[1]

Follow one member included three times

A member present in three sets is counted three times by individual sizes and subtracted three times by pairwise overlaps. Adding the triple intersection restores its intended single contribution. A member present in exactly two ends with \(2-1=1\). See two-set inclusion–exclusion.

Membership count  Individual  Pairs removed  Triple added  Net
1                 1           0              0             1
2                 2           1              0             1
3                 3           3              1             1

Check what each reported overlap measures

A pairwise overlap usually includes members also in the third set. If a source instead reports mutually exclusive pair-only cells, those are already disjoint and can be added directly with the other disjoint cells. Label those quantities explicitly.

References

  1. Eric Lehman, F. Thomson Leighton and Albert R. Meyer, Mathematics for Computer Science ↩