IEB · Grade 12 · Paper 1

Tree diagrams and contingency tables

Being checked by our tutors

Probability · Updated 13 October 2026

Tree diagrams organise events that happen one after another, and contingency tables organise data about two features at once. Both are used in Paper 1 to calculate probabilities and to test whether events are independent.

Report an error

Tree diagrams and contingency tables · Introduction

Tree diagrams

Each branch shows an outcome and its probability.

  • Multiply along a path for "and".
  • Add the results of different paths for "or".
  • The probabilities on branches from one point add up to 1.

Without replacement the second-stage probabilities change, because there is one fewer item.

Example. A bag has 5 red and 3 blue counters. Two are drawn without replacement.

Report an error

Tree diagrams and contingency tables · Tree diagrams

Two-way contingency tables

A contingency table shows counts for two categories, with row and column totals.

Example. 200 learners were asked whether they prefer online or in-person tutoring.

  • Boys: online 48, in-person 32, total 80
  • Girls: online 72, in-person 48, total 120
  • Totals: online 120, in-person 80, grand total 200

Read probabilities straight from the table:

Complete any missing cells first using the totals.

Report an error

Tree diagrams and contingency tables · Two-way contingency tables

Testing for independence

Two events are independent if .

From a table. In the example above:

They are equal, so gender and preference are independent in this sample.

From a tree. If the second-stage branch probabilities are the same whatever happened first, the events are independent. If they change, the events are dependent.

Always show both calculations and write a conclusion in words.

Report an error

Tree diagrams and contingency tables · Testing for independence

Key terms

Tree diagram

A branching diagram showing successive events and their probabilities.

With replacement

The item is returned before the next draw, so probabilities stay the same.

Without replacement

The item is not returned, so later probabilities change.

Contingency table

A table of counts classified by two features.

Report an error

Tree diagrams and contingency tables · Key terms

Common mistakes

  • Keeping the same denominator on the second branch when drawing without replacement.

  • Adding along a path instead of multiplying.

  • Testing independence with counts instead of probabilities.

  • Forgetting one of the paths in 'one of each' questions.

Report an error

Tree diagrams and contingency tables · Common mistakes

Practice questions

Reveal steps one at a time, then tick the marks you earned.

1

Question 1

4 marks total

Report an error

Tree diagrams and contingency tables · Q1 · Question 1

routine

A bag contains 5 red and 3 blue counters. Two counters are drawn one after the other without replacement. Calculate the probability that both are red.

Worked solution

Hidden - try the question first

2

Question 2

5 marks total

Report an error

Tree diagrams and contingency tables · Q2 · Question 2

routine

For the same bag, calculate the probability that the two counters are different colours.

Worked solution

Hidden - try the question first

3

Question 3

6 marks total

Report an error

Tree diagrams and contingency tables · Q3 · Question 3

complex

200 learners were asked whether they prefer online or in-person tutoring. 80 of the learners are boys. 120 of all learners prefer online tutoring, and 48 boys prefer online tutoring.

(a) Draw a contingency table with all totals. (2)

(b) Calculate . (1)

(c) Are being a boy and preferring online tutoring independent events? Show calculations. (3)

Worked solution

Hidden - try the question first

4

Question 4

9 marks total

Report an error

Tree diagrams and contingency tables · Q4 · Question 4

problem-solving

The probability that it rains on a Saturday in Durban is 0,3. If it rains on Saturday, the probability that it rains on Sunday is 0,6. If it does not rain on Saturday, the probability that it rains on Sunday is 0,2.

(a) Draw a tree diagram to show this information. (3)

(b) Calculate the probability that it rains on exactly one of the two days. (3)

(c) Calculate the probability that it rains on at least one of the two days. (2)

(d) Is rain on Sunday independent of rain on Saturday? Give a reason. (1)

Worked solution

Hidden - try the question first

FAQs

When do I use a tree diagram instead of a Venn diagram?

Use a tree for events that happen in stages, one after another. Use a Venn diagram for overlapping categories at one time.

Report an error

Tree diagrams and contingency tables · FAQ: When do I use a tree diagram instead of a Venn diagram?

How do I show events are dependent?

Show that , or point out that the second-stage probabilities change with the first outcome.

Report an error

Tree diagrams and contingency tables · FAQ: How do I show events are dependent?

Are contingency tables in the IEB exam?

Yes. Two-way tables are used to calculate probabilities and to test for independence.

Report an error

Tree diagrams and contingency tables · FAQ: Are contingency tables in the IEB exam?

Stuck on this? An IEB Maths tutor can help.

1-on-1 tutoring

Need a tutor for this subject?

Free revision is a start. For Grade 12 Mathematics, we match you with a specialist IEB tutor for personalised lessons.

← More topics in Probability