12F

Probability tree diagrams

Building probability trees with probabilities on the branches, multiplying along paths and adding paths, with and without replacement.

The trees in 14C needed equally likely branches. Real situations rarely have them: a team wins $60\%$ of games, a test is right $95\%$ of the time. A probability tree writes the probability on each branch, then the product rule from 14E does the rest.

Building a probability tree

Why multiply along a path? A path is "this happens and then that happens", which is the product rule. Why add paths? Different paths are different outcomes, so they can't both happen: they are mutually exclusive, and "or" just adds.

Without replacement

When an item isn't put back, the second set of branches depends on what happened first. Work out each second-stage probability for its own branch.

Example 1●●

A bag holds $6$ red and $4$ blue marbles. Two are drawn without replacement. Find $P(\text{both red})$, $P(\text{both blue})$ and $P(\text{one of each})$.

First branches: $R$ with $\dfrac{6}{10}$, $B$ with $\dfrac{4}{10}$.
First draw: 6 of 10 red, 4 of 10 blue.
After $R$: $R$ $\dfrac59$, $B$ $\dfrac49$. After $B$: $R$ $\dfrac69$, $B$ $\dfrac39$.
After a red is removed, 5 red and 4 blue remain out of 9. After a blue is removed, 6 red and 3 blue remain.
$P(RR) = \dfrac{6}{10} \times \dfrac59 = \dfrac13$, $\quad P(BB) = \dfrac{4}{10} \times \dfrac39 = \dfrac{2}{15}$
Multiply along each path.
$P(\text{one of each}) = 1 - \dfrac13 - \dfrac{2}{15} = \dfrac{8}{15}$
One of each is two paths, RB and BR. Or use the complement.
Tree builder

Branch fractions update as items are removed. Click outcomes on the right to add them to your event.

Try this

Two items are chosen from $6$ working and $4$ defective ones. Find $P(\text{exactly one defective})$ by hand, then click the matching outcomes to check. Then switch to with replacement and explain why the second-stage fractions no longer change.

Stages that depend on the first

Trees are ideal when the second stage's probabilities depend on the first, as in medical testing.

Example 2●●●

$3\%$ of a population has a condition. A test is positive for $90\%$ of people with the condition, and also (falsely) positive for $8\%$ of people without it. Find the probability that a randomly chosen person tests positive.

$C$: $0.03$, $\;\overline{C}$: $0.97$
First stage: has the condition (0.03) or not (0.97).
After $C$: positive $0.9$. After $\overline{C}$: positive $0.08$.
Second stage, on each branch: positive or negative, with the given rates.
$P(+) = 0.03 \times 0.9 + 0.97 \times 0.08 = 0.027 + 0.0776 = 0.1046$
Two paths end in a positive test. Multiply along each and add.

Your turn

A netball team wins each game with probability $0.7$, independently. Find the probability that it wins at least two of its next three games.

Show the working

Exactly two: paths WWL, WLW, LWW, each $0.7^2 \times 0.3 = 0.147$, giving $0.441$. All three: $0.7^3 = 0.343$. At least two: $0.441 + 0.343 = 0.784$.

Flashcards
Along a path
Multiply.
Between paths
Add.
Branches from one point
Add to $1$.
Practice
  1. In a probability tree, the branches leaving any one point:

  2. A bag holds $5$ red and $3$ blue marbles. Two are drawn without replacement. Find $P(\text{both red})$, correct to 3 decimal places.

  3. For the same bag, find $P(\text{both blue})$, correct to 3 decimal places.

  4. For the same bag, find $P(\text{one of each colour})$, correct to 3 decimal places.

  5. The same two marbles are drawn with replacement. Find $P(\text{both red})$, correct to 3 decimal places.

  6. Why do the second-stage branches change when drawing without replacement?

  7. A team wins each game with probability $0.6$, independently. Find the probability it wins exactly two of three games.

  8. $2\%$ of people have a condition. A test is positive for $95\%$ of those who have it and $10\%$ of those who don't. Find $P(\text{positive})$.

  9. Exam style: a bus is late on Monday with probability $0.2$. If it was late on Monday, it is late on Tuesday with probability $0.5$. Otherwise it is late on Tuesday with probability $0.1$. Find the probability it is late on exactly one of the two days.

  10. Exam style: a box has $3$ red and $2$ white balls. Balls are drawn without replacement until a red one appears. Find the probability that exactly three draws are needed.

Formula sheet