Skip to the page
Home Campus
Start free

Tree Diagrams

Drawing a tree diagram for an experiment in two or three stages, with the probability on each branch: multiplying along a path, adding the paths that give an event, and checking that the ends add up to 1.

What You Should Already Know

  • From lesson 2.1: a possibility diagram shows the outcomes of two stages in a grid, and when the cells are equally likely, P(E)=number of cells in Etotal number of cells.P(E) = \dfrac{\text{number of cells in } E}{\text{total number of cells}}\text{.} Two fair coins give the 4 cells HH, HT, TH and TT, so P(exactly one head)=24=12.P(\text{exactly one head}) = \frac{2}{4} = \frac{1}{2}\text{.}
  • From Secondary 2: when the outcomes are not equally likely, as on a spinner with unequal sectors, the probability of a sector is its angle ÷360∘\div 360^\circ. A sector of 90∘90^\circ has probability 90360=14\frac{90}{360} = \frac{1}{4}. The probabilities of all the outcomes of an experiment add up to 1.

Drawing a Tree Diagram

A possibility diagram has two stages and needs equally likely cells. A tree diagram shows the stages one after another, so it works for three stages or more, and its branches carry the probabilities, so it works when the outcomes are not equally likely.

Tree diagram

A tree diagram shows an experiment stage by stage, from left to right. From the starting point a branch is drawn for each outcome of the first stage; from the end of each of these, a branch for each outcome of the second stage; and so on.

Each branch shows one outcome of its stage, with its probability written on it. The probabilities on the branches from any one point add up to 1.

Each complete path, from the start to an end, gives one outcome of the whole experiment.

Example 1: A coin tossed twice

A fair coin is tossed twice. Draw a tree diagram to show the possible outcomes.

Solution

The first toss gives H or T, each with probability 12\frac{1}{2}: two branches from the start.

Whatever the first toss gave, the second toss gives H or T, each with probability 12\frac{1}{2}: two branches from the end of each first branch.

A tree diagram for tossing a fair coin twice: H or T, each with probability 1/2, at the first toss, and again at the second toss from each; four outcomes HH, HT, TH and TT121212121212HHTTHTHHHTTHTT1st toss2nd tossOutcome

Check: the two branches from each point carry 12+12=1\frac{1}{2} + \frac{1}{2} = 1.

There are 4 paths, so 4 outcomes: HH, HT, TH and TT, the same as the 4 cells of the possibility diagram.

The tree has 2 branches for the first toss and 2 from the end of each, giving the 4 outcomes HH, HT, TH and TT.

Multiplying Along a Path, Adding the Paths

Toss a fair coin twice, and do it many times over. In about 12\frac{1}{2} of the trials the first toss is a head, and in about 12\frac{1}{2} of those the second toss is a head as well. So HH happens in about 12\frac{1}{2} of 12\frac{1}{2} of the trials: 12×12=14\frac{1}{2} \times \frac{1}{2} = \frac{1}{4}. The possibility diagram agrees: HH is 1 cell of 4.

Each time the experiment is done, exactly one path happens: the outcome cannot be HT and TH at the same time. So the probability of an event made of several paths is the sum of the paths' probabilities.

Using a tree diagram

Multiply the probabilities along a path to find the probability of the outcome at its end.

Different paths cannot happen together, so add the end probabilities of all the paths that give the event.

Check: the probabilities at the ends of all the paths add up to 1.

The probability on a branch after the first stage is the probability of that outcome once the earlier stages have given the outcomes before it on the path. In this lesson no stage changes the next, so the same probabilities repeat at every stage; lesson 2.5 shows branches that change.

Example 2: Exactly one head

A fair coin is tossed twice. Use a tree diagram to find the probability of getting (a) two heads; (b) exactly one head; (c) the same face both times.

Solution

Multiply along each path and write the product at its end.

A tree diagram for tossing a fair coin twice, with the probability of each outcome worked out at the end of its path, 1/4 each; the paths HT and TH drawn in amber121212121212HHTTHTHH12×12=14HT12×12=14TH12×12=14TT12×12=141st toss2nd tossOutcomeProbability

(a) Two heads is the path HH: P(HH)=12×12=14.P(HH) = \frac{1}{2} \times \frac{1}{2} = \frac{1}{4}\text{.}

(b) Exactly one head comes from two paths, HT and TH, drawn in amber. Each has probability 14\frac{1}{4}, and they cannot both happen, so add:

P(exactly one head)=14+14=12.P(\text{exactly one head}) = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}\text{.}

(c) The same face both times: HH or TT. P=14+14=12.P = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}\text{.}

Check: 14+14+14+14=1.\frac{1}{4} + \frac{1}{4} + \frac{1}{4} + \frac{1}{4} = 1\text{.}

(a) 14\frac{1}{4}; (b) 12\frac{1}{2}; (c) 12\frac{1}{2}.

Three Stages

A possibility diagram has room for only two stages. A tree simply grows another set of branches: from the end of every second-stage branch, a branch for each outcome of the third stage.

Example 3: Three coins

Three fair coins are tossed. (a) Draw a tree diagram and list the outcomes. Find the probability of getting (b) exactly two heads; (c) three heads.

Solution

(a) Each coin gives H or T with probability 12\frac{1}{2}, so every branch carries 12\frac{1}{2}.

A tree diagram for tossing three fair coins: H or T, each 1/2, at each of the three stages; eight outcomes from HHH to TTT, each with probability 1/8; the paths HHT, HTH and THH drawn in amber1212121212121212121212121212HHHTTHTTHHTTHTHHH18HHT18HTH18HTT18THH18THT18TTH18TTT181st coin2nd coin3rd coinOutcomeProbability

The 8 outcomes are HHH, HHT, HTH, HTT, THH, THT, TTH and TTT. Each has probability 12×12×12=18,\frac{1}{2} \times \frac{1}{2} \times \frac{1}{2} = \frac{1}{8}\text{,} and 8×18=18 \times \frac{1}{8} = 1.

(b) Exactly two heads: HHT, HTH and THH, the three amber paths.

P(exactly two heads)=18+18+18=38.P(\text{exactly two heads}) = \frac{1}{8} + \frac{1}{8} + \frac{1}{8} = \frac{3}{8}\text{.}

(c) Three heads: the path HHH only. P(HHH)=18P(HHH) = \frac{1}{8}.

(b) 38\frac{3}{8}; (c) 18\frac{1}{8}.

When the Outcomes Are Not Equally Likely

When the branches carry different probabilities, the paths are not equally likely, and counting paths gives a wrong answer. Multiply along each path and add, as before: the tree handles unequal outcomes with no extra work.

Example 4: A spinner with unequal sectors

The spinner below has a red sector of 120∘120^\circ and a blue sector of 240∘240^\circ. It is spun twice. (a) Draw a tree diagram. Find the probability that (b) both spins give red; (c) one spin gives red and the other blue.

A spinner with a red sector of 120 degrees and a blue sector of 240 degrees120°Red240°Blue

Solution

(a) P(red)=120360=13P(\text{red}) = \frac{120}{360} = \frac{1}{3} and P(blue)=240360=23;P(\text{blue}) = \frac{240}{360} = \frac{2}{3}\text{;} check: 13+23=1\frac{1}{3} + \frac{2}{3} = 1. The same probabilities go on the branches of both spins.

A tree diagram for spinning the spinner twice: red R with probability 1/3 and blue B with probability 2/3 at each spin, with each outcome's probability worked out at its end; the paths RB and BR drawn in amber131323231323RRBBRBRR13×13=19RB13×23=29BR23×13=29BB23×23=491st spin2nd spinOutcomeProbability

(b) P(RR)=13×13=19.P(RR) = \frac{1}{3} \times \frac{1}{3} = \frac{1}{9}\text{.}

(c) One red and one blue: RB or BR.

P=29+29=49.P = \frac{2}{9} + \frac{2}{9} = \frac{4}{9}\text{.}

Check: 19+29+29+49=99=1.\frac{1}{9} + \frac{2}{9} + \frac{2}{9} + \frac{4}{9} = \frac{9}{9} = 1\text{.}

The 4 paths are not equally likely, so P(RR)P(RR) is not 14\frac{1}{4}. Lesson 2.1's way agrees with the tree: split blue into two sectors of 120∘120^\circ, and the 3 equal sectors give 3×3=93 \times 3 = 9 equally likely cells, 1 of them red twice.

(b) 19\frac{1}{9}; (c) 49\frac{4}{9}.

Example 5: Probabilities as decimals

The probability that a seed of a certain plant grows is 0.8. Two seeds are planted, and whether one grows does not affect the other. Find the probability that (a) both seeds grow; (b) exactly one seed grows.

Solution

Let G stand for "grows" and N for "does not grow". P(N)=1−0.8=0.2.P(N) = 1 - 0.8 = 0.2\text{.}

A tree diagram for two seeds: grows G with probability 0.8 and does not grow N with probability 0.2 for each seed, with each outcome's probability worked out at its end0.80.80.20.20.80.2GGNNGNGG0.8×0.8=0.64GN0.8×0.2=0.16NG0.2×0.8=0.16NN0.2×0.2=0.041st seed2nd seedOutcomeProbability

(a) P(GG)=0.8×0.8=0.64.P(GG) = 0.8 \times 0.8 = 0.64\text{.}

(b) Exactly one grows: GN or NG. P=0.8×0.2+0.2×0.8=0.16+0.16=0.32.P = 0.8 \times 0.2 + 0.2 \times 0.8 = 0.16 + 0.16 = 0.32\text{.}

Check: 0.64+0.16+0.16+0.04=1.0.64 + 0.16 + 0.16 + 0.04 = 1\text{.}

(a) 0.64; (b) 0.32.

Example 6: Three stages with unequal branches

Nurul scores with a shot at goal in netball practice with probability 0.7, and one shot does not affect another. She takes three shots. Find the probability that she scores (a) with all three shots; (b) with exactly two of the shots.

Solution

Let S stand for "scores" and M for "misses": P(S)=0.7P(S) = 0.7 and P(M)=1−0.7=0.3P(M) = 1 - 0.7 = 0.3 at every shot.

A tree diagram for three shots: scores S with probability 0.7 and misses M with probability 0.3 at each shot; eight outcomes with their probabilities; the paths SSM, SMS and MSS drawn in amber0.70.70.70.30.30.70.30.30.70.70.30.30.70.3SSSMMSMMSSMMSMSSS0.343SSM0.147SMS0.147SMM0.063MSS0.147MSM0.063MMS0.063MMM0.0271st shot2nd shot3rd shotOutcomeProbability

(a) P(SSS)=0.7×0.7×0.7=0.343.P(SSS) = 0.7 \times 0.7 \times 0.7 = 0.343\text{.}

(b) Exactly two scores: SSM, SMS or MSS, the amber paths. Each path has two 0.7s and one 0.3 in some order, so each has probability 0.7×0.7×0.3=0.147.0.7 \times 0.7 \times 0.3 = 0.147\text{.}

P(exactly two)=0.147+0.147+0.147=0.441.P(\text{exactly two}) = 0.147 + 0.147 + 0.147 = 0.441\text{.}

Check: the ends are 0.3430.343, three of 0.1470.147, three of 0.0630.063 and 0.0270.027, and 0.343+0.441+0.189+0.027=1.0.343 + 0.441 + 0.189 + 0.027 = 1\text{.}

(a) 0.343; (b) 0.441.

Why adding works here

The paths of a tree may be added because no two of them can happen together. Adding the probabilities of two events that can happen together gives a wrong answer: lesson 2.3 shows when "or" means add, and lesson 2.4 when "and" means multiply.

Common Mistakes

  • Adding along a path. For HH, 12+12=1\frac{1}{2} + \frac{1}{2} = 1 would make two heads certain; multiply along a path: 12×12=14\frac{1}{2} \times \frac{1}{2} = \frac{1}{4}.
  • Multiplying the paths of an event instead of adding them. Exactly one head is HT or TH: 14+14=12\frac{1}{4} + \frac{1}{4} = \frac{1}{2}, not 14×14\frac{1}{4} \times \frac{1}{4}.
  • Missing a path. Exactly one head comes from HT and from TH; exactly two heads in three tosses from HHT, HTH and THH.
  • Counting paths when the branches are unequal. With P(red)=13P(\text{red}) = \frac{1}{3}, P(RR)=19P(RR) = \frac{1}{9}, not 1 path out of 4.
  • Branches from one point that do not add up to 1. If P(scores)=0.7P(\text{scores}) = 0.7, the other branch is 0.30.3.

Practice

Try each question first, then open the solution to check your working.

Question 1

A fair coin is tossed and then a spinner with three equal sectors labelled A, B and C is spun. (a) Draw a tree diagram. Find the probability of getting (b) a head and A; (c) a tail and a letter other than C.

ShowHide solution

(a) Two branches for the coin, 12\frac{1}{2} each; from each, three branches for the spinner, 13\frac{1}{3} each.

A tree diagram for tossing a coin, H or T each 1/2, then spinning a spinner, A, B or C each 1/3; six outcomes; the paths TA and TB drawn in amber1213131312131313HABCTABCHA16HB16HC16TA16TB16TC16CoinSpinnerOutcomeProbability

(b) P(HA)=12×13=16.P(HA) = \frac{1}{2} \times \frac{1}{3} = \frac{1}{6}\text{.}

(c) A tail and A or B: the paths TA and TB. P=16+16=13.P = \frac{1}{6} + \frac{1}{6} = \frac{1}{3}\text{.}

(b) 16\frac{1}{6}; (c) 13\frac{1}{3}.

Question 2

A spinner lands on red with probability 0.4 and on blue otherwise. It is spun twice. Find the missing probabilities in the tree diagram below, then find the probability that the two spins give the same colour.

A tree diagram for spinning a spinner twice: red R with probability 0.4 and blue B at each spin, with every probability of B left blank0.40.40.4RRBBRBRRRBBRBB1st spin2nd spinOutcome
ShowHide solution

The branches from each point add up to 1, so every missing probability is P(B)=1−0.4=0.6,P(B) = 1 - 0.4 = 0.6\text{,} at the first spin and at the second.

The completed tree diagram: R 0.4 and B 0.6 at each spin, with each outcome's probability worked out at its end; the paths RR and BB drawn in amber0.40.40.60.60.40.6RRBBRBRR0.4×0.4=0.16RB0.4×0.6=0.24BR0.6×0.4=0.24BB0.6×0.6=0.361st spin2nd spinOutcomeProbability

The same colour: RR or BB. P=0.4×0.4+0.6×0.6=0.16+0.36=0.52.P = 0.4 \times 0.4 + 0.6 \times 0.6 = 0.16 + 0.36 = 0.52\text{.}

Each missing probability is 0.6; P(same colour)=0.52.P(\text{same colour}) = 0.52\text{.}

Question 3

Three fair coins are tossed. Find the probability that (a) all three coins show the same face; (b) exactly one coin shows a head; (c) the coins show a head, a tail and a head, in that order.

ShowHide solution

Use the tree of Example 3: 8 paths, each with probability 18\frac{1}{8}.

(a) HHH or TTT: 18+18=28=14.\frac{1}{8} + \frac{1}{8} = \frac{2}{8} = \frac{1}{4}\text{.}

(b) Exactly one head: HTT, THT or TTH. 18+18+18=38.\frac{1}{8} + \frac{1}{8} + \frac{1}{8} = \frac{3}{8}\text{.}

(c) The single path HTH: 12×12×12=18.\frac{1}{2} \times \frac{1}{2} \times \frac{1}{2} = \frac{1}{8}\text{.}

(a) 14\frac{1}{4}; (b) 38\frac{3}{8}; (c) 18\frac{1}{8}.

Question 4

A coin is biased so that the probability of a head is 23\frac{2}{3}. It is tossed twice. Draw a tree diagram and find the probability of getting (a) two heads; (b) exactly one head; (c) no heads. Check that your answers add up to 1.

ShowHide solution

P(T)=1−23=13P(T) = 1 - \frac{2}{3} = \frac{1}{3} at each toss.

A tree diagram for tossing a biased coin twice: head H with probability 2/3 and tail T with probability 1/3 at each toss, with each outcome's probability worked out at its end232313132313HHTTHTHH23×23=49HT23×13=29TH13×23=29TT13×13=191st toss2nd tossOutcomeProbability

(a) P(HH)=23×23=49.P(HH) = \frac{2}{3} \times \frac{2}{3} = \frac{4}{9}\text{.}

(b) HT or TH: 29+29=49\frac{2}{9} + \frac{2}{9} = \frac{4}{9}.

(c) P(TT)=13×13=19.P(TT) = \frac{1}{3} \times \frac{1}{3} = \frac{1}{9}\text{.}

Check: 49+49+19=1.\frac{4}{9} + \frac{4}{9} + \frac{1}{9} = 1\text{.}

(a) 49\frac{4}{9}; (b) 49\frac{4}{9}; (c) 19\frac{1}{9}.

Question 5

On her way to school, Priya passes two sets of traffic lights. At each set the probability that the light is green when she arrives is 0.3, and one set does not affect the other. Find the probability that the light is green (a) at both sets; (b) at exactly one set; (c) at neither set.

ShowHide solution

Let G stand for green and N for not green: P(G)=0.3P(G) = 0.3, P(N)=0.7P(N) = 0.7 at each set.

(a) P(GG)=0.3×0.3=0.09.P(GG) = 0.3 \times 0.3 = 0.09\text{.}

(b) GN or NG: 0.3×0.7+0.7×0.3=0.21+0.21=0.42.0.3 \times 0.7 + 0.7 \times 0.3 = 0.21 + 0.21 = 0.42\text{.}

(c) P(NN)=0.7×0.7=0.49.P(NN) = 0.7 \times 0.7 = 0.49\text{.}

Check: 0.09+0.42+0.49=1.0.09 + 0.42 + 0.49 = 1\text{.}

(a) 0.09; (b) 0.42; (c) 0.49.

Question 6

Arif spins the spinner of Example 4 (red 13\frac{1}{3}, blue 23\frac{2}{3}) twice. He says: "There are four outcomes, RR, RB, BR and BB, so the probability of red twice is 14\frac{1}{4}." Explain his mistake and find the correct probability.

ShowHide solution

Dividing by the number of outcomes needs equally likely outcomes. The four paths are not equally likely: blue is twice as likely as red at each spin, so BB is far more likely than RR.

Multiply along the path: P(RR)=13×13=19.P(RR) = \frac{1}{3} \times \frac{1}{3} = \frac{1}{9}\text{.}

The four outcomes are not equally likely; P(RR)=19P(RR) = \frac{1}{9}.

Question 7

A quiz has two multiple-choice questions, each with four options of which one is correct. Ben does not know either answer and guesses each at random. Find the probability that he gets (a) both questions right; (b) exactly one question right.

ShowHide solution

At each question, P(right)=14P(\text{right}) = \frac{1}{4} and P(wrong)=34P(\text{wrong}) = \frac{3}{4}; one guess does not affect the other.

A tree diagram for guessing two questions: right with probability 1/4 and wrong with probability 3/4 at each question141434341434RightRightWrongWrongRightWrongRight, Right116Right, Wrong316Wrong, Right316Wrong, Wrong916Question 1Question 2OutcomeProbability

(a) 14×14=116.\frac{1}{4} \times \frac{1}{4} = \frac{1}{16}\text{.}

(b) Right then wrong, or wrong then right: 14×34+34×14=316+316=616=38.\frac{1}{4} \times \frac{3}{4} + \frac{3}{4} \times \frac{1}{4} = \frac{3}{16} + \frac{3}{16} = \frac{6}{16} = \frac{3}{8}\text{.}

(a) 116\frac{1}{16}; (b) 38\frac{3}{8}.

Question 8

Each school day the probability that Ravi's bus arrives on time is 0.9, and one day does not affect another. Find the probability that over three school days the bus arrives (a) on time on all three days; (b) late on exactly one day.

ShowHide solution

Let O stand for on time and L for late: P(O)=0.9P(O) = 0.9, P(L)=0.1P(L) = 0.1 each day. A tree has three stages and 8 paths.

(a) P(OOO)=0.9×0.9×0.9=0.729.P(OOO) = 0.9 \times 0.9 \times 0.9 = 0.729\text{.}

(b) Late on exactly one day: LOO, OLO or OOL. Each path has probability 0.1×0.9×0.9=0.081.0.1 \times 0.9 \times 0.9 = 0.081\text{.}

P=0.081+0.081+0.081=0.243.P = 0.081 + 0.081 + 0.081 = 0.243\text{.}

(a) 0.729; (b) 0.243.

Question 9

A fair coin is tossed and the spinner below is spun. Find the probability of getting (a) a head and a 1; (b) a tail and an odd number.

A spinner with a sector numbered 1 of 180 degrees, a sector numbered 2 of 120 degrees and a sector numbered 3 of 60 degrees180°1120°260°3
ShowHide solution

P(1)=180360=12,P(1) = \frac{180}{360} = \frac{1}{2}\text{,} P(2)=120360=13,P(2) = \frac{120}{360} = \frac{1}{3}\text{,} P(3)=60360=16;P(3) = \frac{60}{360} = \frac{1}{6}\text{;} check: 36+26+16=1.\frac{3}{6} + \frac{2}{6} + \frac{1}{6} = 1\text{.}

A tree diagram for tossing a coin, H or T each 1/2, then spinning the spinner: 1 with probability 1/2, 2 with 1/3 and 3 with 1/6; the paths T1 and T3 drawn in amber1212131612121316H123T123H114H216H3112T114T216T3112CoinSpinnerOutcomeProbability

(a) P(H1)=12×12=14.P(H1) = \frac{1}{2} \times \frac{1}{2} = \frac{1}{4}\text{.}

(b) A tail and 1 or 3: P(T1)+P(T3)=14+12×16=14+112=312+112=412=13.P(T1) + P(T3) = \frac{1}{4} + \frac{1}{2} \times \frac{1}{6} = \frac{1}{4} + \frac{1}{12} = \frac{3}{12} + \frac{1}{12} = \frac{4}{12} = \frac{1}{3}\text{.}

(a) 14\frac{1}{4}; (b) 13\frac{1}{3}.

Question 10

A biased coin is tossed twice. The probability of getting two heads is 0.49. Find (a) the probability of a head on one toss; (b) the probability of getting two tails.

ShowHide solution

Let P(H)=pP(H) = p at each toss. Along the path HH, p×p=0.49p \times p = 0.49, so p2=0.49p^2 = 0.49 and p=0.7p = 0.7 (a probability is not negative).

Then P(T)=1−0.7=0.3,P(T) = 1 - 0.7 = 0.3\text{,} and P(TT)=0.3×0.3=0.09.P(TT) = 0.3 \times 0.3 = 0.09\text{.}

(a) 0.7; (b) 0.09.

Key Points

  • A tree diagram shows an experiment stage by stage: a branch for each outcome of a stage, with its probability; each complete path is one outcome of the whole experiment.
  • The probabilities on the branches from any one point add up to 1.
  • Multiply along a path to find the probability of its outcome.
  • Only one path happens, so add the probabilities of all the paths that give an event.
  • The probabilities at the ends of all the paths add up to 1: use this as a check.
  • A tree works for three stages or more and for outcomes that are not equally likely; never count paths when the branches differ.

Previous lesson2.1 Possibility Diagrams Next lesson2.3 Mutually Exclusive Events

All Secondary 4 (Grade 10) lessons

Home Campus has lessons for Primary 3 to Secondary 4, and practice questions with worked solutions and worksheets for Primary 3 to Secondary 2. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 4 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.