Euler Hall — free maths guides

Compute a path probability on a tree

Multiply along a path and add across branches. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.

Multiply along, add across

A tree diagram splits the sample space step by step. Each branch is labelled with the probability of taking it, and the second level's labels are conditional — the tree has already restricted the sample space to the first branch.

Two operations, and they are the two rules drawn:

- Multiply along a path for "and then":P(A then B)=P(A)P(B∣A)P(A \text{ then } B) = P(A)P(B \mid A). - Add across branches for "or": two paths to the same outcome are disjoint, so their probabilities add.

The check is built in: the probabilities on the branches leaving any node must sum to 1, because from that node the possibilities are exhaustive.

Why trees are worth drawing

Because they make the conditioning visible. The alternative — a formula with three conditional bars in it — hides which probability is restricted by which, and that is the one thing that decides whether a term multiplies or adds.

A tree also turns the law of total probability into a picture: the probability of a result is the sum of the path probabilities that reach it.

Worked example: two draws without replacement

A bag holds 3 red and 2 blue counters. Two are drawn without replacement.

First branch. Red3/53/5; blue2/52/5.

Second branch, given red. Red2/42/4; blue2/42/4.

P(two reds).35×24=620=0.3\frac35 \times \frac24 = \frac{6}{20} = 0.3.

P(one of each).35×24+25×34=0.3+0.3=0.6\frac35\times\frac24 + \frac25\times\frac34 = 0.3 + 0.3 = 0.6, two paths added.

Check.0.3+0.6+0.1=10.3 + 0.6 + 0.1 = 1, where0.10.1 is two blues. Every leaf accounted for.

By the end you can
  • Multiply along a path and add across branches
  • Read a tree's second-level branches as conditional probabilities
  • Say why multiplication is right on a path
Check yourself
  1. 1. First branch 0.3, second given it 0.5.
  2. 2. What is the path probability?
  3. 3. What must the other second branch be?
Answers
  1. 1. 0.15.
  2. 2. 0.5, so the node's branches total 1.
Work out where to start — free, no accountAnswer six real questions — free, no account