Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve a Probability Problem with a Tree Diagram

A tree turns a multi-stage experiment into paths. Each branch carries a conditional probability; multiplying along a path gives the chance of that path, and adding paths gives the chance of an event.

Recognize the task

The experiment happens in stages: two draws from a bag, a weather forecast and then being late, a test after a diagnosis. The second-stage chances may depend on the first. Test: can you name the stages in order?
The parts of a tree are described in components of a tree diagram, and their use in computing probabilities with trees.

Steps

StepOn a bag of 3 red, 2 blue: two draws without replacement, same color
1Draw one level per stage. Each node splits into the possible results of the next stage.first: R or B; second: R or B after each
2Label each branch with its probability. Second-level branches are conditional on the path so far; each fan adds to 11.R 35\frac{3}{5} then R 24\frac{2}{4}; B 25\frac{2}{5} then B 14\frac{1}{4}
3Multiply along each path you need. Multiplication rule.RR: 620\frac{6}{20}, BB: 220\frac{2}{20}
4Add the paths that make up the event. Different paths are disjoint, so their probabilities add.Addition rule ↗620+220=25\frac{6}{20} + \frac{2}{20} = \frac{2}{5}

Worked examples

Example 1 · two coin tosses

independent stages
exactly one head: paths HT and TH
14+14=12\frac{1}{4} + \frac{1}{4} = \frac{1}{2}
each path 12⋅12\frac{1}{2}\cdot\frac{1}{2}

Example 2 · rain and being late

total probability
P(rain)=0.3P(\text{rain}) = 0.3; late with rain 0.40.4, without 0.10.1
0.3⋅0.4+0.7⋅0.1=0.12+0.070.3 \cdot 0.4 + 0.7 \cdot 0.1 = 0.12 + 0.07
two paths end in late
P(late)=0.19P(\text{late}) = 0.19

Example 3 · rain, given late

reverse
path rain-late 0.120.12 of all late paths 0.190.19
same tree
P(rain∣late)=1219≈0.6316P(\text{rain} \mid \text{late}) = \frac{12}{19} \approx 0.6316

See it happen

Each branch passes on a fraction of what reaches it, so a path keeps a fraction of a fraction: that is why you multiply. The tips of the tree split the whole probability 11 into disjoint pieces, which is why you add them. Build a tree in the tree diagram tool.

Common mistakes

Adding along a path

✗ RR: 35+24\frac{3}{5} + \frac{2}{4}
✓ multiply along a path: 35⋅24\frac{3}{5}\cdot\frac{2}{4}

Second level not updated

✗ R then R: 35⋅35\frac{3}{5}\cdot\frac{3}{5} without replacement
✓ one red is gone: 35⋅24\frac{3}{5}\cdot\frac{2}{4}

A fan that does not add to 1

✗ after R: R 24\frac{2}{4}, B 34\frac{3}{4}
✓ after R the bag has 22 red, 22 blue: 24\frac{2}{4} and 24\frac{2}{4}