Flip a coin twice. Draw two counters from a bag, one after the other. Take a test, then take another. Whenever an experiment happens in stages, it's frighteningly easy to lose track of a possibility — "wait, did I count heads-then-tails and tails-then-heads?" A tree diagram fixes that. It maps every path the experiment could take, writes the probability on each branch, and never lets a single outcome slip through the cracks.
Think of it like a choose-your-own-adventure map: you start at one point, the world splits into the things that could happen first, then each of those splits into what could happen next. Follow any route from the start to a tip and you've traced one complete story of the experiment.
A tree diagram draws each stage as a set of branches, with the probability written on every branch. Following one path from the start to an endpoint traces one complete outcome.
Two rules turn the picture into numbers:
And a built-in check: the branches at each split add up to 1
(
Flip a fair coin twice. Stage 1 splits into
Exactly one head? That happens two ways —
Multiply along each path, add between the paths you want. That's the whole game.
A bag has 3 orange and 2 lemon sweets. You eat one, then eat
another — without replacement. The crucial thing: after the first sweet is gone,
only 4 sweets remain, so the second set of branches uses new
probabilities. If the first was orange, the second-pick chance of orange is
Both orange? Multiply along that path:
With the sweets above, what's the chance of at least one lemon? You could
add up the three paths that contain a lemon — but there's a slicker trick. "At least one lemon" is
the exact opposite of "no lemon at all" (i.e. both orange), and we just found
On a tree, "at least one" almost always means "1 minus the none path." It saves you adding three fiddly branches when subtracting one does the job.
Three traps snare almost everyone with tree diagrams — learn to spot all three:
The little diagram you're drawing scales up into one of the most useful structures in the whole of applied maths. Doctors use probability trees to map how a diagnostic test's outcomes flow into "actually ill / actually healthy." Banks branch out possible market moves to price risk. And in machine learning, a "decision tree" is a core algorithm — it splits data again and again, exactly like your branches, to classify things (spam or not, cat or dog, fraud or fine).
The clever part? The rule that powers those grown-up models is the very same one you just learned: multiply along, add across. Chain thousands of these branches together and you can compute the odds of dizzyingly complex sequences of events. The humble two-flip coin tree and a real predictive AI are the same idea, just at different sizes.