The size of a union: add, then subtract the overlap
Compute the size of a union from the two sizes and the overlap. The idea in plain words, a worked example, and a check with the answers shown — part of the free Quantitative Reasoning guides.
For two finite sets,
The subtraction removes the double count. Adding the two sizes counts each shared element once in each set, so the shared elements appear twice and must come out once — subtract them.
Example:,. Then,, and so the overlap is 3. The union is, which has 4 members, and indeed.
The formula also constrains answers before you compute anything: the union is at least as large as either set, and no larger than the sum. An answer outside those bounds is wrong.
Rearranged, it answers the other two questions: the overlap is, and a group size is.
Each element of the union falls into exactly one of three groups: only in, only in, or in both. Adding counts the first group once, the second once, and the third twice.
So, and the union is the same without the extra copy of "both". Subtracting — which is exactly "both" — fixes it.
That is a proof, not a rule of thumb, and it is why the formula is exact rather than approximate. It also shows why a three-set version needs more terms: with three sets an element can be in one, two or three of them, and the alternating signs of full inclusion-exclusion come from correcting each of those over-counts in turn.
The bounds follow: is at least and at most.
A survey of 200 people finds 120 read fiction, 90 read history, and 150 read at least one of the two. How many read both?
Step one — name the numbers.,,.
Step two — rearrange the formula..
Step three — substitute..
Step four — check consistency. With 60 reading both, the fiction-only group is, and the history-only group is. Total reading at least one:. Agrees.
Step five — check the bounds. 60 is at most, so it is a possible overlap. An overlap larger than the smaller set would have been impossible, and that check alone catches most slips.
- Compute the size of a union from the two sizes and the overlap
- Recover the overlap from the union's size
- Check a union's size against its bounds
- 1.,,. Find.
- 2.,, disjoint. Find the union's size.
- 3. If and, what is the overlap?
Answers
- 1. 10.
- 2. 12 — no overlap to subtract.
- 3..