mastree

Probability trees: 7 exam questions solved step by step

What this lesson covers

  • Each branch of a tree carries a probability conditional on the branches before it.
  • Working backwards through a tree finds the probability of an earlier event given a later one.
Key idea

Probability trees

  1. Draw the tree from the words, first event first.
  2. Along a path: multiply.
  3. Across paths: add.
  4. Working backwards: that path ÷ the total.
Your turn

Question 1 · Achieved, in context

  • Ferry: wind warning on 30% of days.
  • Warning: late 60%. No warning: late 10%.
  • Draw the tree. Find P(warning and late).
Worked example

Q1: build the tree

  • First: wind 0.3, calm 0.7.
  • After wind: late 0.6, on time 0.4.
  • After calm: late 0.1, on time 0.9.
Q1: build the tree
Worked example

Q1: P(warning and late)

  • Follow one path.
  • Multiply along it.
  1. W: warning, L: late
  2. P(W and L) = P(W) × P(L | W)
  3. = 0.3 × 0.6multiply along
  4. = 0.18
Key idea

Try it: multiply along the branches

Your turn

Question 2 · Achieved

  • Same ferry tree.
  • Find P(the ferry is late).
Question 2 · Achieved
Worked example

Q2: P(late)

  • Two paths end in late.
  • Add across them.
  1. P(W and L) = 0.3 × 0.6 = 0.18
  2. P(not W and L) = 0.7 × 0.1 = 0.07
  3. P(L) = 0.18 + 0.07add across
  4. = 0.25
  5. 0.12 + 0.63 = 0.75 = 1 − 0.25
Your turn

Question 3 · Merit

  • Same ferry tree.
  • The ferry is late today.
  • Find P(there was a warning).
Question 3 · Merit
Worked example

Q3: P(W | L)

  • Given late: late paths only.
  • Path ÷ reduced total.
  1. P(W | L) = P(W and L) ÷ P(L)
  2. = 0.18 ÷ 0.25reduced total: P(L)
  3. = 0.72
  4. P(L | W) = 0.6forwards, not backwards
  5. 72% of late days had a warning
Key idea

Try it: turn it around

Your turn

Question 4 · Merit, in context

  • Kiwifruit from orchards A 50%,
  • B 30% and C 20%.
  • Rejected: A 4%, B 6%, C 10%.
  • Find P(a kiwifruit is rejected).
Worked example

Q4: three first branches

  • First: A 0.5, B 0.3, C 0.2.
  • Then reject or OK: each pair adds to 1.
Q4: three first branches
Worked example

Q4: P(rejected)

  • Three paths end in reject.
  • Multiply along, add across.
  1. A, R: 0.5 × 0.04 = 0.02
  2. B, R: 0.3 × 0.06 = 0.018
  3. C, R: 0.2 × 0.1 = 0.02
  4. P(R) = 0.02 + 0.018 + 0.02add across
  5. = 0.058
  6. about 5.8% of fruit is rejected
Your turn

Question 5 · Merit, in context

  • Same kiwifruit tree.
  • A kiwifruit is rejected.
  • Find P(it came from orchard C).
  • Compare with C's 20% share.
Question 5 · Merit, in context
Worked example

Q5: P(C | R)

  • Reduced total: P(R).
  • Answer in words.
  1. P(C | R) = P(C and R) ÷ P(R)
  2. = 0.02 ÷ 0.058P(R) from question 4
  3. = 0.344827…calculator
  4. = 0.34484 d.p.
  5. C: 20% of fruit, 34% of rejects
Your turn

Question 6 · Excellence

  • Sausage sizzle: P(buys a sausage) = p.
  • Drink: 40% of sausage buyers, 10% of others.
  • 28% buy a drink. Find p,
  • Then P(sausage | drink).
Worked example

Q6: a tree with an unknown

  • First: sausage p, none 1 − p.
  • Then drink or no drink.
Q6: a tree with an unknown
Worked example

Q6: form the equation

  • Two paths end in a drink.
  • Together they are 0.28.
  1. P(S) = p, P(not S) = 1 − pbranches add to 1
  2. P(S and D) = 0.4pmultiply along
  3. P(not S and D) = 0.1(1 − p)multiply along
  4. 0.4p + 0.1(1 − p) = 0.28add across: P(D)
  5. 0.4p + 0.1 − 0.1p = 0.28expand
  6. 0.3p + 0.1 = 0.28collect p terms
Worked example

Q6: solve, then go backwards

  • Check p in the equation.
  • Then path ÷ total.
  1. 0.3p + 0.1 = 0.28
  2. 0.3p = 0.18subtract 0.1
  3. p = 0.18 ÷ 0.3 = 0.6divide by 0.3
  4. check: 0.4 × 0.6 + 0.1 × 0.4
  5. = 0.24 + 0.04 = 0.28
  6. P(S | D) = 0.24 ÷ 0.28path ÷ total
  7. = 0.857142…calculator
  8. = 0.85714 d.p.
Your turn

Question 7 · Excellence, in context

  • Two Auckland buses to school.
  • Each is late with probability p,
  • Independently.
  • P(at least one late) = 0.36. Find p.
Worked example

Q7: p on every branch

  • Late p, on time 1 − p.
  • The same at both stages.
Q7: p on every branch
Worked example

Q7: use the complement

  • At least one = 1 − none.
  • A probability is 0 to 1.
  1. P(neither late) = (1 − p)²on time × on time
  2. (1 − p)² = 1 − 0.36 = 0.64complement
  3. 1 − p = 0.8 or 1 − p = −0.8
  4. p = 0.2
  5. p = 1.8a probability is ≤ 1
  6. check: 1 − 0.8² = 1 − 0.64 = 0.36
  7. each bus is late 20% of the time
Key idea

Try it: three tree traps

Common mistakes

  • The ferry is late, so P(warning) = P(late | warning) = 0.6.
    Going backwards divides the path by the reduced total: P(W | L) = 0.18 ÷ 0.25 = 0.72.
  • P(late) = 0.6 + 0.1 = 0.7
    Multiply along each path first, then add across: 0.3 × 0.6 + 0.7 × 0.1 = 0.25.
  • P(no sausage and drink) = 0.1p
    The no-sausage branch is 1 − p, because each set of branches adds to 1, so that path is 0.1(1 − p).
  • (1 − p)² = 0.64, so p = 0.2 or p = 1.8.
    Reject p = 1.8 and say why: a probability cannot be more than 1, so p = 0.2.
Summary

The method that solved all seven

  • Along, multiply. Across, add. Backwards, divide.
StepHow
Drawfirst event, then conditional
Each setof branches adds to 1
Alongmultiply
Acrossadd the paths
Backwardspath ÷ the reduced total
Unknownform an equation, then check

Challenge

1

A tray of 12 eggs has 3 cracked ones. Three eggs are taken out one at a time, without replacement. First show that P(the third egg is cracked) = 14. Then, given that the third egg is cracked, find P(at least one of the first two eggs was cracked).

Hint

Draw a three-stage tree; the branch probabilities change after each egg. For the second part, go backwards: the path where the first two are fine and the third is cracked, divided by P(third cracked).

Answer

P(third cracked) = 14. Given the third is cracked, P(at least one of the first two cracked) = 1955 ≈ 0.3455.

Step by step
  1. There are four paths that end with a cracked third egg: CC, CF, FC and FF for the first two eggs.
  2. Multiply along each path and add: the total is 3301320 = 14, the same as for the first egg.
  3. The path 'fine, fine, cracked' is 912 × 811 × 310 = 2161320.
  4. Backwards: P(first two fine given third cracked) = 216 ÷ 330 = 3655.
  5. At least one cracked is the complement: 1 − 3655 = 1955.
Full working
  1. C C C: 312 × 211 × 110 = 61320multiply along
  2. C F C: 312 × 911 × 210 = 541320
  3. F C C: 912 × 311 × 210 = 541320
  4. F F C: 912 × 811 × 310 = 2161320
  5. P(third C) = (6 + 54 + 54 + 216) ÷ 1320 = 3301320 = 14add across
  6. P(first two fine given third C) = 216 ÷ 330 = 3655path ÷ reduced total
  7. P(at least one cracked given third C) = 1 − 3655 = 1955 ≈ 0.3455
2

A soil test for kauri dieback is used in a Northland forest where 2% of sites are infected. The test is positive at 95% of infected sites and at 8% of clean sites. A site tests positive: find P(it is infected). The site is then tested a second time, and the two results are independent for a given site. It is positive again: now find P(it is infected).

Hint

One positive: a two-stage tree, then path ÷ total. Two positives: make each path three stages long (infected or not, then test 1, then test 2) and only keep the paths with two positives.

Answer

After one positive, P(infected) ≈ 0.1951. After two positives, P(infected) ≈ 0.7421.

Step by step
  1. Most sites are clean, so even a small false-positive rate gives many positives from clean sites.
  2. One positive: 0.02 × 0.95 = 0.019 infected, 0.98 × 0.08 = 0.0784 clean, total 0.0974.
  3. P(infected | positive) = 0.019 ÷ 0.0974 ≈ 0.1951: only about 1 in 5.
  4. Two positives: infected 0.02 × 0.95 × 0.95 = 0.01805, clean 0.98 × 0.08 × 0.08 = 0.006272.
  5. P(infected | two positives) = 0.01805 ÷ 0.024322 ≈ 0.7421. The second test makes a big difference.
Full working
  1. P(I and +) = 0.02 × 0.95 = 0.019multiply along
  2. P(clean and +) = 0.98 × 0.08 = 0.0784
  3. P(+) = 0.019 + 0.0784 = 0.0974add across
  4. P(I given +) = 0.019 ÷ 0.0974 = 0.1951path ÷ total
  5. P(I and + +) = 0.02 × 0.95² = 0.01805; P(clean and + +) = 0.98 × 0.08² = 0.006272three stages
  6. P(+ +) = 0.01805 + 0.006272 = 0.024322add across
  7. P(I given + +) = 0.01805 ÷ 0.024322 = 0.7421
3

A jar holds 10 lollies: some are pineapple lumps and the rest are jaffas, with more pineapple lumps than jaffas. Two lollies are taken without replacement. The chance that they are the same kind is 715. How many pineapple lumps are in the jar? Given that the two lollies match, find P(both are pineapple lumps).

Hint

Call the number of pineapple lumps r, so there are 10 − r jaffas. Write P(same) from the two 'same' paths of the tree, set it equal to 715 and solve the quadratic. One root breaks a condition in the question.

Answer

6 pineapple lumps. Given the two match, P(both pineapple lumps) = 57 ≈ 0.7143.

Step by step
  1. Both pineapple: r10 × r − 19. Both jaffa: 10 − r10 × 9 − r9.
  2. Add them and set equal to 715, which is 4290.
  3. This simplifies to r² − 10r + 24 = 0, so r = 4 or r = 6.
  4. There are more pineapple lumps than jaffas, so r = 6 (r = 4 is the jar the other way round).
  5. Backwards: P(both P) = 3090, P(same) = 4290, so the answer is 3042 = 57.
Full working
  1. P(same) = r(r − 1) ÷ 90 + (10 − r)(9 − r) ÷ 90two paths
  2. r² − r + 90 − 19r + r² = 42× 90, as 715 = 4290
  3. 2r² − 20r + 48 = 0, so r² − 10r + 24 = 0collect
  4. (r − 4)(r − 6) = 0, r = 4 or 6factorise
  5. r = 6more pineapple lumps than jaffas
  6. check: (6 × 5 + 4 × 3) ÷ 90 = 4290 = 715
  7. 6 pineapple lumps; P(both P given same) = 3042 = 57 ≈ 0.7143

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91267