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 P(A∩B)=P(A) P(B∣A)P(A \cap B) = P(A)\,P(B \mid A) by multiplying along a path, and add the paths that make up an event.
  • Reverse a conditional probability, finding P(A∣B)P(A \mid B) from a tree that gives P(B∣A)P(B \mid A).

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.

Interactive

Two jelly snakes, without replacement

After a red snake is eaten, 7 snakes are left and 4 of them are red, so the next branch is 47\frac{4}{7}. Tick paths to add them.

Rules for tree diagrams

  1. The branches from any point add to 1

    From the start, 58+38=1\frac{5}{8} + \frac{3}{8} = 1; after a red, 47+37=1\frac{4}{7} + \frac{3}{7} = 1.

  2. Second-stage branches are conditional probabilities

    The branch to the second red after a first red is P(R2∣R1)=47P(R_2 \mid R_1) = \frac{4}{7}.

  3. Multiply along a path

    A path is "this, then that", so P(R1∩R2)=P(R1) P(R2∣R1)=58×47=2056P(R_1 \cap R_2) = P(R_1)\,P(R_2 \mid R_1) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56}. This is the multiplication rule.

  4. Add the paths that make up an event

    Different paths can't both happen, so they are mutually exclusive and their probabilities add.

  5. Check that all the path products add to 1

    2056+1556+1556+656=1\frac{20}{56} + \frac{15}{56} + \frac{15}{56} + \frac{6}{56} = 1

Multiplication rule, both ways round
P(A∩B)=P(A) P(B∣A)=P(B) P(A∣B)P(A \cap B) = P(A)\,P(B \mid A) = P(B)\,P(A \mid B)

Using the tree, find the probability that both snakes are green.

Reads asYour answer shows here as maths.

Worked example

Two draws without replacement

  • Simple familiar
  • Technology free

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.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Draw the tree, changing the second-stage probabilities after each draw.

  2. Multiply along each path you need.

  3. Add the paths that make up the event.

Watch out for

  • Using 58×58\frac{5}{8} \times \frac{5}{8}, as if the first snake were put back.

  • Adding 58+47\frac{5}{8} + \frac{4}{7} 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:

P(R2∣R1)=P(R2∣G1)=58.P(R_2 \mid R_1) = P(R_2 \mid G_1) = \frac{5}{8}.

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:

P(R2∣R1)=47,P(R2∣G1)=57.P(R_2 \mid R_1) = \frac{4}{7}, \quad P(R_2 \mid G_1) = \frac{5}{7}.

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.

Reads asYour answer shows here as maths.

Sometimes the tree gives you P(B∣A)P(B \mid A) but the question asks for P(A∣B)P(A \mid B), the condition the other way round. Go back to the definition:

P(A∣B)=P(A∩B)P(B).P(A \mid B) = \frac{P(A \cap B)}{P(B)}.

The numerator is one path. The denominator, P(B)P(B), is the sum of every path that ends in BB.

Worked example

Rain and a late bus

  • Complex familiar
  • Technology free

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.

6 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Put the unconditional probabilities on the first stage and the conditional ones on the second.

  2. Multiply along paths; add the paths that end in the given event to get its probability.

  3. Reverse with P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}.

Watch out for

  • Answering 0.4: that is P(L∣R)P(L \mid R), not P(R∣L)P(R \mid L).

  • Dividing by 0.3 instead of P(L)=0.19P(L) = 0.19.

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.

Reads asYour answer shows here as maths.

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 0.3×0.4=0.120.3 \times 0.4 = 0.12. If the tree is right and the arithmetic slips, you still earn the method marks.

Summary

  • Multiply along a path: P(A∩B)=P(A) P(B∣A)P(A \cap B) = P(A)\,P(B \mid A).

  • 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, P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}, where P(B)P(B) is the sum of the paths ending in BB.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 5 of 80% read

Save your progress with a free account