MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Upper Secondary
MathematicsUpper Secondary

Venn diagrams for probability

U4 — Statistics Advancing › U4.4 — Probability AdvancedLecture 3 of 5~2970 words

Eighteen plus twelve is thirty

A class has 30 students. 18 of them study French, 12 study German, and 7 study both languages. (These numbers are invented.)

Here are three questions. How many students study neither language? How many study French but not German? And the hardest one: a student is chosen at random from the French students. What is the probability that this student also studies German?

Look at the first question. 18 + 12 = 30, and the class has exactly 30 students. So it seems that every student studies a language, and nobody studies neither.

That conclusion is wrong. The 7 students who study both were counted once among the 18 and again among the 12. You met this double counting in the probability rules lecture, where a formula fixed it. This lecture gives a picture in which nobody is counted twice, and from which all three answers can be read: the Venn diagram, used as a method.

Four regions, and only four

A Venn diagram starts with a rectangle. The rectangle holds every possible outcome. In probability, the set of all possible outcomes is called the sample space. So the whole rectangle has probability 1. Exam papers often write a symbol in its corner, usually . Some books write , or instead. They all mean the same thing: everything that can happen.

Inside the rectangle, each event is a circle. Two overlapping circles cut the rectangle into four regions.

ξ A B A only A ∩ B′ both A ∩ B B only A′ ∩ B neither (A ∪ B)′
The four regions of a two-circle Venn diagram. Every outcome lies in exactly one of them. The symbol ξ marks the rectangle as the whole sample space.

Each outcome lands in exactly one region. It is in A or not in A. It is in B or not in B. That gives four combinations, and the diagram has one region for each. No outcome sits in two regions, and none is left out.

This one fact gives the rule that makes the method work. The four regions share out the whole sample space. So if you write counts in the regions, the four counts add up to the total. If you write probabilities, the four probabilities add up to 1.

The notation is the notation from the probability rules lecture. means A or B (at least one). means A and B (both). means not A. So "A only" is : in A, and not in B. And "neither" is : not in "A or B".

Fill from the overlap outwards

Now return to the class. Let F be "studies French" and G be "studies German". The question gives three numbers: 18 in F, 12 in G, and 7 in both. Which one should go into the diagram first?

Start with the overlap. It is the only number that belongs to a single region. The 18 does not belong to one region. It is spread over two regions: French only, and both. The 12 is spread over German only, and both. So the 18 and the 12 cannot be written in until you know how much of each sits in the overlap.

Write 7 in the overlap. Then work outwards.

The three regions inside the circles hold students. The class has 30, so the region outside both circles holds .

All 30 students French (18) German (12) 11 7 5 7 neither
The class, filled in from the overlap outwards. The French circle holds 11 + 7 = 18 and the German circle holds 7 + 5 = 12, as the question says. The four regions hold 11 + 7 + 5 + 7 = 30.

Check it in three ways. The French circle holds ✓. The German circle holds ✓. All four regions hold ✓. A filled diagram that passes all three checks agrees with every number in the question.

So the first two answers are now in the picture. 7 students study neither language. 11 study French but not German.

The working below makes the most common mistake in this topic. Find the line where it goes wrong.

Spot the error — filling in the class

A student fills in the Venn diagram for the class of 30 (18 French, 12 German, 7 both). Tap the first line that is wrong.

A student filled in the diagram like this:

  1. 7 study both, so write 7 in the overlap.
  2. 18 study French, so write 18 in the French circle, outside the overlap.
  3. German only: 12 − 7 = 5.
  4. Inside the circles: 18 + 7 + 5 = 30.
  5. Neither: 30 − 30 = 0, so every student studies a language.

Line 2 is wrong. The 18 French students include the 7 in the overlap, so only 18 − 7 = 11 go outside it. With 11 there, the circles hold 23 students, and 7 study neither.

Every line after the mistake is correct arithmetic, so the wrong answer looks believable. The circle check catches it: the French circle in that working holds students, not 18.

Reading any event from the diagram

Once the diagram is filled, any event is a set of regions. Find its regions, add their counts, and divide by the total. Here are the common ones for the class.

EventSymbolRegionsProbability
French or German11 + 7 + 523/30
Both77/30
French, not German1111/30
Not French5 + 712/30 = 2/5
Exactly one language11 + 516/30 = 8/15
Neither77/30

"Not French" is the German-only region together with the outside region. Students often forget the outside region, because it is not inside any circle. But "not French" means everything outside the French circle, and that includes the students who study neither.

Stop and think

Is "not (French or German)" the same event as "not French or not German"?

Show the answer

No. is the outside region only: 7 students who study neither language. means "not French, or not German, or both of those". It is every region except the overlap: students. In words, it is "not both". The two phrases sound alike, but the diagram shows at once that they cover different regions. When the words are confusing, shade the regions.

Given that: shrink the rectangle

Now the third question. A student is chosen from the French students. What is the probability that this student also studies German?

The words "chosen from the French students" change the sample space. The German-only students and the students who study neither can no longer be chosen. Only the French circle is left: 18 students. Of those 18, the 7 in the overlap study German.

That is it. That is the whole idea. A condition shrinks the rectangle down to one circle. Then you ask what share of that circle is also in the other event. The bar in is read "given", exactly as in the tree diagrams lecture.

The same answer comes from the formula in that lecture. Divide every count by 30:

The 30s cancel, so on a Venn diagram you can divide the counts directly.

Conditional probability on a Venn diagram

Given B, only the B circle is left. is the overlap divided by the whole B circle.

Use the explorer to see this. Choose any event and watch which regions it shades. Then choose a "given" event and watch the rest of the rectangle fade.

Explore — events and conditions on a Venn diagram

The class has 30 students. Set how many study French (F), German (G) and both. The diagram fills itself in. Then choose an event to shade it and see its probability.

French: 18

German: 12

Both: 7

Event:

The figure shows "German, given French" for the class. Only the French circle is left. The table gives other events.

French (18) German 11 7 5 7
Given French: the grey part of the rectangle is out of play. Of the 18 students left, 7 also study German, so P(G | F) = 7/18 ≈ 0.389.
EventRegionsProbability
F or G11 + 7 + 5 of 3023/30 ≈ 0.767
F, not G11 of 3011/30 ≈ 0.367
exactly one11 + 5 of 308/15 ≈ 0.533
G given F7 of 187/18 ≈ 0.389
F given G7 of 127/12 ≈ 0.583

The last two rows have the same top number, 7, but different bottom numbers, because a different circle is left each time.

Compare "G given F" with "F given G". Both have 7 on top, because both ask about the overlap. But "G given F" divides by the French circle, 18. "F given G" divides by the German circle, 12. So , which is quite different from . On a Venn diagram, the reason is visible: the same overlap, shared out of two different circles.

Stop and think

A student says: "P(G | F) is 7 out of 30, because 7 students study both." What has the student forgotten?

Show the answer

The word "given". The answer is : the chance that a student chosen from the whole class studies both. But the question chooses only from the French students. Only 18 students can be chosen, so the bottom number must be 18. A conditional probability always divides by the circle you were given, never by the whole rectangle.

Independent or not? Ask the diagram

In the probability rules lecture, two events were independent when one happening does not change the chance of the other. A Venn diagram lets you test this directly.

For the class, the chance that a student studies German is . Given French, it is . These are close, but they are not equal. So knowing that a student studies French changes the chance of German a little, and the events are not independent.

In picture terms, independence means this: the overlap takes the same share of the F circle as the G circle takes of the whole rectangle. Here, German fills 40% of the rectangle, but only about 38.9% of the French circle.

The test is the same as the one from the rules lecture, . Check it:

But . The numbers differ, so the events are not independent. Both tests always agree, because one is the other divided by .

Mutually exclusive events have nothing in their overlap. Many books draw them as two circles that do not touch. In the four-region diagram, you write 0 in the overlap.

Worked examples

Worked Example 1 — An unknown overlap

In a group of 40 students, 25 study Physics and 22 study Chemistry. 5 study neither subject. (a) How many study both? (b) A Physics student is chosen at random. Find the probability that this student also studies Chemistry.

(a) The overlap is the unknown. Call it . Then Physics only is , and Chemistry only is . The four regions add to 40:

So 12 students study both. The regions are 13, 12, 10 and 5.

(b) Given Physics, only the Physics circle is left: 25 students. 12 of them study Chemistry.

Check: ✓, ✓, and ✓. The overlap is the excess: 25 + 22 + 5 = 52 is 12 more than 40.

Worked Example 2 — Filling from probabilities

, and . Draw the Venn diagram. Then find and . Are A and B independent?

The overlap is not given, so find it first with the addition rule:

Now work outwards. A only is . B only is . Neither is . Check: ✓.

: only the B circle is left, . The overlap is 0.2 of it.

: only the A circle is left, 0.5. The part of it outside B is A only, 0.3.

Independence: , which equals . Knowing B does not change the chance of A. So A and B are independent. Check with the other test: ✓.

Worked Example 3 — Three circles

55 people were asked which drinks they like: tea (T), coffee (C) and juice (J). 25 like tea, 28 like coffee and 20 like juice. 6 like tea and coffee but not juice. 4 like tea and juice but not coffee. 5 like coffee and juice but not tea. 3 like none of the three. How many like all three? Then find the probability that a random person likes exactly one drink, and .

Tea (25) Coffee (28) Juice (20) 12 14 8 6 4 5 3 3 none
The drinks survey, filled in from the centre outwards. The centre (all three) is 3. Three circles make eight regions, and the eight counts add to 55.

Three circles cut the rectangle into eight regions. The rule is the same as before: start in the middle. Here the middle is unknown, so call it . The three single-drink regions follow from the totals:

All eight regions add to 55:

So 3 people like all three drinks. The single regions are 12, 14 and 8.

Exactly one drink: , so the probability is .

: only the coffee circle is left, 28 people. The parts of it inside the juice circle are 5 and 3.

Check the tea circle: ✓. Check the total: ✓.

Worked Example 4 — The same class as a tree

Draw a tree diagram for the class of 30, with French first and German second. Show that its paths are the regions of the Venn diagram.

First stage: French , not French . The second stage is conditional, so read each branch from one circle of the Venn diagram. Given French, 7 of the 18 study German: and . Given not French, 5 of the 12 study German: and .

The four paths are 7, 11, 5 and 7 out of 30: both, French only, German only and neither. Each path of the tree is one region of the Venn diagram. Check: ✓.

So the two pictures hold the same information. A tree suits a question told in stages, with "given" probabilities on the branches. A Venn diagram suits a question that gives totals and overlaps.

Trap 1 — Writing the total in the "only" region

"18 study French" includes the overlap. Writing 18 outside the overlap counts those students twice. Fill the overlap first, then subtract it from each total. Then check that each circle adds back to its total.

Trap 2 — Dividing by the whole rectangle

"Given French" means only the French circle is left. is , not . If the question says "given", "of those who" or "chosen from", divide by that circle.

Trap 3 — Forgetting the outside region

"Not French" includes the students outside both circles. So do "not German" and "not both". Before you add regions, look outside the circles too. A last check: all the regions must add to the total, or to 1.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. At a meeting of 50 people, 28 drink tea, 19 drink coffee and 6 drink both. Find (a) how many drink neither and (b) the probability that a random person drinks exactly one of the two. (c) Find the probability that a person drinks tea, given that they do not drink coffee.

    Hint 1

    Put 6 in the overlap first. Then tea only is 28 − 6.

    Hint 2

    For (c), "does not drink coffee" leaves tea only and neither. That is the group you divide by.

    Full answer

    Tea only 22, both 6, coffee only 13. (a) . (b) . (c) Not coffee is people, and 22 of them drink tea, so . Check: ✓, and ✓.

  2. , and . Find , and . Are A and B independent?

    Hint 1

    is the outside region. So .

    Hint 2

    Use the addition rule to find the overlap, then divide it by each circle in turn.

    Full answer

    , so . Then , and . is not , so A and B are not independent. Check: , which is not 0.15 ✓. The regions are 0.2, 0.15, 0.35 and 0.3, which add to 1 ✓.

  3. In a class of 30, 6 students study both Art and Music, and 3 study neither. The number who study only Art is twice the number who study only Music. Find P(Art), and the probability that an Art student also studies Music. Are the two subjects independent?

    Hint 1

    Let Music only be . Then Art only is .

    Hint 2

    The four regions add to 30: .

    Full answer

    , so . Art only is 14, so Art has students and . Given Art, 6 of the 20 study Music: . But . The two differ, so the subjects are not independent: Art students are less likely than average to study Music. Check: ✓.

  4. and . (a) What are the smallest and largest possible values of ? (b) If A and B are independent, fill in all four regions. (c) Show that, in that case, and are independent too.

    Hint 1

    For (a), the overlap cannot be bigger than the smaller circle. It also cannot make the "neither" region negative.

    Hint 2

    For (b), independence means . For (c), the outside region is .

    Full answer

    (a) The overlap is at most 0.3, when the whole B circle is inside A. The smallest value is 0: then A or B covers , which still leaves 0.1 for neither, so no region is negative. So . (b) . A only , B only , neither . Check: they add to 1 ✓. (c) , which equals . So "not A" and "not B" are independent as well. This makes sense: if A gives no information about B, then "not A" cannot give any either.

The bigger idea

Circles for logic are older than Venn. In letters written to a German princess in the early 1760s, and published in 1768, the mathematician Leonhard Euler used circles to explain logical reasoning. A circle inside another circle meant "all of these are those". Two separate circles meant "none of these are those".

John Venn, a lecturer in logic at Cambridge, changed one thing. In a paper in the Philosophical Magazine in July 1880, he drew the circles so that they overlap in every possible way, every time. Every region is always drawn, even when it might turn out to be empty. Venn's reason was that the diagram should be able to show what you do not yet know. An empty region is written in, rather than left out of the picture.

That is exactly why the method in this lecture works. The four regions are always there, so every outcome has one place to go. You fill them in one fact at a time, and the diagram checks your work by adding up. When a region turns out to be 0, as for mutually exclusive events, you write 0. The picture does not change. Only the number does.

Key concepts in this lesson