Frequency Tables and Stem-and-Leaf Diagrams

Organising data makes patterns easier to see. Frequency tables summarise counts; stem-and-leaf diagrams organise numerical values while keeping the original data visible.

Foundation & Higher. Stem-and-leaf diagrams are needed for the combined course; OCR does not require them. Start with Data, Sampling and Population Estimates. Review place value and ordering if you need help sorting decimals.

Count each observation once

A frequency is the number of times a value or category occurs. List categories clearly, tally each observation into one category, then check that the frequencies add to the number of observations.

Worked example — organise the number of books borrowed

Twelve students borrow: 0, 1, 2, 1, 3, 2, 0, 2, 1, 4, 2, 2. Count repeats rather than adding the book numbers.

Booksf
02
13
25
31
41
All12

Here f means frequency. The five students in the “2 books” row count as five observations, not ten. Multiplying value by frequency will be useful later when finding a mean.

Use clear, non-overlapping class intervals

When there are many different values, group them into classes. Every possible observation should have one place. Do not leave a gap or put a boundary in two groups.

Time t (min)f
0 ≤ t < 104
10 ≤ t < 2012
20 ≤ t < 4016
40 ≤ t ≤ 608
All40

Worked example — place a boundary value

A time of exactly 10 minutes belongs in 10 ≤ t < 20, not the first class. A time of 39.8 goes in 20 ≤ t < 40. The final class includes 60 because the dataset has no time above 60.

The symbol ≤ includes the endpoint; < excludes it. These class widths are 10, 10, 20 and 20 minutes. For whole-number counts, classes such as 0–4 and 5–9 cover all allowed integers, but they would leave a gap for continuous values such as 4.5.

Grouping loses exact values. You know 16 times lie between 20 and 40 minutes, but not where each one lies. That is why many summaries from grouped data are estimates.

Classify in two ways with a two-way table

A two-way table records two classifications of the same observations. Row and column totals describe the same overall group; do not count them as extra people.

YearBusWalkAll
10121830
11161430
All283260

Worked example — recover and check a missing cell

If the Year 11 bus count is missing, use its row: 30 − 14 = 16. Check its column: 28 − 12 = 16. Both methods agree.

Compare proportions if the groups are different sizes. Here each year has 30 students: Year 10 has 18/30 = 60% walking, compared with 14/30 ≈ 46.7% in Year 11.

This lesson organises and compares the data. For selecting people and calculating event probabilities, use Sample Spaces and Two-Way Tables.

Construct an ordered stem-and-leaf diagram

Split each number into a stem and a final digit called a leaf. Sort the leaves on each row, retain repeats, and give a key with units. Keep an empty stem row when it lies between stems you use.

Worked example — organise recorded journey times

Times in minutes: 12, 18, 21, 14, 25, 12, 32, 29, 21. The tens digits are stems. Sort the units digits from the stem outwards.

StemLeaves
12 2 4 8
21 1 5 9
32
Key: 2 | 5 means 25 minutes.

There are nine leaves, matching nine observations. The smallest value is 12, the largest is 32. A leaf is one digit: 25 is placed as stem 2 and leaf 5, not stem 2 and leaf 25.

Worked example — use a decimal key

For 1.2, 1.2, 1.8 and 2.1 metres, stems 1 and 2 with leaves 2 2 8 and 1 work if the key states 1 | 2 means 1.2 m. The same-looking diagram can represent different values if its key changes.

Compare two sets back-to-back

Use shared stems in the centre. On the right, leaves increase from left to right. On the left, the smallest leaf sits nearest the stem, so the printed row decreases from left to right. Give a key for both sides.

AStemB
8 4 2 211 5 9
9 5 1 120 2 4 8
231 5
Left: 4 | 1 means 14 min. Right: 1 | 5 means 15 min.

Group A is the nine journey times above. Group B is 11, 15, 19, 20, 22, 24, 28, 31, 35. Both have nine observations, making a direct comparison easier. The middle values are 21 and 22 minutes respectively; B has the greater typical time by the median. The next averages lesson explains how to calculate and justify such comparisons.

A stem-and-leaf diagram is useful for a small or moderate numerical dataset because it preserves individual values. A very large dataset may be clearer in a grouped table or graph.

Think Like a Mathematician

A frequency table and a stem-and-leaf diagram can represent the same dataset. Grouping into wide intervals, however, discards information that cannot be reconstructed exactly from the grouped totals alone.

Common Mistakes

Counting totals twice: margins are checks, not extra observations.

Overlapping classes: decide which class owns each boundary.

Losing repeats: repeated data need repeated leaves.

Missing key: state the value and units on each side.

Practice

1. For 1, 0, 2, 2, 1, 3, 2, 0, give frequencies for 0, 1, 2 and 3.

Frequencies are 2, 2, 3, 1; their total is 8.

2. For 0 ≤ x < 5, 5 ≤ x < 10 and 10 ≤ x < 20, where do 5 and 9.9 go?

Both belong in 5 ≤ x < 10. The first class excludes 5.

3. Why are 0–5 and 5–10 poor class labels without further explanation?

The value 5 appears to belong to both. Define one boundary as excluded so every observation has one place.

4. A row total is 35 and its two cells are 19 and a missing value. Find the missing value.

35 − 19 = 16. Check against a column total if one is provided.

5. Construct an ordered stem-and-leaf diagram for 23, 17, 21, 17, 30, 25.

Stem 1: 7 7; stem 2: 1 3 5; stem 3: 0. Key: 2 | 3 means 23. There are six leaves.

6. A key says 4 | 6 means 4.6 kg. What does 5 | 2 mean?

5.2 kg, not 52 kg.

7. In the back-to-back example, how many B times are at least 20 minutes?

Four leaves on stem 2 and two on stem 3: 6 times.

8. Can you recover the exact 16 times in the 20 ≤ t < 40 class from its frequency alone?

No. The class tells you the interval and count, not the individual times.

Frequently Asked Questions

Must a stem-and-leaf diagram be ordered?

For this course, yes: sort leaves, keep repeats and supply a key. Pearson expects ordered diagrams even when the word ordered is omitted.

Are two-way tables only for probability?

No. They organise and compare two classifications. Probability uses their counts for a different purpose, which has its own lesson.

Scroll to Top