What the diagram shows
A Venn diagram draws sets as regions. The rectangle is the universal set, everything that is counted, and each set is a circle inside it. Where two circles overlap lies the intersection, the elements that belong to both. With two sets the rectangle is divided into four regions: only the first, only the second, both, and neither. With three sets there are eight.
What sets the Venn diagram apart from older diagrams of sets is that every region is drawn, including the empty ones. The Stanford Encyclopedia of Philosophy describes how Leonhard Euler in 1768 drew the relations between sets by placing circles inside one another or apart, according to how the sets actually stood, whereas John Venn’s diagrams show all possible relations between the sets and mark an empty region by shading it.
How to read it
In the diagram above 18 pupils play football and 12 swim, and 7 do both. Each region gets its count:
- Football only: 18 − 7 = 11.
- Swimming only: 12 − 7 = 5.
- Both, the intersection A ∩ B: 7.
- Neither, outside the circles: 30 − 11 − 5 − 7 = 7.
The rest is read from the regions:
- The union A ∪ B, at least one of the two: 11 + 5 + 7 = 23 pupils.
- The complement of A, those who do not play football: 30 − 18 = 12, the same as 5 + 7.
- A probability. If a pupil is picked at random, the probability that the pupil does at least one of the two is 23/30.
The intersection is counted once
Adding 18 and 12 gives 30, as if every pupil did at least one of the two. But the 7 in the intersection are in both numbers and have been counted twice. They are subtracted once:
the number in A ∪ B = the number in A + the number in B − the number in A ∩ B = 18 + 12 − 7 = 23.
The same holds for probabilities, in the addition rule: P(A ∪ B) = P(A) + P(B) − P(A ∩ B). When the sets have no elements in common the intersection is empty, and the union is just the sum.
When it fits and when it does not
A Venn diagram fits two or three sets that can overlap, and for seeing which combinations occur. With four sets there are 16 combinations, but four circles can divide the plane into at most 14 regions, so a diagram of four sets needs shapes other than circles and becomes hard to read.
When the question is about counts or probabilities for two properties, and above all about conditional probabilities, a two-way table is often clearer. The same 30 pupils:
| Swim | Do not swim | Total | |
|---|---|---|---|
| Play football | 7 | 11 | 18 |
| Do not play football | 5 | 7 | 12 |
| Total | 12 | 18 | 30 |
The row for the footballers shows at once that 7 of the 18 also swim, the conditional probability 7/18. The diagram holds the same numbers, but the reader has to see for themselves that 18 is the whole circle A.
Common mistakes
- The whole set’s count in one region. The number 18 belongs to the whole circle A, not to the region A only, which holds 11.
- Forgetting the region outside the circles. The 7 who neither play football nor swim are in the rectangle, and without them the total of 30 does not add up.
- Counting the intersection twice, as when 18 and 12 are added to 30.
- Disjoint sets taken for independent events. Two events with no outcomes in common, both of which can happen, are dependent: if one happens, the other cannot. Independence is something else; see the multiplication rule.
Going deeper: three sets
With three sets A, B and C the diagram has eight regions, and the union is counted by the same idea in more steps:
the number in A ∪ B ∪ C = A + B + C − (A ∩ B) − (A ∩ C) − (B ∩ C) + (A ∩ B ∩ C),
where each term is the number of elements in that set. An element that belongs to all three is counted three times in the first terms, subtracted three times in the intersections of two, and added once in the last: once in all. An element that belongs to exactly two is counted twice and subtracted once. The rule is called the principle of inclusion and exclusion, and with alternating signs it holds for any finite number of finite sets.
The rectangle is part of the diagram, not a frame: it states what is counted. If the universal set changes, say from the 30 pupils in a class to every pupil in the school, the complements and the region outside the circles change, but the intersection does not.