Multiplying Along a Tree Without Replacement

Multiply along a path; add the paths.

One path through the tree

The bag holds 3 red counters and 2 blue, and two are drawn without replacement. Drawing red and then red again is one path through the tree: the branch red, 3/5, then the branch red, 2/4.

R
R
B
B
R
B

R for a red counter and B for a blue one. The path red then red is colored: 3/5 on the first branch and 2/4 on the second.

Multiply along the path

Of all pairs of draws, 3/5 start with red. Of those, 2/4 go on to draw red again. So red then red is 2/4 of 3/5: 3/5 × 2/4 = 6/20 = 3/10.

Count to check. Name the counters R1, R2, R3, B1 and B2. There are 5 × 4 = 20 equally likely ordered pairs of two different counters, which is where the denominator 20 comes from. Red then red takes one of 3 reds first and one of the other 2 reds second: 3 × 2 = 6 pairs, so 6/20.

R1R2R3B1B2R1R2R3B1B2×××××

The first counter down the side and the second across the top, with the same counter twice crossed out. The 6 colored cells are red then red: 6 of 20.

One of each color: two paths

One red and one blue can happen in two orders. Red then blue is 3/5 × 2/4 = 6/20 = 3/10: after a red, 2 of the 4 counters left are blue.

Blue then red is 2/5 × 3/4 = 6/20 = 3/10: after a blue, 3 of the 4 counters left are red. The two paths have the same chance here, but they are worked out from different branches.

R
R
B
B
R
B

Each path ends on the product of its two branches. Blue then red is colored, 2/5 × 3/4 = 6/20; red then blue, the second path, is 3/5 × 2/4 = 6/20.

Add the paths

A pair of draws follows exactly one path, so the paths are mutually exclusive, and the chance of one of each color is the sum: 3/10 + 3/10 = 6/10 = 3/5.

On the grid, the cells with one red and one blue are the 6 with red first and blue second and the 6 with blue first and red second: 12 of 20, which is 3/5.

R1R2R3B1B2R1R2R3B1B2×××××

One of each color: the 6 cells of red then blue and the 6 cells of blue then red, 12 of the 20.

Every path adds to 1

Blue then blue is 2/5 × 1/4 = 2/20. The four paths add to 6/20 + 6/20 + 6/20 + 2/20 = 20/20 = 1, because two draws must end on one of them.

The same color is red then red or blue then blue: 6/20 + 2/20 = 8/20 = 2/5. One of each and the same color are complements, and 3/5 + 2/5 = 1.

A bag of 2 red and 4 blue

Two counters are drawn without replacement from 2 red and 4 blue. Red then red is 2/6 × 1/5 = 2/30 = 1/15: after a red, 1 red is left among 5 counters.

One of each is red then blue, 2/6 × 4/5 = 8/30, plus blue then red, 4/6 × 2/5 = 8/30, which makes 16/30 = 8/15.

The usual mistakes

Keeping the second denominator at the first total: 2/6 × 1/6 = 2/36. After one draw only 5 counters are left.

Keeping the drawn red in the second numerator: 2/6 × 2/5 = 4/30. One red has already left the bag, so 1 red is left.

Stopping at one path for one of each, 8/30. Blue then red also gives one of each, and its chance adds on.

Adding along a path or multiplying across paths. Multiply along a path, because both draws happen; add different paths, because only one of them happens.

Faulty bolts

In the application below, a bolt comes from one of two machines and may be faulty. Part (a) multiplies along the two paths that end in a faulty bolt and adds them; part (b) asks which machine a faulty bolt came from.

Worked example: A Faulty Bolt Traced Back to the Machine That Made It, by Reversing a Tree

Question A factory makes bolts on two machines. Machine A makes 35 of the bolts and machine B makes the rest. 120 of the bolts from machine A are faulty, and 110 of the bolts from machine B. An inspector picks a bolt at random. (a) Find the probability that it is faulty. (b) The bolt turns out to be faulty. Find the probability that it was made by machine B.

  1. 1.The first branches are machine A, 35, and machine B, 25. After A the bolt is faulty with probability 120 and good with 1920. After B it is faulty with probability 110 and good with 910.

    machine3/5A2/5Bbolt1/20faulty19/20good1/10faulty9/10goodfirst the machine, then the bolt
    machine3/5A2/5Bbolt1/20faulty19/20good1/10faulty9/10goodfirst the machine, then the bolt
    The tree follows the order of events: first the machine, then whether the bolt is faulty.
  2. 2.Multiply along each path: A and faulty 35 × 120 = 3100, A and good 57100, B and faulty 25 × 110 = 4100, and B and good 36100. Check: 3 + 57 + 4 + 36 = 100.

    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/1003/5 × 1/20 = 3/100, and so on3 + 57 + 4 + 36 = 100
    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/1003/5 × 1/20 = 3/100, and so on3 + 57 + 4 + 36 = 100
    Multiply along each path. The four paths add up to 100100 = 1.
  3. 3.(a) Two paths end in a faulty bolt, so P(faulty) = 3100 + 4100 = 7100.

    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/100faulty: 3/100 + 4/100 = 7/100
    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/100faulty: 3/100 + 4/100 = 7/100
    (a) Two paths end in a faulty bolt: 3100 + 4100 = 7100.
  4. 4.Reverse the tree. Given that the bolt is faulty, only those two paths are possible, and the path through B is 4100 of the 7100: P(B | faulty) = 4100 ÷ 7100.

    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/100given faulty: the path through Bis 4 of the 7 hundredths
    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/100given faulty: the path through Bis 4 of the 7 hundredths
    Given a faulty bolt, only those two paths are possible, and the path through B is 4100 of the 7100.
  5. 5.(b) P(B | faulty) = 47. Machine B makes fewer of the bolts but more than half of the faulty ones. Check with 1000 bolts: A makes 600 with 30 faulty, B makes 400 with 40 faulty, and 4070 = 47.

    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/100B given faulty: 4/71000 bolts: 30 faulty from A, 40 from B
    machine3/5A2/5Bbolt1/20faulty3/10019/20good57/1001/10faulty4/1009/10good36/100B given faulty: 4/71000 bolts: 30 faulty from A, 40 from B
    (b) P(B | faulty) = 47, and 4070 = 47 with 1000 bolts.

Answer: (a) 7100; (b) 47

Common mistakes

  • Answering (b) with 110, the chance that a bolt from machine B is faulty. The question asks the reverse: given a faulty bolt, how likely it is to have come from B. The whole is the faulty bolts, 7100 of all the bolts.
  • Answering (b) with 25, the share of the bolts that machine B makes, as if knowing the bolt is faulty changed nothing. Machine B makes faulty bolts twice as often as machine A, so a faulty bolt is more likely than a random bolt to have come from B.

More probability with several events problems, worked step by step →

Practice Multiplying Along a Tree Without Replacement in the app