Sub topic 8
Three-Set Venn Diagrams and the Eight Regions
This chapter assumes you can read a two-set Venn diagram, use the two-set formula n(A∪B) = n(A) + n(B) − n(A∩B), and solve simple linear equations. The three-set inclusion-exclusion formula comes in the next chapter. Here you learn to build the diagram and fill every region without it.
Why three circles give eight regions
Each element in the universal set either belongs to a given set or does not. With three sets A, B and C, that is two choices three times, so 2 × 2 × 2 = 8 possible membership patterns. Each pattern is one region of the diagram. Seven regions lie inside the circles. The eighth is the area outside all three circles, inside the bounding rectangle.
| Region | Membership | Common name |
|---|---|---|
| 1 | A only | Exactly A |
| 2 | B only | Exactly B |
| 3 | C only | Exactly C |
| 4 | A and B, not C | Exactly A and B |
| 5 | B and C, not A | Exactly B and C |
| 6 | A and C, not B | Exactly A and C |
| 7 | A and B and C | The centre |
| 8 | None of A, B, C | Outside the circles |
The regions do not overlap, and together they cover the whole universal set. So the eight region counts always add up to the total. This single fact drives most of the solving and checking below.
Drawing the diagram correctly
Draw the three circles so that every pair overlaps and all three overlap in the middle. Then draw a rectangle around them for the universal set. A common mistake is to draw three circles that only touch in a chain, which leaves out the A∩C-only region.
Label the regions with variables or numbers. A consistent layout helps:
- Centre: A∩B∩C.
- Three lens-shaped regions around the centre: the pairwise-only regions.
- Three outer crescents: the single-only regions.
- The rectangle outside the circles: none.
The key distinction: "A∩B" is not "A and B only"
The most frequent error with three sets is confusing the intersection of two sets with its "only" region.
n(A∩B) counts everyone in both A and B, so it includes the centre. It is the sum of two regions: "A and B only" and "A, B and C".
n(A∩B) = (A and B only) + n(A∩B∩C)
So to get a pairwise-only region, subtract the centre from the pairwise intersection. Likewise, n(A) is the sum of four regions: A only, the two pairwise-only regions that involve A, and the centre.
Read each phrase in a problem carefully:
| Phrase | What it gives you |
|---|---|
| "40 play A" | n(A), all four regions inside circle A |
| "15 play both A and B" | Usually n(A∩B), including those who also play C |
| "15 play only A and B" | The A-and-B-only region, excluding the centre |
| "15 play exactly two games" | The sum of the three pairwise-only regions |
| "6 play all three" | The centre |
If the wording is ambiguous, "both A and B" normally means at least those two, so it includes the centre. Treat "only" and "exactly" as excluding everything else.
Filling the regions: work from the inside out
Always fill the diagram in this order:
- The centre, n(A∩B∩C).
- The pairwise-only regions, each as the pairwise intersection minus the centre.
- The single-only regions, each as the set total minus the three regions already filled in that circle.
- The outside region, as the universal total minus the sum of the seven inside regions.
Each step uses only numbers that the earlier steps have already produced. That is why this order works: you never need to solve a system of equations when the data is complete.
Worked example
In a group of 100 students, 40 take A, 35 take B and 30 take C. Of these, 15 take both A and B, 12 take both B and C, and 10 take both A and C. Six students take all three. How many take none of the three, and how many take only B?
Step 1: centre. A∩B∩C = 6.
Step 2: pairwise-only.
- A and B only: 15 − 6 = 9.
- B and C only: 12 − 6 = 6.
- A and C only: 10 − 6 = 4.
Step 3: single-only.
- A only: 40 − (9 + 4 + 6) = 21.
- B only: 35 − (9 + 6 + 6) = 14.
- C only: 30 − (4 + 6 + 6) = 14.
Step 4: outside. The inside regions sum to 21 + 14 + 14 + 9 + 6 + 4 + 6 = 74. So none = 100 − 74 = 26.
Answer: 26 take none, and 14 take only B.
The same procedure in code makes the order explicit. This function also checks that every region is non-negative, which catches inconsistent data.
def fill_regions(total, n_a, n_b, n_c, n_ab, n_bc, n_ac, n_abc):
ab_only = n_ab - n_abc
bc_only = n_bc - n_abc
ac_only = n_ac - n_abc
a_only = n_a - ab_only - ac_only - n_abc
b_only = n_b - ab_only - bc_only - n_abc
c_only = n_c - ac_only - bc_only - n_abc
inside = (a_only + b_only + c_only
+ ab_only + bc_only + ac_only + n_abc)
regions = {
"A only": a_only, "B only": b_only, "C only": c_only,
"AB only": ab_only, "BC only": bc_only, "AC only": ac_only,
"ABC": n_abc, "none": total - inside,
}
bad = {k: v for k, v in regions.items() if v < 0}
if bad:
raise ValueError(f"Inconsistent data, negative regions: {bad}")
return regions
print(fill_regions(100, 40, 35, 30, 15, 12, 10, 6))Running it prints {'A only': 21, 'B only': 14, 'C only': 14, 'AB only': 9, 'BC only': 6, 'AC only': 4, 'ABC': 6, 'none': 26}.
Reading the regions from actual elements
When the sets are listed explicitly, you can classify each element by its membership pattern. This is a useful way to see that the regions partition the universe.
A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7}
C = {5, 7, 8, 9}
U = set(range(1, 11))
regions = {}
for x in sorted(U):
key = (x in A, x in B, x in C)
regions.setdefault(key, []).append(x)
for key, members in regions.items():
print(key, members)Each key is a triple of True/False values, one per set. The output shows seven of the eight patterns. The pattern (True, False, True), meaning A and C only, never appears here because no element is in A and C without also being in B. A region can be legitimately empty.
Edge cases
Empty regions. A region can be zero without anything being wrong. If no one belongs to all three sets, the centre is 0, and the pairwise-only regions equal the pairwise intersections.
Nested sets. If A is a subset of B, then A only and "A and C, not B" are both 0, because every element of A is already in B. Check for subset wording such as "all those who take A also take B".
Negative regions. If any region comes out negative, the data is impossible. For example, if n(A∩B) = 5 but n(A∩B∩C) = 8, then "A and B only" is −3. In an exam, a negative region usually signals that you misread "both" as "only" or the reverse.
Missing data. Sometimes a problem omits one number and gives a total instead. Assign a variable to the unknown region, express every other region in terms of it, and use "the eight regions sum to the total" to form one equation.
Percentages. Treat the total as 100 and each percentage as a count. The regions then sum to 100.
Quick consistency checks
Run these before you commit to an answer:
- Every region is zero or positive.
- The eight regions sum to the universal total.
- Adding the four regions inside each circle gives back that set's given total.
- Adding the centre and the three pairwise-only regions gives the number of people in at least two sets.
Common mistakes
- Treating "both" as "only both" and so forgetting the centre.
- Drawing the circles without a bounding rectangle, so there is no place for "none".
- Subtracting each pairwise intersection from the single set directly, which removes the centre too many times.
- Adding n(A), n(B) and n(C) to get the number of people in at least one set. This counts everyone in the overlaps more than once.
- Forgetting that the outside region is the only one not inside any circle.
Exercise
In a class of 80, 45 like tea, 40 like coffee and 30 like juice. Twenty like tea and coffee, 15 like coffee and juice, and 12 like tea and juice. Eight like all three drinks. Find (a) how many like only tea, (b) how many like exactly two drinks, and (c) how many like none.
Show answer
Centre = 8. Pairwise-only: tea and coffee = 20 − 8 = 12, coffee and juice = 15 − 8 = 7, tea and juice = 12 − 8 = 4. Only tea = 45 − (12 + 4 + 8) = 21. Only coffee = 40 − (12 + 7 + 8) = 13. Only juice = 30 − (7 + 4 + 8) = 11. (a) 21. (b) 12 + 7 + 4 = 23. Inside regions total 21 + 13 + 11 + 12 + 7 + 4 + 8 = 76, so (c) none = 80 − 76 = 4.
Exercise
A survey of 60 people reports that 25 read A only, 10 read B only and 5 read C only. Four read A and B only, 3 read B and C only and 2 read A and C only. Six read all three. How many read none? How many read B in total?
Show answer
The inside regions sum to 25 + 10 + 5 + 4 + 3 + 2 + 6 = 55, so none = 60 − 55 = 5. Total readers of B = B only + AB only + BC only + centre = 10 + 4 + 3 + 6 = 23.
Exercise
A problem states n(A) = 20, n(A∩B) = 14, n(A∩C) = 9 and n(A∩B∩C) = 3, and that 10 elements are in A and B only. Is the data consistent?
Show answer
The A-and-B-only region should be n(A∩B) − n(A∩B∩C) = 14 − 3 = 11, not 10. Also A-and-C-only = 9 − 3 = 6, and A only = 20 − (11 + 6 + 3) = 0. Because the stated 10 conflicts with the computed 11, the data is inconsistent. If "10 in A and B only" were instead read as n(A∩B) = 10 − the other value would conflict with 14 anyway, so the statements cannot all be true.