James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 4: Statistics & probability › Probability, Venn & tree diagrams

Probability, Venn & tree diagrams

The language of probability, Venn diagrams, tree diagrams and sample spaces, the addition rule, independent and mutually exclusive events, and conditional probability.

SL 4.54.64.11SL + HL extensionPaper 1Paper 2≈ 60 min to work through
Before you start: fractions. See Before you start SL › Fractions.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use P(A)=n(A)n(U), P(A′)=1−P(A) and expected number npSL 4.5
  • Use Venn diagrams, tree diagrams, sample space diagrams and tablesSL 4.6
  • Use P(A∪B)=P(A)+P(B)−P(A∩B)SL 4.6
  • Know the conditions for mutually exclusive and independent eventsSL 4.6
  • Find conditional probabilities P(A∣B)SL 4.6, 4.11
  • Use tree diagrams for events with and without replacementSL 4.6

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Probability measures how likely something is, on a scale from 0 (impossible) to 1 (certain). Venn diagrams and tree diagrams organise the possible outcomes so that you can count or calculate probabilities without missing any.

2.1 Basic ideas

An experiment (such as rolling a die) has possible outcomes. The set of all outcomes is the sample space U. An event is a set of outcomes you are interested in, such as "an even number". When all outcomes are equally likely, the probability of an event is the fraction of outcomes it contains.

  • P(A)=n(A)n(U) when outcomes are equally likely. P(A′)=1−P(A).
  • The expected number of times A happens in n trials is np.

2.2 Combined events

A∪B ("A or B") means at least one of them happens. A∩B ("A and B") means both happen. A∣B ("A given B") means A happens when we already know B has happened.

Key formulae In formula booklet
P(A∪B)=P(A)+P(B)−P(A∩B)P(A∣B)=P(A∩B)P(B)
  • Mutually exclusive: cannot both happen, P(A∩B)=0, so P(A∪B)=P(A)+P(B).
  • Independent: one does not affect the other, P(A∩B)=P(A)P(B), equivalently P(A∣B)=P(A).
Why do the formulae work?

In a Venn diagram, P(A)+P(B) counts the overlap A∩B twice: once in each circle. Subtracting P(A∩B) once corrects this. For conditional probability, knowing that B happened shrinks the sample space to just B. The probability of A is then the fraction of B that is also in A: P(A∩B)P(B).

Do not confuse the two ideas. Mutually exclusive events cannot happen together. Independent events can happen together; knowing one has happened just does not change the chance of the other.

Worked example 1Paper 1
In a class of 30, 18 play football, 12 play tennis and 5 play both. Find the number who play neither, and P(football only).
Football only =18−5=13; tennis only =12−5=7.
Neither =30−(13+5+7)=5.
Fill a Venn diagram from the middle outwards.
P(football only)=1330
Worked example 2Paper 1
P(A)=0.4, P(B)=0.5 and P(A∪B)=0.7. Find P(A∩B) and decide whether A and B are independent.
0.7=0.4+0.5−P(A∩B), so P(A∩B)=0.2.
P(A)P(B)=0.2=P(A∩B), so they are independent.

2.3 Tree diagrams

Tree diagrams show events in stages, such as picking two counters one after another. Each set of branches shows the possible outcomes at that stage, and their probabilities add to 1.

Multiply along branches; add the results of different paths. Without replacement, the probabilities on the second branches change.

You multiply along a path because both stages must happen: if the first happens 5/8 of the time, and the second happens 4/7 of those times, together they happen 58×47 of the time. You add different paths because they are separate ways of getting the result, and they cannot both happen.

Worked example 3Paper 1
A bag has 5 red and 3 blue counters. Two are taken without replacement. Find P(same colour) and P(both red∣same colour).
P(RR)=58×47=2056; P(BB)=38×27=656
P(same)=2656=1328
P(RR∣same)=20/5626/56=1013
Worked example 4 (faded)Paper 1
Two fair dice are rolled. Find the probability that the total is 7.
Number of outcomes with total 7: 6  ← you work this out
P=636= 1/6  ← you work this out
On your TI-Nspire Calculator tricks →

Probability calculations here are fractions: on the CX II-T, exact arithmetic keeps them as fractions. ctrl enter gives the decimal.

3Explore it

Set P(A), P(B) and P(A∩B). The readout gives the union and conditional probabilities, and tests for independence.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

HL probability questions combine the SL rules with counting principles, proofs about independence, and games that go on until someone wins, which lead to geometric series.

Probability with counting

Worked example H1Paper 1
The letters of MATHS are arranged in a random order. Find the probability that A and T are next to each other.
Treat AT as one block: 4! arrangements, times 2 for the order within the block.
P=2×4!5!=25

Proving independence results

Worked example H2Paper 1
A and B are independent. Prove that A′ and B are independent.
P(A′∩B)=P(B)−P(A∩B)
=P(B)−P(A)P(B)=P(B)(1−P(A))
=P(A′)P(B), so A′ and B are independent.

Games that continue until someone wins

Worked example H3Paper 1
Ana and Ben take turns to roll a fair die, Ana first. The first to roll a six wins. Find the probability that Ana wins.
Ana wins on her 1st, 2nd, 3rd, … turn: 16+(56)216+(56)416+⋯
Geometric series with a=16, r=2536
Each round where both miss multiplies by (56)2.
P=1/61−25/36=611

HL exam-style questions

Question 1Paper 1[5 marks]

Two players take turns to toss a biased coin, for which P(head)=13. The first player to toss a head wins. Player A tosses first.

  • (a)Find the probability that A wins on his second toss.[2]
  • (b)Find the probability that A wins the game.[3]
(a)
(23)2×13M1
427A1
(b)
13+(23)213+⋯M1
1/31−4/9A1
35A1
Question 2Paper 1[4 marks]

Events A and B are independent, with P(A)=0.3 and P(B)=0.6.

  • (a)Prove that A′ and B are independent.[3]
  • (b)Find P(A′∩B).[1]
(a)
P(A′∩B)=P(B)−P(A∩B)M1
=P(B)−P(A)P(B)=P(B)(1−P(A))A1
=P(A′)P(B)AG R1
(b)
0.42A1

4Common mistakes & exam tips

Common mistakes

  • Adding P(A)+P(B) for events that are not mutually exclusive.
  • Confusing independent with mutually exclusive.
  • Not changing the second-branch probabilities when sampling without replacement.
  • Dividing by the wrong probability in P(A∣B): divide by P(B), the event you are given.

Exam tips

  • "Given that" means conditional probability: restrict to the given event.
  • To show independence, show P(A∩B)=P(A)P(B) with numbers.
  • For "at least one", use 1−P(none).

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
P(A)=0.35. Find P(A′).
0.65
FluencyP2
A fair die is rolled. Find the probability of a prime number.
36=12 (2, 3 and 5)
FluencyP3
A and B are mutually exclusive, P(A)=0.2, P(B)=0.45. Find P(A∪B).
0.65
FluencyP4
The probability that a seed grows is 0.15. Find the expected number that grow from 200 seeds.
30
Problem solvingP5
A die is rolled twice. Find the probability of at least one six.
1−(56)2=1136
Problem solvingP6
P(A)=0.6 and P(B∣A)=0.5. Find P(A∩B).
0.6×0.5=0.3

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

In a group of 40 students, 22 study biology, 18 study chemistry and 7 study neither.

  • (a)Find the number who study both.[2]
  • (b)Find the probability that a student chosen at random studies biology only.[2]
  • (c)A student studies biology. Find the probability that they also study chemistry.[2]
(a)
22+18−x=33M1
x=7A1
(b)
22−7=15A1
1540=38A1
(c)
n(B∩C)n(B)M1
722A1
Question 2Paper 1[5 marks]

A and B are independent events with P(A)=0.3 and P(B)=0.5.

  • (a)Find P(A∩B).[1]
  • (b)Find P(A∪B).[2]
  • (c)Write down P(A∣B).[1]
  • (d)Explain why A and B are not mutually exclusive.[1]
(a)
0.15A1
(b)
0.3+0.5−0.15M1
0.65A1
(c)
0.3A1
(d)
P(A∩B)≠0R1
Question 3Paper 2[5 marks]

The probability that it rains on a given day is 0.3. If it rains, the probability that Ana is late is 0.4; if it does not rain, the probability she is late is 0.1.

  • (a)Find the probability that Ana is late.[3]
  • (b)Given that Ana is late, find the probability that it rained.[2]
(a)
Tree diagram or 0.3×0.4+0.7×0.1M1 A1
0.19A1
(b)
0.120.19M1
0.632A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ1 · Paper 1Q4Find intersection probability and show two events are independent★☆☆
May 2022 · TZ1 · Paper 2Q5Independent events, find intersection and conditional probability★★☆
Nov 2022 · Paper 1Q6Find independent, minimum and maximum values of an intersection probability★★☆
May 2023 · TZ2 · Paper 2Q11Probability of two yellow balls leading to a quadratic model★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake