Representation of data
🎯What you need to be able to do
- Construct and interpret stem-and-leaf diagrams, including back-to-back ones.
- Construct and interpret box-and-whisker diagrams, and identify outliers.
- Draw and read histograms with unequal class widths, using frequency density.
- Use a cumulative frequency graph to estimate the median, quartiles and percentiles.
- Calculate the mean and standard deviation, from raw data and from summary totals.
- Use coded data and adjust the results back.
- Compare two distributions in context.
📚The mathematics
Stem-and-leaf diagrams
These keep the original data values while showing the shape. Leaves must be ordered, and a key is compulsory — without it the diagram is meaningless, and its absence loses a mark every time.
Back-to-back diagrams compare two sets against a shared stem. Read the left-hand leaves outwards from the stem, so they run right to left.
Box-and-whisker diagrams
A box plot shows five numbers: minimum, lower quartile, median, upper quartile, maximum. The box spans the interquartile range, \( \mathrm{IQR} = Q_3 - Q_1 \).
An outlier is conventionally a value more than \( 1.5 \times \mathrm{IQR} \) beyond the nearer quartile. Check the definition the question gives, since some use a different multiplier. When outliers are present, the whiskers extend only to the most extreme value that is not an outlier, and the outliers are plotted separately as crosses.
Comparing two box plots is a standard question, and the answer needs two elements in context: a comparison of centre (medians) and a comparison of spread (IQR or range). “The medians are 42 and 51, so group B scored higher on average; the IQRs are 15 and 8, so group B was also more consistent” earns the marks. Naming the numbers without interpreting them does not.
Histograms
In a histogram it is the area of each bar that represents frequency, not its height. When class widths differ you must therefore plot
There are no gaps between bars in a histogram, because the data is continuous. To read a frequency back off a histogram, multiply the height by the width.
Cumulative frequency
Plot cumulative frequency against the upper class boundary — not the mid-point — and join the points with a smooth curve. Then read across from the appropriate fraction of the total and down to the axis:
These are estimates, because the individual values within each class are no longer known.
Mean and standard deviation
The variance formula — “the mean of the squares minus the square of the mean” — is what makes questions solvable from summary totals \( \sum x \) and \( \sum x^{2} \) without the original data. The standard deviation is \( \sigma = \sqrt{\sigma^{2}} \), and it carries the same units as the data.
For grouped data, use the mid-interval value of each class as \(x\). The result is an estimate, because you have thrown away the individual values.
Adding data to an existing set, or removing it, is handled through the totals: recover \( \sum x \) and \( \sum x^{2} \) from the given mean and standard deviation, adjust them, then recompute. That is far cleaner than trying to work with the means directly.
Coded data
To simplify arithmetic, questions often give totals for a coded variable such as \( y = x - 200 \) or \( y = \dfrac{x - 50}{10} \). The effects are:
In words: a shift changes the mean but leaves the standard deviation unchanged, while a scaling changes both. Sliding a data set along does not spread it out. Forgetting to decode at the end — or decoding the standard deviation as though it were a mean, and adding the shift — are the two errors examiners flag most.
✏️Worked example
(a) The mean is \( \bar{x} = \dfrac{1530}{60} = 25.5 \) minutes. For the variance:
so \( \sigma = \sqrt{36.75} = 6.06 \) minutes.
(b) Update the totals rather than the statistics: \( \sum x = 1530 + 40 = 1570 \) and \( \sum x^{2} = 41\,220 + 1600 = 42\,820 \), over \( n = 61 \).
That is \( 701.97 - 662.43 = 39.54 \), so \( \sigma = 6.29 \) minutes.
(c) The coding is a pure shift, so \( \bar{x} = \bar{y} + 150 \) and \( \sigma_x = \sigma_y \).
and \( \sigma_y^{2} = \dfrac{1150}{40} - 2.4^{2} = 28.75 - 5.76 = 22.99 \), so \( \sigma_y = 4.795 \) and therefore \( \sigma_x = 4.80 \).
📝Practise
Work through these, then reveal the answer.
1. A data set has \( n = 10 \), \( \sum x = 84 \) and \( \sum x^{2} = 802 \). Find the mean and standard deviation.
2. A histogram has a bar covering \( 10 \le x < 25 \) with height (frequency density) 3.2. How many values lie in that class?
3. A box plot has \( Q_1 = 32 \), \( Q_3 = 50 \). Determine whether the values 5 and 78 are outliers, using the \( 1.5 \times \mathrm{IQR} \) rule.
4. For 25 values coded by \( y = \dfrac{x - 40}{5} \), it is found that \( \sum y = 30 \) and \( \sum y^{2} = 120 \). Find the mean and standard deviation of \(x\).
5. The mean of 8 numbers is 15. One number, 22, is removed. Find the new mean.
6. Two classes sat the same test. Class A: median 58, IQR 12. Class B: median 61, IQR 25. Compare the two distributions.
🔗Go deeper — other people’s work
These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.
- Seeing Theory (Brown University) — interactive visualisations of spread and centre
- Khan Academy — box plots, histograms and standard deviation
- Cambridge examiner reports — histogram class boundaries appear in almost every one