Topic 3 · Lesson 2 of 4
Tree diagrams and conditional probability
Tree diagrams
A tree diagram shows events in sequence. Each set of branches from one point covers every possibility, so its probabilities add to 1. To find the probability of a path, multiply along the branches; to combine paths, add them.
The probabilities on the second set of branches can depend on the first. A bag holds 5 red and 3 blue balls, and two are taken without replacement. After a red is taken, 4 of the 7 left are red, so the second branch is , not . The diagram shows the whole tree.
How to use a tree diagram
- Step 1: Draw one set of branches for each stage, labelling outcomes and probabilities.
- Step 2: For later stages, ask "what has changed?" (balls removed, a result known).
- Step 3: Multiply along each path you need.
- Step 4: Add the paths for the event asked about. Check all paths total 1.
Worked example
Without replacement
For the bag above, find the probability that the two balls are the same colour, and the probability that at least one is blue.
Show solutionHide solution
- Same colour: RR or BB. .
- At least one blue: the complement of "both red", which is quicker than adding three paths: .
"At least one" questions are almost always easiest with .
Conditional probabilityA level only
means "the probability of given that has happened". Knowing happened shrinks the sample space: we now look only inside . Of that, the part where also happens is . So
In the Venn diagram below, is shaded: it is the new "whole". , while . Knowing happened makes less likely, so and are not independent. In general, and are independent exactly when .
Rearranging gives the multiplication rule, : this is exactly what you do when you multiply along a tree's branches, since the second branches are conditional probabilities.
Two-way tables are the easiest place to see it: "given smoker" means use only the smoker row. From the table, , but .
Worked example
A medical testtop gradeA level
A disease affects 2% of a population. A test gives a positive result for 95% of people with the disease, and for 10% of people without it. A person tests positive. Find the probability that they have the disease.
Show solutionHide solution
- Set up the tree: first branch disease (0.02) or not (0.98); second branch positive or negative.
- . .
- (add the two paths that end in "positive").
- .
Only about 16% of people who test positive have the disease. Because the disease is rare, false positives from the large healthy group outnumber true positives. The question reversed the direction of the tree ("given positive" rather than "given disease"), which is the hallmark of a hard conditional probability question: always use the formula, don't read a branch.
Practise this topic
Both are part of Premium.