James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout

Probability, Venn & tree diagrams

The language of probability, expected numbers of occurrences, and the four diagrams that solve almost every probability question: sample spaces, tables of outcomes, Venn diagrams and tree diagrams. Then combined events, conditional probability and independence.

SL 4.5SL 4.6Paper 1Paper 2GDC allowed≈ 55 min to work through
Before you start: fractions, decimals and percentages (Before you start › Percentages & ratio).

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) and P(A′)=1−P(A)SL 4.5
  • Find an expected number of occurrencesSL 4.5
  • Use sample space diagrams, tables, Venn diagrams and tree diagramsSL 4.6
  • Use P(A∪B)=P(A)+P(B)−P(A∩B) and recognise mutually exclusive eventsSL 4.6
  • Find conditional probabilities P(A|B)SL 4.6
  • Test for independence, and handle "with" and "without replacement"SL 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

Most probability questions become easy once the right diagram is drawn. Two dice or two spinners: a sample space grid. Two overlapping categories: a Venn diagram. Events one after another: a tree diagram. Data in categories: a two-way table. Then probabilities are just "how many of the outcomes I care about, out of how many possible".

2.1 The basics

Probability In formula booklet
P(A)=n(A)n(U)P(A\′)=1−P(A)

n(A) is the number of outcomes in event A; n(U) is the number of equally likely outcomes. Expected number of occurrences =n×P(A) for n trials.

Worked example 1Paper 1
Two fair dice are rolled. Find the probability that the total is 8.
Sample space: 6×6=36 equally likely outcomes
Draw the 6 by 6 grid of totals.
Totals of 8: (2,6), (3,5), (4,4), (5,3), (6,2): 5 outcomes
P=536
Worked example 2Paper 1
In a class of 128 students, the probability that a student is absent on a given day is 0.1. Find the expected number absent.
128×0.1=12.8
An expected number does not have to be a whole number.

2.2 Venn diagrams and combined events

Combined events In formula booklet
P(A∪B)=P(A)+P(B)−P(A∩B)

Mutually exclusive events cannot both happen: P(A∩B)=0.

Worked example 3Paper 1
In a group of 40 students, 22 play football, 15 play basketball and 6 play both. A student is chosen at random. Find (a) P(football or basketball) (b) P(neither).
Venn diagram: football only 22−6=16; both 6; basketball only 15−6=9; neither 40−31=9
Fill in the overlap first, then work outwards.
(a) 16+6+940=3140
(b) 940

2.3 Conditional probability and independence

Conditional probability and independence In formula booklet
P(A|B)=P(A∩B)P(B)

P(A|B) means "the probability of A, given that B has happened": restrict yourself to B. Events are independent if P(A∩B)=P(A)P(B) (equivalently P(A|B)=P(A)).

Worked example 4Paper 1
For the students in worked example 3, find the probability that a student plays football, given that they play basketball.
Restrict to the 15 basketball players. 6 of them play football.
The "given" event becomes the new whole.
P(F|B)=615=0.4
Worked example 5Paper 1
P(A)=0.3, P(B)=0.5 and P(A∩B)=0.15. Are A and B independent?
P(A)P(B)=0.3×0.5=0.15=P(A∩B)
Yes, they are independent.

2.4 Tree diagrams: with and without replacement

Multiply along the branches for "and"; add the end results for "or". Without replacement, the second set of branches changes, because one item has gone.

Worked example 6Paper 2
A bag has 5 red and 3 blue counters. Two are taken out without replacement. Find (a) P(both the same colour) (b) P(at least one blue).
(a) P(RR)+P(BB)=58×47+38×27=2056+656=1328
(b) 1−P(RR)=1−2056=914
"At least one" is usually quickest as 1 − P(none).
Worked example 7 (faded)Paper 1
P(A)=0.45, P(B)=0.3, P(A∩B)=0.1. Find P(A∪B) and P(A|B).
P(A∪B)=0.45+0.3−0.1= 0.65  ← you work this out
P(A|B)=0.10.3= 1/3  ← you work this out
On your TI-Nspire Calculator tricks →

Keep probabilities as fractions on the GDC: it simplifies them for you (press ctrl enter for a decimal). For long trees, store each branch product before adding. In the exam, give exact fractions or 3 s.f. decimals.

3Explore it

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

4Common mistakes & exam tips

Common mistakes

  • Adding P(A)+P(B) for "A or B" without subtracting the overlap.
  • In P(A|B), dividing by the whole sample instead of by P(B).
  • Using the same probabilities on the second branches when there is no replacement.
  • Confusing mutually exclusive (cannot both happen) with independent (one does not affect the other).
  • Rounding an expected number to a whole number.

Exam tips

  • The formulae for combined, conditional and independent events are in the formula booklet.
  • Draw the diagram, even when not asked: it earns method marks and prevents mistakes.
  • "Given that" means: shrink the sample space to that event.
  • "Show that A and B are independent": calculate P(A)P(B) and compare with P(A∩B).

5Practice

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

FluencyP1
A fair spinner has 8 equal sections numbered 1 to 8. Find P(prime).
2, 3, 5, 7: 48=12
FluencyP2
P(rain)=0.35. Find the expected number of rainy days in 30 days.
10.5
FluencyP3
P(A)=0.6, P(B)=0.5, P(A∪B)=0.8. Find P(A∩B).
0.6+0.5−0.8=0.3
FluencyP4
Are the events in the previous question independent?
0.6×0.5=0.3: yes.
Problem solvingP5
Of 200 people, 120 drink coffee and 90 drink tea; 30 drink neither. Find P(coffee|tea).
Both =120+90−170=40; 4090=49
Problem solvingP6
Two cards are taken without replacement from 4 aces and 8 kings. Find the probability that exactly one is an ace.
2×412×811=1633

6Exam-style questions

Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

In a survey of 60 people, 35 own a bicycle (B), 28 own a car (C) and 12 own both.

  • (a)Draw a Venn diagram to show this information.[2]
  • (b)Find the probability that a person chosen at random owns neither.[2]
  • (c)Find P(C|B).[2]
(a)
23, 12, 16 in the regionsA1
9 outside the circlesA1
(b)
60−51=9(M1)
960=0.15A1
(c)
1235A2
Award (M1) for a denominator of 35.
Question 2Paper 1[6 marks]

A box contains 6 green and 4 yellow balls. Two balls are taken at random, without replacement.

  • (a)Draw a tree diagram showing all the probabilities.[2]
  • (b)Find the probability that both balls are yellow.[2]
  • (c)Find the probability that at least one ball is green.[2]
(a)
first branches 610, 410A1
second branches 59,49,69,39A1
(b)
410×39(M1)
215A1
(c)
1−215(M1)
1315A1
Question 3Paper 2[7 marks]

A school recorded whether 150 students walk to school, by year group.

WalkDo not walkTotal
Year 11364480
Year 12244670
Total6090150

  • (a)Find the probability that a student chosen at random walks.[1]
  • (b)Find the probability that a student walks, given that they are in Year 12.[2]
  • (c)Determine whether walking is independent of year group. Justify your answer.[2]
  • (d)The school has 900 students in total. Estimate how many walk.[2]
(a)
60150=0.4A1
(b)
2470(M1)
0.343A1
(c)
P(W)=0.4≠P(W|Y12)=0.343R1
not independentA1
(d)
900×0.4(M1)
360A1

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 these real IB Maths AI SL questions. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
Nov 2025 · TZ1 · Paper 2Q3Venn diagram of courses: conditional probability, mutually exclusive events★★★
May 2026 · TZ2 · Paper 1Q3Two-way table: joint and conditional probability, at least one★★☆
May 2026 · TZ3 · Paper 1Q6Lost luggage table: complete it, conditional probabilities★★☆
Nov 2025 · TZ3 · Paper 1Q7Tree diagram: missing values, combined and conditional probability★★☆
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