Your class sits a test out of 50, and 30 people hand in a scruffy jumble of scores:
There is, and it is beautifully simple: the stem-and-leaf diagram. It sorts a whole set of data into neat rows so you can see its shape at a glance, while still keeping every single original value so you can read any of them back. That "best of both worlds" is exactly why it was invented — more on that below.
The trick is to chop each number into two parts. The stem is the leading
digit(s) — usually the tens; the leaf is the final digit — the units. So
Then you list the stems down the left in a column, and write each number's leaf in its stem's row, in order, smallest first. Numbers that share a stem line up along one row, so a long row instantly tells you "lots of values around here".
One thing more is non-negotiable: a key. On its own, the entry
Key:
Here are the times, in seconds, of 12 swimmers doing one length:
Step 1 — find the stems. The tens digits run from
Step 2 — drop each leaf into its row (units digit), just as they come:
| Stem | Leaf (unsorted) |
|---|---|
| 2 | 1 1 9 7 |
| 3 | 4 8 3 1 |
| 4 | 5 0 5 5 |
Step 3 — put every row in order, smallest leaf first. This is the step people skip — and it is the step that makes the diagram useful:
| Stem | Leaf (ordered) |
|---|---|
| 2 | 1 1 7 9 |
| 3 | 1 3 4 8 |
| 4 | 0 5 5 5 |
Key:
Read the rows back and you recover the full sorted list:
Because the diagram is the sorted data, you can read the mode, median and range straight from it. Using the swimmers' diagram above (12 values):
Notice how the ordered diagram made counting to the middle painless — you just walk along the leaves. That is the whole point of insisting the leaves are sorted.
Want to compare two groups? Share the stems down the middle and grow one group's leaves out to the left, the other's out to the right. Here are two swim squads' times:
| Squad A (leaves) | Stem | Squad B (leaves) |
|---|---|---|
| 9 7 1 | 2 | 4 8 |
| 4 3 1 | 3 | 2 5 9 |
| 5 | 4 | 0 1 6 |
Key: for Squad A,
The left leaves for Squad A read right-to-left (the units nearest the stem is the smallest), so still in order. Squad A's times bunch low (fast!), while Squad B's spread into the forties — you can see the whole comparison in one picture, and still read back every individual time.
Turn the diagram on its side and the leaves become bars — a longer row means more values there.
That is the second gift of the stem-and-leaf: the outline of the leaves is the
shape of the data. In the swimmers' diagram the
This lets you spot things a lone average would hide: a gap (a stem with no leaves), a lopsided skew (leaves piling up at one end), or an outlier (a lonely leaf far from the rest). You get the summary and the story — and you can still read back every exact number to check.
Two mistakes ruin a stem-and-leaf diagram, and both are easy to make:
The stem-and-leaf plot was popularised by the American statistician John Tukey in the 1970s — the same restlessly inventive mind that gave us the words "bit" (for a binary digit) and "software". He loved displays that let your eye do the thinking, and this one was a favourite: unlike a bar chart, it shows the shape of the distribution while still letting you read back every exact value — a genuinely rare two-for-one.
Tukey saw it as a stepping stone. Blur the leaves into solid bars and you have a
histogram; summarise the same sorted data into quarters and you have a