Study Blocks

World map › Bivariate data & probability › Lesson 3

Tree diagrams: one stage at a time

⏱ about 50 min · MYP criteria A, B, C, D

By the end of this lesson you can…
🌍 The big question

Sofia cycles to school. On the way she passes two sets of traffic lights. Over many mornings she has noticed that the first light is green about 6 times in 10 when she reaches it, and the second about 3 times in 10. (These are illustrative numbers.)

The two lights work separately: what happens at the first does not change the second.

How likely is it that she gets green at both lights? Guess first. Is it about 0.90.9, about 0.450.45, about 0.180.18, or something else? What would you do with 0.60.6 and 0.30.3?

The first light can be green or red, and so can the second: four possible journeys. But they are not equally likely, so counting them will not work. We need a picture that keeps track of the chances one stage at a time.

🧪 Explore — try it, no scoring

Try these first. Nothing is marked: just have a go.

no hints, nothing is marked

Two fair spinners each have 44 equal sections. On each spinner, one of the sections has a star. Both spinners are spun.

What fraction of the time would you expect both spinners to land on their star? Give a fraction.

no hints, nothing is marked

A bag has 33 yellow and 44 white counters. You take one counter without looking and keep it. Then you take a second counter.

What fraction of the time would you expect both counters to be yellow? Give a fraction.

no hints, nothing is marked

A fair coin is tossed three times.

What fraction of the time would you expect to get at least one head? Give a fraction.

Now explore with the widget below.

  1. Start with Two traffic lights at 0.60.6 and 0.30.3. Look at the path GG (green, then green). Where does its number come from? Look at its rectangle in the square on the right: what fraction of the square is it?
  2. Tap the other paths. Add all four numbers. Change the lights and add them again. What do you always get?
  3. Choose GR and RG together. What does the readout mean in words?
  4. Switch to Bag of counters (33 orange and 44 blue). Press Keep the 1st counter out, then Put the 1st counter back. Which branch numbers change, and why? Watch what happens to the strips in the square.
  5. Set the bag to 11 orange counter and keep the first counter out. What is the chance of OO? Why?
🎯 Predict first

In the bag of 33 orange and 44 blue counters, two counters are taken. Is the chance that both are orange bigger when the first counter is put back, or when it is kept out?

Light 1 green:0.6
Light 2 green:0.3

G = green, R = red. Illustrative numbers.

light 1light 2
0.60.6
0.40.4
0.30.3
0.70.7
0.30.3
0.70.7
GRG
✓ GG: 0.180.18
R
GR: 0.420.42
G
RG: 0.120.12
R
RR: 0.280.28
GGGRRGRRGR
GG: 0.6×0.3=0.180.6 \times 0.3 = 0.18
GR: 0.6×0.7=0.420.6 \times 0.7 = 0.42
RG: 0.4×0.3=0.120.4 \times 0.3 = 0.12
RR: 0.4×0.7=0.280.4 \times 0.7 = 0.28
All four paths: 0.18+0.42+0.12+0.28=10.18 + 0.42 + 0.12 + 0.28 = 1
Chosen paths (GG): 0.180.18
🔎 What do you notice?
  • Each path’s number is the two branch numbers multiplied: GG is 0.6×0.3=0.180.6 \times 0.3 = 0.18. In the square, GG is a strip 0.60.6 wide, and inside it a part 0.30.3 of the way down: its area is 0.30.3 of 0.60.6, which is 0.180.18. So Sofia gets two greens on about 1818 mornings in 100100.
  • The four paths always add up to 11: 0.18+0.42+0.12+0.28=10.18 + 0.42 + 0.12 + 0.28 = 1. Together they fill the whole square: every journey is exactly one of the four.
  • GR and RG together (0.42+0.12=0.540.42 + 0.12 = 0.54) is “exactly one green”. When we want one path or another, we add them.
  • Try-first 1: the two star sections give 14×14=116\frac{1}{4} \times \frac{1}{4} = \frac{1}{16}: a quarter of a quarter. Adding (14+14=12\frac{1}{4} + \frac{1}{4} = \frac{1}{2}) would say “both stars” happens half the time, which is far too often.
  • Try-first 2: that is the bag in the widget with yellow as orange. When the first counter is kept out, the second branch changes from 37\frac{3}{7} to 26\frac{2}{6}: one orange fewer, and one counter fewer. Both orange: 37×26=642=17\frac{3}{7} \times \frac{2}{6} = \frac{6}{42} = \frac{1}{7}.
  • Try-first 3: three coins have 88 paths, and only TTT has no head. So “at least one head” is every path except TTT: 1−18=781 - \frac{1}{8} = \frac{7}{8}.
📐 Key idea

Tree diagrams

A tree diagram shows an experiment in stages. Each stage branches into its possible outcomes, and each branch is labelled with its probability. The branches from any one point add up to 11.

  • Multiply along a path to find the probability of one outcome and then another: P(A and then B)=P(A)×P(B after A)P(A \text{ and then } B) = P(A) \times P(B \text{ after } A)
  • Add the paths you want when you want one path or another.
  • All the paths of a tree add up to 11.

Two events are independent when one happening does not change the probability of the other, like the two traffic lights or two rolls of a die. Then the second-stage branches are the same on every part of the tree: P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B).

When you take items without replacement (you do not put the first one back), the second pick is not independent of the first: there is one item fewer, so the denominators go down by 11, and the numerator goes down too if the same kind was taken.

🔍 Why it works

Why multiply along a path? A fraction of a fraction. Picture the square in the widget as all the mornings, area 11. The first light is green on 0.60.6 of them: a strip 0.60.6 wide. On those green-light mornings, the second light is green 0.30.3 of the time: that is 0.30.3 of the strip, a rectangle 0.60.6 wide and 0.30.3 high. Its area is 0.6×0.3=0.180.6 \times 0.3 = 0.18. “Of” a fraction means multiply, just as 13\frac{1}{3} of 12\frac{1}{2} a pizza is 13×12=16\frac{1}{3} \times \frac{1}{2} = \frac{1}{6} of it.

Why add different paths? Different paths are different rectangles that do not overlap (no morning can be both GR and RG). The area of two separate rectangles is the sum of their areas.

Why do all the paths add up to 1? The rectangles fill the whole square with no gaps and no overlaps, and the whole square has area 11.

⚠️ Watch out
  • Do not add along a path. 0.6+0.3=0.90.6 + 0.3 = 0.9 would say two greens are more likely than a green at the first light alone (0.60.6): impossible. “And then” multiplies, which makes the answer smaller.
  • Without replacement, change the second stage. With 33 orange and 44 blue, after an orange is taken out there are 22 orange among 66. Check that each set of branches still adds to 11: 26+46=1\frac{2}{6} + \frac{4}{6} = 1 ✓.
  • “At least one” = 1−P(none)1 - P(\text{none}). “At least one” includes many paths; “none” is just one path. Do not add 12+12+12\frac{1}{2} + \frac{1}{2} + \frac{1}{2} for three coins: that gives 32\frac{3}{2}, more than 11.
  • Independent is an assumption. Real traffic lights on one street can be timed to work together, so check whether the stages really do not affect each other before you multiply the plain probabilities.
🧱 Worked example

Back to the traffic lights

Step 1: Draw the tree

Light 1: G with 0.60.6, R with 0.40.4. Light 2 (the same on both branches, because the lights are independent): G with 0.30.3, R with 0.70.7.

Step 2: Multiply along each path

GG: 0.6×0.3=0.180.6 \times 0.3 = 0.18. GR: 0.6×0.7=0.420.6 \times 0.7 = 0.42. RG: 0.4×0.3=0.120.4 \times 0.3 = 0.12. RR: 0.4×0.7=0.280.4 \times 0.7 = 0.28.

Step 3: Answer the question

P(green at both)=0.18P(\text{green at both}) = 0.18. Exactly one green: add GR and RG, 0.42+0.12=0.540.42 + 0.12 = 0.54.

Step 4: Is it sensible?

Check: 0.18+0.42+0.12+0.28=1.000.18 + 0.42 + 0.12 + 0.28 = 1.00 ✓. And 0.180.18 is smaller than both 0.60.6 and 0.30.3, as it must be: needing both lights to be green is harder than needing either one. Over 100100 mornings, Sofia would expect two greens on about 0.18×100=180.18 \times 100 = 18 of them, if the illustrative numbers are right and the lights really are independent.

🧱 Worked example

Two ways to find P(at least one green)

Way 1: Add the paths with a green

GG, GR and RG all have at least one green: 0.18+0.42+0.12=0.720.18 + 0.42 + 0.12 = 0.72

Way 2: Use the complement

“At least one green” is everything except RR (no green at all): 1−0.4×0.7=1−0.28=0.721 - 0.4 \times 0.7 = 1 - 0.28 = 0.72

Which is neater?

Both give 0.720.72. Way 2 needs one path instead of three. With three lights, “at least one green” would cover 77 of the 88 paths, and Way 2 would still need just one: 1−P(RRR)1 - P(\text{RRR}). The more stages there are, the better the complement is.

Foundation

The probability that a seed from a packet sprouts is 0.80.8. Two seeds are planted, and they sprout (or not) independently. Find the probability that both sprout.

IB Standard

A box has 1010 pens and 33 of them do not work. You take two pens without replacement. Find the probability that both pens work. Give a fraction.

🤔 Pause and think

A raffle draws a first prize and then a second prize from the same drum, without putting the first ticket back. You hold one ticket out of 100100. Is your chance of winning the second prize 1100\frac{1}{100}, 199\frac{1}{99}, or something else? Draw a tree with two stages: “your ticket drawn first” or “not”, then “your ticket drawn second” or “not”. (One of the practice questions comes back to this.)

⛏ Practice — choose your level

Two fair coins are tossed. Use a tree diagram to find the probability of two tails. Give a fraction.

🏗 Build project — real-life task

The lucky-dip stall

At the school fair, a lucky-dip stall has a bag with 4 gold and 6 silver tokens. A player pays, then takes two tokens without looking, one after the other, without putting the first one back. If both tokens are gold, the player wins a prize. (The numbers are illustrative.)

The stall team wants to know how often players will win, and whether the stall will raise money. Answer the questions in order, and check each answer against common sense.

IB StandardCriterion D

The bag has 44 gold and 66 silver tokens, and a player takes two without replacement. What is the probability that a player wins (both tokens gold)? Give a fraction.

IB StandardCriterion D

The team thinks about giving a small sweet to every player who gets at least one gold token. What is the probability that a player gets at least one gold token? Give a fraction.

IB StandardCriterion D

The team expects about 150150 players during the fair. About how many of them should they expect to win a prize?

players
ExtensionCriterion D

Each go costs $1 and each prize costs the team $5 (illustrative prices). One team member suggests: "Let's put the first token back before the second pick. It's fairer to the players."

Compare the two versions for 150150 players: the chance of winning, the expected number of winners, and the money the stall expects to raise. Which version would you choose, and why? State any assumptions you make.

📓 Work it out in your notebook first — sketch, calculate, then write your answer here in full sentences. A model answer appears after you submit, so you can compare.

🔗 Connections

Tree diagrams turn “and” into multiplying and “or” into adding, and they are how doctors, engineers and insurers think about risks that come in stages. So far you have worked out how likely things are before they happen. Next lesson turns to data that has already been collected: how to sum up a list of numbers with one “typical” value, and why one extreme value can make the mean misleading. That is “Averages and outliers”.

🪞 Reflect

Explain with the square picture why we multiply along a branch. Use your own numbers.

Describe a real situation where the second stage depends on the first. How would the tree change?