IB Maths AA HL
Topic 4 โ Statistics & Probability
Paper 1 & 2
~7 min read
Tree Diagrams
A tree diagram lays out a multi-stage probability problem branch by branch. Multiply along a path to get the joint probability of that sequence; add up the paths that lead to your event for the final answer. Trees handle “without replacement”, conditional probabilities, and three-stage problems far more cleanly than algebra alone.
๐ What you need to know
- Each stage = a set of branches; the probabilities at every fork must sum to 1.
- Multiply along a path โ joint probability of that exact sequence of outcomes.
- Add up paths that produce your event โ final probability.
- With replacement: second-stage branches mirror the first (independent).
- Without replacement: second-stage branches are conditional probabilities (recount what’s left).
- Complement trick: P(at least one X) = 1 โ P(no X on any path).
- Order matters: stage 1 outcomes change stage 2 probabilities when events depend on each other.
- Trees feed straight into Bayes’ theorem โ joint probabilities live on the paths.
Reading and building a tree
Stage 1 is the leftmost set of branches. Each leaf at the end of stage 1 then sprouts a new set of branches for stage 2 โ and so on for any further stages. The probability you write on a stage-2 branch is always conditional on getting to that node from stage 1.
Along a path
multiply
joint probability of the whole sequence
Across paths
add
probability of the event combining all favourable paths
Quick check: at any single fork, the branch probabilities must add to 1. If they don’t, you’ve mislabeled โ fix it before computing.
With replacement vs without replacement
| Setup | Stage 2 branches | What changes |
|---|
| With replacement | identical to stage 1 | nothing โ items independent |
| Without replacement | conditional on stage 1 | total drops by 1; the chosen category drops by 1 |
| Independent events | same probabilities every stage | nothing โ fully unrelated trials |
Path probability โ no replacement
P(A1 โฉ A2) = P(A1) ยท P(A2 | A1)
This is just the multiplication rule for conditional probability โ applied along one branch of the tree. For three or more stages, keep multiplying along the path, with each conditional based on every preceding outcome.
Reverse a tree using conditional probability
If a question gives you the second-stage probabilities and asks for the probability of a stage-1 event given a stage-2 outcome, that’s a conditional going backwards. Compute the joint paths, sum the relevant ones for the denominator, and pick the target path for the numerator.
Reverse-direction conditional from a tree
P(A1 | B2) = target pathsum of all paths reaching B2
This is the same engine as Bayes’ theorem โ when there are exactly three stage-1 categories, it’s literally the three-event Bayes formula written out from a tree.
๐งญ Recipe โ solving with a tree diagram
- Identify the stages and the outcomes at each stage.
- Draw and label every branch โ check each fork sums to 1.
- Multiply along each path you need to get its joint probability.
- Add the path probabilities for every favourable outcome.
- Sense-check: result must be in [0, 1]; sum of all leaf paths = 1.
Worked examples
WE 1Two-stage tree with replacement
A bag contains 4 red balls and 6 blue balls. A ball is drawn at random, then replaced. A second ball is then drawn. Find the probability that both balls drawn are red.
With replacement โ stage 2 mirrors stage 1
P(Rโ) = 4/10, P(Rโ) = 4/10
Multiply along the path (R, R)
P(both red) = 4/10 ร 4/10 = 16/100 = 4/25
P(both red) = 4/25 = 0.16
“with replacement” = independent stages = same probabilities throughout
WE 2Without replacement โ adding two paths
A box contains 5 white socks and 3 black socks. Two socks are drawn at random without replacement. Find the probability that both socks are the same colour.
Stage 1: 8 socks total. Stage 2: 7 left, recount the chosen colour
Path (W, W): both white
P(Wโ) ร P(Wโ | Wโ) = 5/8 ร 4/7 = 20/56 = 5/14
Path (B, B): both black
P(Bโ) ร P(Bโ | Bโ) = 3/8 ร 2/7 = 6/56 = 3/28
Add the two favourable paths
P(same colour) = 20/56 + 6/56 = 26/56 = 13/28
P(same colour) = 13/28 โ 0.464
without replacement โ recount each branch from what’s left in the box
WE 3“At least one” โ use the complement
A fair coin is flipped and a fair six-sided die is rolled. The two events are independent. Find the probability of getting heads OR rolling a 6 (or both).
“At least one” โ complement (no heads AND no 6)
P(T) = 1/2, P(not 6) = 5/6
Multiply along the “neither” path
P(neither) = 1/2 ร 5/6 = 5/12
Subtract from 1
P(at least one) = 1 โ 5/12 = 7/12
P(H or 6) = 7/12 โ 0.583
complement is faster than summing 3 favourable paths (H,6 / H,not6 / T,6)
WE 4Reverse the conditional from a tree
At a school, 60% of students take the bus and 40% walk. The probability of arriving late is 0.05 for bus-takers and 0.15 for walkers. Given that a student arrived late, find the probability they took the bus.
Step 1: Joint probabilities along each path
P(bus โฉ late) = 0.6 ร 0.05 = 0.03
P(walk โฉ late) = 0.4 ร 0.15 = 0.06
Step 2: P(late) = sum of paths leading to “late”
P(late) = 0.03 + 0.06 = 0.09
Step 3: Conditional in reverse direction
P(bus | late) = P(bus โฉ late) / P(late)
= 0.03 / 0.09 = 1/3
P(took bus | late) = 1/3
numerator = the target path; denominator = all paths reaching the same stage-2 outcome
WE 5Without replacement โ different outcomes
A jar contains 7 orange sweets and 3 lemon sweets. Two sweets are drawn at random without replacement. Find the probability that the two sweets are different colours.
Two favourable paths: (O, L) and (L, O)
Path (O, L)
7/10 ร 3/9 = 21/90 = 7/30
Path (L, O)
3/10 ร 7/9 = 21/90 = 7/30
Add
P(different) = 7/30 + 7/30 = 14/30 = 7/15
P(different colours) = 7/15 โ 0.467
“different colours” can happen two ways โ both must be added
A school admissions process has three rounds. The probability an applicant passes round 1 is 0.6. Given they pass round 1, the probability of passing round 2 is 0.5. Given they pass round 2, the probability of being accepted in round 3 is 0.4. Find the probability that a randomly chosen applicant is accepted.
Acceptance requires passing ALL THREE rounds โ multiply along the single success path
P(Rโ pass) = 0.6
P(Rโ pass | Rโ) = 0.5
P(Rโ pass | Rโ) = 0.4
Multiply along the path
P(accepted) = 0.6 ร 0.5 ร 0.4 = 0.12
P(accepted) = 0.12
three-stage chain โ just keep multiplying; only branches you need have to be drawn
๐ก Top tips
- Sum at each fork = 1: a quick label check that catches errors before you compute.
- “At least one” โ complement: usually one path (the “all bad”) instead of summing several.
- Without replacement โ recount what’s left: don’t carry stage-1 probabilities into stage 2.
- Don’t over-draw: only branches whose outcomes you care about need to appear.
- Joint = numerator, marginal = denominator: that’s how trees feed into reverse-direction conditionals (and Bayes).
โ Common mistakes
- Adding probabilities along a single path โ multiplication is the rule along; addition is across.
- Multiplying probabilities across different paths โ different paths are alternatives, so they’re added.
- Using stage-1 probabilities for stage 2 without replacement โ second branches must condition on the first.
- Branches at a fork not summing to 1 โ usually a sign you’ve left a category out.
- Using a tree for non-sequential events โ for static “and/or” questions on overlapping sets, a Venn is cleaner.
Next: Probability & Types of Events โ the chapter opener that sets all the vocabulary (sample space, outcome, event, complement, intersection, union) on a firm footing. Worth circling back to once the sub-topics make sense in practice.
Need help with Statistics & Probability?
Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.
Book Free Session โ