KS Maths
Topic 4.6 · AA and AI, SL and HL

Venn diagrams, tree diagrams and conditional probability

Move the overlap and everything changes

Venn diagrams, tree diagrams, conditional probability, and the difference between mutually exclusive and independent.

This video lesson is a free sample. The plans open the rest of the lessons in this course, each with a figure to move and questions that check your answer as you type. See the plans.
Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

probability
How likely it is that something happens, from 0 to 1.The probability of heads is one half.
conditional probability
The probability of an event given that another event has happened.The probability of rain given that it is cloudy.
Venn diagram
A diagram with overlapping circles showing groups and what they share.A Venn diagram of boys and footballers.
tree diagram
A diagram with branches that shows all outcomes and their probabilities.A tree diagram for two coin tosses.
independent
Not affecting each other.Two coin tosses are independent.
event
One or more outcomes that we are interested in.Rolling an even number is an event.
mutually exclusive
Events that cannot both happen at once.A coin cannot land heads and tails together.
add
Put numbers together to find the total.Add 3 and 4 to get 7.
decimal place
A digit after the decimal point. We count places from the point.3.14 has two decimal places.
significant figure
A digit that matters for the size of a number. Counting starts at the first non-zero digit.0.0382 to 2 significant figures is 0.038.

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer; a slip here shows you what to watch for later in the lesson.

  1. Work out 3/10 × 2/9 and simplify your answer.
    Answer

    6/90 = 1/15. Multiply the numerators and multiply the denominators, then divide top and bottom by 6. This is the multiplication along one branch of a tree.

  2. Work out 2/5 × 1/3 + 3/5 × 1/4.
    Answer

    2/15 + 3/20 = 8/60 + 9/60 = 17/60. Multiply first, then add, using a common denominator. This is “multiply along, add between”.

  3. In a class of 25, 10 students play chess, 8 play draughts and 3 play both. How many play at least one of the two games?
    Answer

    10 + 8 − 3 = 15. The 3 who play both were counted in each of the other two numbers, so they are taken off once.

  4. Of the 10 chess players, 3 also play draughts. What fraction of the chess players play draughts?
    Answer

    3/10. The chess players are the whole group for this question, so the 10 is the denominator, not the 25.

Words used in this lesson
Venn diagram
a picture of sets as overlapping circles inside a rectangle. For example: one circle for football and one for tennis.
union (or)
in A, in B, or in both: written A ∪ B. For example: plays football or tennis, possibly both.
intersection (and)
in both A and B: written A ∩ B. For example: plays football and tennis.
conditional probability
the probability of one event when you already know another has happened. For example: P(A | B) is read “A given B”.
mutually exclusive
cannot both happen at the same time. For example: a single die cannot show a 2 and a 5.
independent
knowing one happened does not change the probability of the other. For example: two coins tossed separately.
replacement
putting the item back before the next draw. For example: a card put back and the pack shuffled.
branch
one line of a tree diagram, labelled with a probability. For example: the branch for red on the first draw.
complement
everything outside the event; written A′. For example: not football is the complement of football.
given that
assume this has happened. For example: “given that it rained” changes the world you are looking at.
two-way table
a table that sorts one group in two ways at once, with totals for each row and column. For example: rows for football or not, columns for tennis or not.

Predict first. As the overlap between the two circles grows from 0, will P(F or T) go up, go down or stay the same? And what about P(F | T)? Decide, and give a reason for each, before you look.

Then check

Sweep the overlap from 0 to its largest value and watch the first and third readings and the status box. Say in a sentence what each reading does, where the status changes, and whether it ever says independent.

Thirty students. Eighteen play football, twelve play tennis. How many play both is the only thing not fixed. Drag the overlap and watch every probability on the page follow it.

both = 7
0.767P(F or T)
0.233P(F and T)
0.583P(F | T)
neitherstatus

At one end they are mutually exclusive. Independence would need P(F and T) = 0.6 × 0.4 = 0.24, an overlap of 7.2 students, so with whole students these two events are never exactly independent.

The formulas, and what they are really saying

P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Add the two circles and you have counted the overlap twice, so take it off once. When A and B are mutually exclusive the overlap is empty and this becomes P(A ∪ B) = P(A) + P(B).

P(A | B) = P(A ∩ B)P(B). Given B has happened, B is the new whole world, so divide by it.

Mutually exclusive and independent are not the same thing, and cannot both be true for events with non-zero probability. Mutually exclusive means the overlap is empty. Independent means knowing one tells you nothing about the other. If A and B are mutually exclusive then knowing A happened tells you B definitely did not, which is about as dependent as it gets.

Mutually exclusiveIndependent
TestP(A ∩ B) = 0P(A ∩ B) = P(A) × P(B)
In the diagramthe circles do not toucha specific overlap, usually not a round number
P(A | B)0P(A)
P(A ∪ B)P(A) + P(B)P(A) + P(B) − P(A)P(B)

The same information as a table of outcomes

A Venn diagram and a two-way table hold exactly the same four numbers. Here is the football and tennis group with 9 who play both. Every row and column adds up, which is the check.

tennisnot tennistotal
football9918
not football3912
total121830

Read a conditional probability by staying in one row or one column. Given tennis, stay in the tennis column: P(football | tennis) = 9/12 = 0.75. The 30 is not used, because the condition has already chosen the 12.

Trees, with and without replacement

A bag holds 5 red and 3 blue counters. Two are drawn. Grow the tree and watch what happens to the second layer when the first counter does not go back.

Multiply along a path. Add between paths.
–P(both red)
–P(one of each)
–P(both blue)

Multiply along a branch, add between branches. "One of each" is two different paths, red then blue and blue then red, so you work out both and add them. Forgetting the second path halves the answer and is the commonest error on tree questions.

A second example, finished by you

The same method on a new tree. The first three steps are written out with the reason for each; the last one is yours. Cover the reasons and see whether you can say them first.

A box holds 4 green and 6 yellow sweets. Two are taken out without replacement. Find the probability that they are different colours, to 4 decimal places.

  1. First draw: P(G) = 4/10 and P(Y) = 6/10.Start with the whole box. Check that the two branches add to 1.
  2. Second draw, after a green: P(Y) = 6/9. After a yellow: P(G) = 4/9.One sweet has left the box, so the denominator is 9 on every second branch. The numerator changes only for the colour that was taken.
  3. Path G then Y: 4/10 × 6/9 = 24/90.Multiply along the branch. This is one of the two paths that give different colours.
  4. Write the other path that gives different colours, work it out, and add the two paths. Give the total to 4 decimal places.Your step. Write it out in full before you type the answer below.

Your answer. Type P(different colours), to 4 decimal places.

Check before you go on

One question that tells you whether the main idea has landed. Each wrong option is a different common slip, so the reply tells you which one you made.

For events A and B, P(A) = 0.4, P(B) = 0.5 and P(A ∩ B) = 0.2. Which statement is correct?

For events A and B, P(A) = 0.4, P(B) = 0.5 and P(A ∩ B) = 0.2. Which statement is correct?

Where it decides something

A health clinic screens people for a condition that 1% of them have. The test is positive for 95% of people who have the condition, and also positive for 8% of people who do not have it (a false positive). The clinic wants to know how many positive tests to expect, so that it can plan follow-up appointments.

Find the probability that a person chosen at random tests positive, to 4 decimal places.

Your turn

1. In a year group of 40 students, 22 study French (F), 15 study Spanish (S) and 6 study both. A student is chosen at random. Find P(F ∪ S), to 3 decimal places.

2. For the same year group, find P(S | F), the probability that a French student also studies Spanish, to 3 decimal places.

3. A drawer holds 7 black socks and 5 white socks. Two are taken out without replacement. Find the probability that they are the same colour, to 4 decimal places.

Where the marks go

Drawing the diagram. A Venn with all four regions filled in, or a tree with every branch labelled, is usually worth a mark on its own and prevents most of the errors that follow.

For conditional probability, dividing by the condition, not by the total. In the football and tennis group, P(F | T) has 12 on the bottom, not 30.

On a tree without replacement, changing the second layer: one fewer in every denominator, and one fewer on top for the colour already taken. Leaving them unchanged is the single most expensive slip here.

Something to think about

What if the bag is twice as big but has the same proportions: 10 red and 6 blue instead of 5 red and 3 blue? Predict first: will the gap between P(both red) with replacement and without replacement get bigger, get smaller or stay the same? Then work out both values for the bigger bag.

One way to think about it

With replacement the first and second draws are the same, so P(both red) is (10/16)². Without replacement, the second draw is from 15 counters with 9 red. Compare the gap with the gap you can work out for the original bag, and think about what happens to the gap if the bag held a thousand counters.

Climb to an exam question

Five steps, each one a little harder than the last. Every step is a piece of the exam question at the end, so by the top you have already done each part once.

Step 1 of 5: fill in the overlap of a Venn diagram. A group of 50 people is asked about drinks. 26 like juice, 19 like milk and 8 like neither. How many like both?

Step 2 of 5: turn the diagram into a conditional probability. Use the number who like both. One person is chosen at random from the 26 who like juice. Find the probability that this person also likes milk, correct to 3 significant figures.

Step 3 of 5: decide whether two events are independent. In the same group of 50, 26 like juice, 19 like milk and 3 like both. Are the events “likes juice” and “likes milk” independent?

In the same group of 50, 26 like juice, 19 like milk and 3 like both. Are the events “likes juice” and “likes milk” independent?

Step 4 of 5: one path of a tree without replacement. A bag holds 8 red and 6 blue counters. Two counters are taken out at random, one after the other, without replacement. Find the probability that the first is red and the second is blue, correct to 3 significant figures.

Step 5 of 5: choose the paths for exactly one. From the same bag of 8 red and 6 blue counters, two are taken out without replacement. Which expression gives the probability that exactly one of the two counters is red?

From the same bag of 8 red and 6 blue counters, two are taken out without replacement. Which expression gives the probability that exactly one of the two counters is red?

The exam question

Written for this site in the style of the real papers. Do it on paper first, as you would in the exam, and show your working: most of the marks are for method. Give answers to 3 significant figures unless the question says otherwise. Then check each part below.

Paper 2 style · calculator (GDC) allowed · 9 marks · about 10 minutes

A sports club has 60 members. Of these, 36 play badminton, 28 play squash and 12 play neither sport.

(a) Find the number of members who play both badminton and squash. [2]

(b) A member who plays squash is chosen at random. Find the probability that this member also plays badminton. Give your answer correct to 3 significant figures. [2]

(c) Hence determine whether playing badminton and playing squash are independent events. Justify your answer. [2]

(d) Two members are chosen at random, one after the other, without replacement. Find the probability that exactly one of them plays badminton. Give your answer correct to 3 significant figures. [3]

Check (a). Type the number of members who play both.

Check (b). Type the probability, to 3 significant figures.

Check your working for (c)

Compare your answer to (b) with the probability that a member chosen from the whole club plays badminton, and say what the comparison means: would knowing that a member plays squash change the chance that they play badminton if the events were independent?

Check (d). Type the probability, to 3 significant figures.

Want the rest of this topic?

This is a free sample lesson. The IB Diploma plan opens every other Diploma lesson, AA and AI, SL and HL, and every lesson from Year 7 for the refreshers. It covers every child in the family and includes all seven revision packs.

$99 for 12 months, or $149 for 2 years

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

That is $8.25 a month for the whole family.

Student without a card? in one tap.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Already paid? Type the email you paid with in the sign-in box, then click the link we send. See every price, including $19 revision packs.

Teaching this lesson?

Every lesson here has a teacher page beside it: worked answers, what each common wrong answer tells you about a student's thinking, and questions at three levels for the board. Every unit has a free sample lesson for students, and a plan opens every other lesson.

See the teacher pages