AZTest
Probability study guide · step 3 of 6

Tree diagram probability problems: draws with and without replacement

When things happen one after another, a tree diagram keeps track. Multiply along a branch for the chance of that path; add the paths that give what you want. Reverse questions (“given the bulb is faulty, which machine made it?”) divide one path by the total.

Key ideas

Watch out: The branches from any point must add up to 1: check them.

Practise this step

5 questions from this step only, in 8 minutes: new numbers and stories every time, of exactly the types worked out below. Marked at the end, with every question worked out.

Start the 5-question quiz

Every question type in this step, worked out

15 types of question. Try each one yourself before you open the hint or the solution.

Example 1 · level 7

A bag holds 7 red and 9 blue balls. Two balls are drawn together, which can be done in 120 ways. In how many of those ways are both balls red?

Hint

Only the red balls matter: choose two of them.

Worked solution
  1. 7 × 6/2 = 21

Answer: 21 ways

Example 2 · level 7

The probability that it rains on a school day is 0.55. When it rains, the school bus is late with probability 0.75; when it is dry, with probability 0.35. What is the probability that the bus is late on a school day?

0.55rain0.75late0.25on time0.45dry0.35late0.65on timeP = ?
Hint

Draw a tree: rain or dry first, then late or not. Add the branches that end in late.

Worked solution
0.55rain0.75late0.25on time0.45dry0.35late0.65on timeP = 0.57
P(L)=P(R)P(L|R)+P(R')P(L|R')
  1. Rain and late: 0.55 × 0.75 = 0.4125
  2. Dry and late: 0.45 × 0.35 = 0.1575
  3. Late: 0.4125 + 0.1575 = 0.57

Answer: 0.57

Example 3 · level 8

A factory makes light bulbs on three machines. Machine A makes 15% of the bulbs, machine B 50% and machine C the rest. Of the bulbs from A, 7% are faulty; from B 8%; from C 3%. What percentage of all the bulbs are faulty?

15 %A7 %faulty93 %fine50 %B8 %faulty92 %fineC3 %faulty97 %fineP = ?
Hint

Each machine adds its share times its own faulty percentage.

Worked solution
15 %A7 %faulty93 %fine50 %B8 %faulty92 %fine= 35 %C3 %faulty97 %fineP = 6.1 %
P(F)=P(A)P(F|A)+P(B)P(F|B)+P(C)P(F|C)
  1. Machine C makes 100 − 15 − 50 = 35%
  2. Faulty from each: 7% × 15% = 1.05%, 8% × 50% = 4%, 3% × 35% = 1.05%
  3. In all: 1.05 + 4 + 1.05 = 6.1%

Answer: 6.1%

Example 4 · level 8

A bag holds 7 red and 5 blue marbles. Marbles are taken out one at a time, without putting any back. What is the probability, as a percentage to one decimal place, that the first red marble comes out on the third draw?

5/124/117/10P = ?
Hint

The first two must be blue and the third red; multiply along that one path.

Worked solution
5/124/117/10P ≈ 10.6 %
P=bn×b−1n−1×rn−2
  1. Blue, blue, red: 5/12 × 4/11 × 7/10
  2. (5 × 4 × 7)/(12 × 11 × 10) = 140/1320, which is about 10.6%

Answer: 10.6%

Example 5 · level 8

The probability of rain on Saturday is 0.2, on Sunday 0.45, and on at least one of the two days 0.56. It rains on Sunday. What is the probability that it rained on Saturday too?

SaturdaySunday0.20.45at least one: 0.56P = ?
Hint

First find the probability of rain on both days; then divide by the probability of the condition.

Worked solution
SaturdaySunday0.20.45= 0.09at least one: 0.56P = 0.2
P(A|B)=P(A)+P(B)−P(A∪B)P(B)
  1. Both days: 0.2 + 0.45 − 0.56 = 0.09
  2. Given Sunday: 0.09/0.45 = 0.2

Answer: 0.2

Example 6 · level 8

A bag holds 16 red and 9 blue marbles. Two marbles are taken out one after the other, without putting the first back. What is the probability that they are the same colour?

16/25red15/24red9/24blue9/25blue16/24red8/24blueP = ?
Hint

Both red or both blue. After the first marble, one fewer of that colour is left, and one fewer in all.

Worked solution
16/25red15/24red9/24blue9/25blue16/24red8/24blueP = 0.52
P(RR)+P(BB)=r(r−1)+b(b−1)n(n−1)
  1. Both red: 16/25 × 15/24; both blue: 9/25 × 8/24
  2. ((16 × 15) + (9 × 8))/(25 × 24) = 0.52

Answer: 0.52

Example 7 · level 8

A box of 20 phone chargers has 6 faulty ones in it. An inspector takes two chargers at random to test. What is the probability, as a percentage to one decimal place, that at least one of the two is faulty?

6N = 20P = ?
Hint

At least one faulty is everything except both working.

Worked solution
6N = 20P ≈ 52.1 %
P(X≥1)=1−gN×g−1N−1
  1. Both working: 14/20 × 13/19 = 182/380
  2. At least one faulty: 100 × 198/380 ≈ 52.1%

Answer: 52.1%

Example 8 · level 9

A committee of 3 is chosen at random from 4 men and 2 women. It has at least one woman on it. What is the probability that it has exactly one woman?

24committee of 3P = ?
Hint

At least one woman is every committee except the all-male ones.

Worked solution
24committee of 3P = 0.75
P(W=1|W≥1)=wC(m,k−1)C(m+w,k)−C(m,k)
  1. All committees: C(6, 3) = 20; all men: C(4, 3) = 4; so 16 with a woman
  2. Exactly one woman: 2 × C(4, 2) = 2 × 6 = 12
  3. 12/16 = 0.75

Answer: 0.75

Example 9 · level 9

A bag holds 21 red and 30 blue marbles. Two marbles are taken out one after the other, without putting the first back. The second marble is red. What is the probability that the first was red too?

21/51red20/50red30/50blue30/51blue21/50red29/50blueP = ?
Hint

Before anything is seen, the second marble is as likely to be red as the first.

Worked solution
21/51red20/50red30/50blue30/51blue21/50red29/50blueP = 0.4
P(R1|R2)=P(R1∩R2)P(R2)=r−1n−1
  1. Second red: 21/51, the same as for the first
  2. Both red: 21/51 × 20/50
  3. First red given second red: (21 × 20)/(51 × 50)/21/51 = 20/50 = 0.4

Answer: 0.4

Example 10 · level 9

A factory makes light bulbs on three machines. Machine A makes 20% of the bulbs, machine B 55% and machine C the rest. Of the bulbs from A, 6% are faulty; from B 1%; from C 7%. A bulb is found to be faulty. What is the probability that it came from machine C?

20 %A6 %faulty94 %fine55 %B1 %faulty99 %fineC7 %faulty93 %fineP = ?
Hint

Work out the faulty percentage from each machine; machine C's is one part of the total.

Worked solution
20 %A6 %faulty94 %fine55 %B1 %faulty99 %fine= 25 %C7 %faulty93 %fineP = 0.5
P(C|F)=P(C)P(F|C)P(F)
  1. Machine C makes 100 − 20 − 55 = 25%
  2. Faulty from each: 6% × 20% = 1.2%, 1% × 55% = 0.55%, 7% × 25% = 1.75%; together 3.5%
  3. From C: 1.75/3.5 = 0.5

Answer: 0.5

Example 11 · level 9

Bag A holds 3 red and 7 blue balls; bag B holds 9 red and 10 blue balls. A ball is taken from bag A at random and put into bag B. Then a ball is taken from bag B at random. What is the probability that it is red?

ABP = ?
Hint

Split on the colour of the ball that was moved: it changes what is in bag B.

Worked solution
ABP = 0.465
P(R)=P(RA)P(R|RA)+P(BA)P(R|BA)
  1. Red moved: 3/10 × 10/20 = 0.15
  2. Blue moved: 7/10 × 9/20 = 0.315
  3. Red from B: 0.15 + 0.315 = 0.465

Answer: 0.465

Example 12 · level 9

Three friends arrive at a meeting point independently. The first is late with probability 0.25, the second with probability 0.3 and the third with probability 0.2. At least one of them is late. What is the probability, as a percentage to one decimal place, that exactly one is late?

0.2510.320.23P = ?
Hint

At least one late is everything except all on time. Exactly one late has three branches.

Worked solution
0.2510.320.23P ≈ 73.3 %
P(E|U)=P(E)1−(1−p1)(1−p2)(1−p3)
  1. All on time: 0.75 × 0.7 × 0.8 = 0.42, so at least one late: 1 − 0.42 = 0.58
  2. Exactly one late: 0.14 + 0.18 + 0.105 = 0.425
  3. 100 × 0.425/0.58 ≈ 73.3%

Answer: 73.3%

Example 13 · level 9

The probability that it rains on a school day is 0.2. When it rains, the school bus is late with probability 0.4; when it is dry, with probability 0.15. One morning the bus is late. What is the probability that it is raining?

0.2rain0.4late0.6on time0.8dry0.15late0.85on timeP = ?
Hint

Find the probability that the bus is late at all; the rainy branch is one part of it.

Worked solution
0.2rain0.4late0.6on time0.8dry0.15late0.85on timeP = 0.4
P(R|L)=P(R)P(L|R)P(R)P(L|R)+P(R')P(L|R')
  1. Rain and late: 0.2 × 0.4 = 0.08; dry and late: 0.8 × 0.15 = 0.12
  2. Late: 0.08 + 0.12 = 0.2
  3. Rain given late: 0.08/0.2 = 0.4

Answer: 0.4

Example 14 · level 10

Bag A holds 7 red and 4 blue balls; bag B holds 3 red and 16 blue balls. A ball is taken from bag A at random and put into bag B, without anyone seeing its colour. Then a ball is taken from bag B at random, and it is red. What is the probability that the ball moved was red?

ABP = ?
Hint

Find the probability of drawing red from B by both routes; the red-moved route is one part of it.

Worked solution
ABP = 0.7
P(RA|R)=P(RA)P(R|RA)P(R)
  1. Red moved, then red: 7/11 × 4/20; blue moved, then red: 4/11 × 3/20
  2. Over the same denominator: 7 × 4 = 28 and 28 + (4 × 3) = 40
  3. Red moved given red drawn: 28/40 = 0.7

Answer: 0.7

Example 15 · level 10

Maya and Adam take turns throwing at a basket, Maya first. Maya scores with probability 0.6 on each throw and Adam with probability 0.9. The first to score wins. What is the probability that Maya wins?

0.6Maya wins0.9Adam winsagainP = ?
Hint

If both miss once, the game is back where it started. So Maya's chance is the chance of scoring in a round, given that the round ends the game.

Worked solution
0.6Maya wins0.9Adam winsagainP = 0.625
P(A)=pA1−(1−pA)(1−pB)
  1. Both miss in a round: 0.4 × 0.1 = 0.04
  2. Maya wins in a round: 0.6; the game ends in a round: 1 − 0.04 = 0.96
  3. 0.6/0.96 = 0.625

Answer: 0.625

Ready for the quiz?

Check yourself on this step: 5 questions, 8 minutes.

Start the quiz

All steps of the Probability study guide

  1. Dice and coins

    Totals of two dice, numbers of heads, all different, and chances given what you already know.

  2. Tables and Venn diagrams

    Read P(A given B) from a table, fill in a missing cell, and use Venn diagrams with two or three sets.

  3. Tree diagrams and draws

    Two draws from a bag, rain on two days, faulty items from two machines, and reverse questions.

  4. Independent events and repeated trials

    At least one fails, exactly k successes, the first success on try n, and how many tries are needed.

  5. Bayes and medical tests

    The chance someone is ill after a positive test, false positives, spam filters and unreliable witnesses.

  6. Expected value

    The expected profit of a raffle, a fair price for a game, winnings and insurance premiums.

When every step feels easy, take the whole Probability test: 10 questions in 15 minutes.