Topic P · Lesson 3 of 5
Tree diagrams and two-way tables
Independent events and tree diagrams
Two events are independent if one happening does not change the probability of the other: tossing a coin and rolling a dice, for example. For independent events, multiply:
Why multiply? If a light is red 0.3 of the time, and on 0.2 of those red days you are late, then you are late after a red light on of all days.
A tree diagram organises this. Each set of branches shows one event, and the probabilities on each set add up to 1. The diagram shows a traffic light (red R or green G) and then being late (L) or not (N).
How to use a tree diagram
- Step 1: Draw one set of branches for each event, with the probability on each branch.
- Step 2: Multiply along the branches to get the probability of each complete outcome.
- Step 3: If several outcomes satisfy the question, add their probabilities.
- Step 4: Check: all the final probabilities add up to 1.
For example, P(late) (red then late, or green then late). The words help: "and" means multiply along a path; "or" means add different paths.
Dependent events: without replacement
If you take a sweet from a bag and eat it, the second pick is from a smaller bag, so its probabilities change: the events are dependent. The second set of branches must show the new probabilities.
Try it: build the tree for a bag of counters, then run thousands of trials to check your answer.
Try it: simulation
Probability trees and Venn diagrams
Loading the simulation…
Worked example
Without replacementgrade 7
A bag has 5 red and 3 blue sweets. Sam takes one at random and eats it, then takes another. Find the probability that the two sweets are different colours.
Show solutionHide solution
- First pick: P(R) , P(B) .
- After a red, 7 sweets remain with 4 red: P(R) , P(B) . After a blue, 7 remain with 5 red: P(R) , P(B) . The tree below shows them.
- "Different colours" means red then blue, or blue then red: .
A quicker route for "at least one": P(at least one red) P(no reds) . Look for this whenever a question says "at least".
Assumptions matter. A tree diagram for "two days in a row" assumes the days are independent, which may not be true (weather on Tuesday depends on Monday). Exam questions may ask you to state or criticise such an assumption.
Two-way tables
A two-way table sorts data by two features at once, with totals for each row and column. The diagram shows how 100 students travel to school.
P(a student chosen at random is in Year 10 and takes the bus) , using the overall total.
Practise this topic
Both are part of Premium.