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

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.5SL 4.6SL 4.11Paper 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.

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
Nov 2023 · TZ1 · Paper 1Q3Union probability from given values, then probability of both complements★☆☆
May 2024 · TZ2 · Paper 1Q5Nesting tree diagram in k; derive quadratic, reject invalid root★★☆
May 2023 · TZ2 · Paper 1Q4Given P(A), P(A given B) and P(A∪B), find P(B)★★☆
May 2025 · TZ3 · Paper 2Q8Binomial conditions, expected riders, interval and conditional probabilities, find n★★★
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