Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Advanced Investigating Data

Histograms and Stem-and-Leaf Plots

20 practice questions 2 video lessons Theory + worked examples

Histograms show numerical data as touching bars over a number line, while stem-and-leaf plots keep every score visible in order. This NSW Year 9 Advanced maths subtopic revises both Stage 4 displays (NESA outcome MA4‑DAT‑C‑02) and analyses the data in them.

You will read frequencies, find the median, mean, mode and range from each display, and choose a suitable display for survey data. You will compare groups with back-to-back and split stem-and-leaf plots, estimate a mean from grouped data using class centres, find missing leaves from a mean and range, and find the least and greatest possible mean of grouped data. It is part of Year 9 Advanced Investigating Data.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Histograms and Stem-and-Leaf Plots - Video - Stem and Leaf Plots and Histograms Watch
  • Histograms and Stem-and-Leaf Plots - Video - Side by Side Stem and Leaf Plots Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A histogram shows how often each score, or each group of scores, occurs. A stem-and-leaf plot shows every score, already in order. This Year 9 Advanced maths page shows how to read both displays and get the mean, median, mode and range from them.

A histogram is a graph for numerical data. The horizontal axis is a number line, so the bars touch. A column graph is for categories (colours, sports) and its bars have gaps.

The height of a bar is the frequency: how many scores it stands for. On a grouped histogram each bar covers a class interval such as \(20\)–\(29\). The class with the tallest bar is the modal class, and the middle of a class is its class centre.

In a stem-and-leaf plot each score is split into a stem (usually the tens digit) and a leaf (the units digit). A key says how to read it: \(4 \mid 7\) might mean \(47\), or with a decimal key \(8 \mid 4\) means \(8.4\). An ordered plot has its leaves in order, so you can count to the median.

A back-to-back plot shares one stem between two groups. The left-hand leaves are read outwards from the stem: \(7\;3 \mid 4\) is \(43\) and \(47\). In a split stem plot each stem appears twice: the first row holds leaves \(0\)–\(4\), the second leaves \(5\)–\(9\).

An outlier is a score that sits well apart from the rest.

A histogram of a discrete scoreA histogram with touching bars for the scores 0 to 4, with frequencies 2, 5, 7, 4 and 2. 0 2 4 6 8 0 1 2 3 4 score (a number line, so the bars touch) Frequency
A histogram is for numerical data. The horizontal axis is a number line, so the bars touch.
The parts of a stem-and-leaf plotA stem-and-leaf plot with stems 1 to 4 and leaves 4 7 7, 0 3 5 8 9, 1 6 and 2. The stem is the tens digit, each leaf is a units digit, and a key reads 2 | 3 means 23. Stem Leaf 1 4 7 7 2 0 3 5 8 9 3 1 6 4 2 each leaf is a units digit tens digit Key: 2 | 3 means 23
Every leaf is one score. The plot keeps the actual values and is already in order.
\[\bar{x} = \dfrac{\sum fx}{\sum f}\]
x¯=∑fx∑f

Here \(x\) is a score (or a class centre) and \(f\) is its frequency, the bar height.

\[\text{median position} = \dfrac{n + 1}{2}\text{th score}\]
median position=n+12

For an even \(n\) this lands halfway between two scores, so average them. Range \(=\) largest score \(-\) smallest score.

DisplayModeMedianMean
stem-and-leafmost common valuecount along the ordered leavesadd every score, divide by \(n\)
histogram (single scores)tallest barrunning totals of the bars\(\sum fx \div \sum f\)
grouped histogrammodal classclass containing itestimate with class centres
Missing values. Mean \(\times\) number of scores \(=\) total, so a missing score is the total minus the known scores. A missing largest (or smallest) score can come from the range. Use the range first if it involves only one unknown.
Grouped data hide the actual scores. The smallest possible mean puts every score at the bottom of its class; the largest puts every score at the top.

Reading a stem-and-leaf plot

  1. Read the key so you know what a stem and a leaf stand for.
  2. Count the leaves to get \(n\).
  3. Find the median position, \(\dfrac{n + 1}{2}\), and count along the rows to it.
  4. Back-to-back? Read the left side from the stem outwards and treat each group on its own.

Reading a histogram

  1. Read every bar height and add them to get the total.
  2. Counts and percentages: add the bars that fit the condition ('less than \(20\)', 'at least \(3\)'), then divide by the total.
  3. Median: keep a running total of the bars until you pass the median position.
  4. Mean: multiply each score or class centre by its frequency, add, and divide by the total. For grouped data say it is an estimate.
  5. Check a claim (such as 'most students scored above the mean') by counting the bars on each side.
Example 1 β€” A back-to-back stem-and-leaf plot
The times, in seconds, that two classes took to solve a puzzle are shown. The 9P leaves are read outwards from the stem.
9P leavesStem9Q leaves
\(8\;\;5\;\;2\)\(1\)\(6\;\;9\)
\(7\;\;3\;\;3\;\;1\)\(2\)\(4\;\;5\;\;8\;\;9\)
\(6\;\;4\;\;0\)\(3\)\(2\;\;3\;\;5\;\;8\)
\(1\)\(4\)\(4\;\;7\)

Key: \(2 \mid 1 \mid 4\) means \(12\) s for 9P and \(14\) s for 9Q

Find
(i) the median time for each class
(ii) the range for each class
(iii) which class was faster overall.
Solution

Write out each list in order. For 9P, read each left-hand row from the stem outwards: \(8\;5\;2 \mid 1\) is \(12, 15, 18\).

\[\begin{array}{l} \text{9P: } 12, 15, 18, 21, 23, \underline{23}, 27, 30, 34, 36, 41 \\ \text{9Q: } 16, 19, 24, 25, 28, \underline{29, 32}, 33, 35, 38, 44, 47 \end{array}\]

(i) 9P has \(11\) times, so the median is the \(\dfrac{11 + 1}{2} = 6\)th. 9Q has \(12\), so the median is halfway between the \(6\)th and \(7\)th.

\(\text{median}_{\text{9P}}\)\(=\)\(\mathbf{23}~\text{s}\)
\(\text{median}_{\text{9Q}}\)\(=\)\(\dfrac{29 + 32}{2} = \mathbf{30.5}~\text{s}\)

(ii) Range \(=\) largest \(-\) smallest.

\(\text{9P}\)\(:\)\(41 - 12 = \mathbf{29}~\text{s}\)
\(\text{9Q}\)\(:\)\(47 - 16 = \mathbf{31}~\text{s}\)
median=29+322=30.5

(iii) A shorter time is better. 9P's median is \(7.5\) s lower and its spread is a little smaller, so 9P was faster overall.

Example 2 β€” Reading a histogram
The histogram shows how many books each student in a group read over the holidays.
Books read by 40 studentsA histogram of the number of books read over the holidays: 0 books 3 students, 1 book 8, 2 books 12, 3 books 9, 4 books 5, 5 books 3. 0 2 4 6 8 10 12 0 1 2 3 4 5 books read Students
Find (i) the number of students (ii) the percentage who read at least \(3\) books (iii) the median (iv) the mean.
Solution

Read the bar heights: \(3, 8, 12, 9, 5, 3\).

\(n\)\(=\)\(3 + 8 + 12 + 9 + 5 + 3 = \mathbf{40}\)

(ii) 'At least \(3\)' means \(3\), \(4\) or \(5\) books.

\(\dfrac{9 + 5 + 3}{40} \times 100\%\)\(=\)\(\dfrac{17}{40} \times 100\% = \mathbf{42.5\%}\)

(iii) \(40\) values, so the median is halfway between the \(20\)th and \(21\)st. Keep a running total: \(3\), then \(3 + 8 = 11\), then \(11 + 12 = 23\). Both the \(20\)th and \(21\)st are in the bar for \(2\) books.

\(\text{median}\)\(=\)\(\mathbf{2}~\text{books}\)

(iv) Each bar stands for \(f\) students who each read \(x\) books, so add up \(f \times x\).

\(\sum fx\)\(=\)\(0 + 8 + 24 + 27 + 20 + 15 = 94\)
\(\bar{x}\)\(=\)\(\dfrac{94}{40} = \mathbf{2.35}~\text{books}\)
x¯=∑fx∑f=9440=2.35
Example 3 β€” A grouped histogram
The histogram shows one day's screen time, in whole minutes, for \(32\) students.
Screen time of 32 studentsA grouped histogram of daily screen time in whole minutes: 60 to 79 minutes 4 students, 80 to 99 minutes 9, 100 to 119 minutes 11, 120 to 139 minutes 6, 140 to 159 minutes 2. 0 2 4 6 8 10 12 60–79 80–99 100–119 120–139 140–159 screen time (whole minutes) Students
(i) Find the modal class. (ii) Which class contains the median? (iii) Use class centres to estimate the mean. (iv) Find the smallest and largest values the mean could be.
Solution

(i) The tallest bar: the modal class is \(100\)–\(119\) minutes.

(ii) The median is halfway between the \(16\)th and \(17\)th. Running totals: \(4\), \(13\), \(24\). Both lie in \(100\)–\(119\) minutes.

(iii) A class centre is the middle of its class: \(\dfrac{60 + 79}{2} = 69.5\), then \(89.5, 109.5, 129.5, 149.5\).

\(\sum fx\)\(=\)\(4(69.5) + 9(89.5) + 11(109.5)\)
\(\)\(\)\(+\ 6(129.5) + 2(149.5) = 3364\)
\(\bar{x}\)\(\approx\)\(\dfrac{3364}{32} = 105.125 \approx \mathbf{105.1}~\text{min}\)

(iv) Smallest: every student at the bottom of their class, at \(60, 80, 100, \ldots\) minutes. Largest: every student at the top, which is \(19\) minutes more each.

\(\text{smallest}\)\(=\)\(\dfrac{3060}{32} = \mathbf{95.625}~\text{min}\)
\(\text{largest}\)\(=\)\(\dfrac{3060 + 32 \times 19}{32} = \mathbf{114.625}~\text{min}\)
x¯≈336432≈105.1

The mean is only an estimate: the histogram hides the actual times inside each class.

Example 4 β€” A missing leaf
The ordered stem-and-leaf plot shows \(10\) quiz scores. One leaf is \(k\).
StemLeaf
\(5\)\(2\;\;6\;\;8\)
\(6\)\(1\;\;4\;\;k\;\;9\)
\(7\)\(0\;\;3\;\;7\)

Key: \(5 \mid 2\) means \(52\)

The mean is \(64.7\).
(i) Find \(k\).
(ii) Find the median.
(iii) One more score is added, above all the others, and the range becomes \(40\). Find the new score.
Solution

(i) Mean \(\times\) number of scores gives the total.

\(\text{total}\)\(=\)\(64.7 \times 10 = 647\)
\(\text{known nine}\)\(=\)\(580\)
\(60 + k\)\(=\)\(647 - 580 = 67\)
\(k\)\(=\)\(\mathbf{7}\)

Check the order: \(64 \le 67 \le 69\ \checkmark\)

(ii) \(10\) scores: halfway between the \(5\)th and \(6\)th, which are \(64\) and \(67\).

\(\text{median}\)\(=\)\(\dfrac{64 + 67}{2} = \mathbf{65.5}\)

(iii) The smallest score is still \(52\).

\(\text{new score} - 52\)\(=\)\(40\)
\(\text{new score}\)\(=\)\(\mathbf{92}\)
60+k=647−580=67

Common pitfalls

Read left leaves outwards. In a back-to-back plot, \(5\;1 \mid 3\) on the left is \(31\) and \(35\), not \(51\).
The median is a position first. With \(n = 15\) the median is the \(8\)th score, not \(7.5\). Find the position, then count to it.
Divide by the number of scores, not the number of bars. A histogram with \(6\) bars might hold \(40\) scores. The mean is \(\sum fx\) divided by \(\sum f\).
Grouped means are estimates. Class centres stand in for the actual values, so the mean from a grouped histogram is not exact.
Watch strict and inclusive words. 'Less than \(20\)' leaves out \(20\); 'at least \(20\)' includes it.

Frequently asked questions

What is the difference between a histogram and a column graph?

A histogram is for numerical data and its bars touch, because the horizontal axis is a number line. A column graph is for categories and its bars have gaps.

How do you find the median from a stem-and-leaf plot?

Count the leaves to get \(n\), find the position \(\dfrac{n + 1}{2}\), then count along the ordered leaves to that position. For an even \(n\), average the two middle scores.

How do you find the mean from a histogram?

Multiply each score by the height of its bar, add these products, and divide by the total of the bar heights: \(\bar{x} = \dfrac{\sum fx}{\sum f}\).

Why is the mean from a grouped histogram only an estimate?

The histogram shows how many scores are in each class but not their actual values, so the class centre is used in place of each score.

What is a split stem-and-leaf plot?

Each stem is written twice. The first row holds the leaves \(0\) to \(4\) and the second row holds the leaves \(5\) to \(9\), which spreads out data that would otherwise crowd onto a few stems.

How do you read a back-to-back stem-and-leaf plot?

The two groups share the stem. Leaves on the right are read normally; leaves on the left are read from the stem outwards. Treat each group as its own data set.