Lesson 5 of 8 · 16 min
Tree diagrams and the multiplication rule
Use tree diagrams to multiply along branches, add the paths that make up an event, handle draws with and without replacement, and reverse a conditional probability.
What you will be able to do
- Draw a tree diagram with conditional probabilities on the second-stage branches.
- Find by multiplying along a path, and add the paths that make up an event.
- Reverse a conditional probability, finding from a tree that gives .
A bag holds 5 red and 3 green jelly snakes. You take one without looking, eat it, then take another. The chance that the second snake is red depends on what you took first: the experiment happens in stages, and the stages are linked. A tree diagram keeps track of every possibility and its probability.
After a red snake is eaten, 7 snakes are left and 4 of them are red, so the next branch is . Tick paths to add them.
Rules for tree diagrams
The branches from any point add to 1
From the start, ; after a red, .
Second-stage branches are conditional probabilities
The branch to the second red after a first red is .
Multiply along a path
A path is "this, then that", so . This is the multiplication rule.
Add the paths that make up an event
Different paths can't both happen, so they are mutually exclusive and their probabilities add.
Check that all the path products add to 1
Using the tree, find the probability that both snakes are green.
Worked example
Two draws without replacement
A bag contains 5 red and 3 green jelly snakes. Two snakes are taken at random, one after the other, without replacement. Find the probability that:
(a) both snakes are red (b) both snakes are the same colour.
Step 1: Draw the tree
First draw: red , green . After a red: red , green . After a green: red , green .
Without replacement, the bag has 7 snakes for the second draw, and one fewer of the colour already taken.
Step 2: Multiply along the red–red path
Step 3: Multiply along the green–green path
Step 4: Add the paths for "same colour"
The two paths are mutually exclusive (you can't get both red and both green), so their probabilities add.
Try it yourself first, then check the working one step at a time.
Answer
(a) (b)
Method
Draw the tree, changing the second-stage probabilities after each draw.
Multiply along each path you need.
Add the paths that make up the event.
Watch out for
Using , as if the first snake were put back.
Adding along a path.
With replacement
The item goes back, so the bag is the same for every draw. The second-stage branches match the first stage:
The draws are independent of each other.
Without replacement
The first draw changes the bag: one fewer item in total, and one fewer of the colour drawn:
The second draw depends on the first.
Two snakes are taken from the bag of 5 red and 3 green without replacement. Find the probability of getting one of each colour.
Sometimes the tree gives you but the question asks for , the condition the other way round. Go back to the definition:
The numerator is one path. The denominator, , is the sum of every path that ends in .
Worked example
Rain and a late bus
On a school morning in Mackay, the probability of rain is 0.3. If it rains, the probability that the school bus is late is 0.4; if it doesn't rain, the probability that the bus is late is 0.1.
(a) Find the probability that the bus is late.
(b) One morning the bus is late. Find the probability that it rained.
Step 1: Name the events and write what you know
Let be "it rains" and be "the bus is late". Then , and .
"If it rains, the probability that the bus is late is 0.4" is a conditional probability: the condition is rain.
Step 2: Draw the tree
First stage: 0.3, 0.7. After : 0.4, 0.6. After : 0.1, 0.9.
Step 3: Multiply along the two paths that end in
and .
Step 4: Add them for (a)
Step 5: Reverse the condition for (b)
Given that the bus is late, the sample space is the two "late" paths, with total probability 0.19. Rain makes up 0.12 of that.
Step 6: Interpret
Knowing that the bus is late more than doubles the probability that it rained, from 0.3 to about 0.63.
Try it yourself first, then check the working one step at a time.
Answer
(a) (b)
Method
Put the unconditional probabilities on the first stage and the conditional ones on the second.
Multiply along paths; add the paths that end in the given event to get its probability.
Reverse with .
Watch out for
Answering 0.4: that is , not .
Dividing by 0.3 instead of .
In a Methods class, 20% of students did an optional practice quiz. Of those who did it, 50% scored above 80% on the test; of those who didn't, 25% scored above 80%. A student who scored above 80% is chosen at random. Find the probability that they did the practice quiz.
Common mistake
Common tree errors
- Adding along a path instead of multiplying.
- Reusing the first-stage probabilities on the second stage when the draws are without replacement.
- Leaving out a path when you add, especially the "other order" in a one-of-each question.
- Dividing by the wrong thing when reversing a condition: the denominator is the total of all paths that satisfy the condition.
Exam tip
Label everything
Name each event with a letter, label every branch with its probability, and write the products you use, such as . If the tree is right and the arithmetic slips, you still earn the method marks.
Summary
Multiply along a path: .
Add the paths that make up an event; all the path products add to 1.
Without replacement, the second-stage probabilities change; with replacement they don't.
To reverse a condition, , where is the sum of the paths ending in .
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.