Note AcademyNote Academy

Mathematics (AS & A Level) 9709 · Chapter 23

Representation of data

Paper 5. Stem-and-leaf diagrams, box-and-whisker plots, histograms, cumulative frequency graphs, measures of centre and spread, and the mean and standard deviation from totals, including coded totals.

Written for the 2026–2027 syllabus · 6 min read

5.1 Representation of data

Choosing a diagram

DiagramBest forWeakness
Stem-and-leafSmall sets of data; keeps every valueHard to use with a large set
Box-and-whisker plotComparing data sets; shows the median and spreadLoses the individual values
HistogramGrouped continuous data; shows shapeLoses the individual values
Cumulative frequency graphEstimating medians, quartiles and percentiles in large setsLoses the shape at a glance

Stem-and-leaf diagrams

Values are split into a stem and a leaf, with the leaves in order and a key.

12 5 820 3 3 731 6Key: 2∣3 means 23\begin{array}{c|l} 1 & 2\ 5\ 8 \\ 2 & 0\ 3\ 3\ 7 \\ 3 & 1\ 6 \end{array} \qquad \text{Key: } 2 \mid 3 \text{ means } 23

A back-to-back diagram shows two sets on a shared stem, with each one's leaves increasing outward. Always give a key for each side.

Median and quartiles

For nn ordered values, the median is at position n+12\dfrac{n + 1}{2}. The lower and upper quartiles are the medians of the lower and upper halves.

There are 11 values. The median is the 6th, so 10. The lower half is 3, 5, 7, 8, 9, so Q1=7Q_1 = 7. The upper half is 12, 13, 15, 18, 20, so Q3=15Q_3 = 15. The interquartile range is 15−7=815 - 7 = 8.

Box-and-whisker plots

A box plot shows the five-number summary: least value, Q1Q_1, median, Q3Q_3 and greatest value.

A box-and-whisker plot on a scale, labelled with the least value, lower quartile, median, upper quartile and greatest value

A box-and-whisker plot on a scale, labelled with the least value, lower quartile, median, upper quartile and greatest value

When comparing data sets, make one statement on the centre and one on the spread, in context: "The median mark of group AA is higher, so it did better on average. Its interquartile range is smaller, so its marks are more consistent."

Histograms

In a histogram, the area of each bar represents the frequency. The bars can have different widths, and the height is:

Continuous data has no gaps, so use the true class boundaries. Ages given as "10–19" years run from 10 to 20, and a length to the nearest cm given as "10–19" runs from 9.5 to 19.5.

3010=3\dfrac{30}{10} = 3 and 124=3\dfrac{12}{4} = 3. The bars are the same height, although the frequencies differ.

Cumulative frequency graphs

Plot the cumulative frequency against the upper class boundary, and join the points with a smooth curve.

A cumulative frequency curve with lines drawn across to the curve at a quarter, a half and three quarters of the total, then down to give the quartiles and the median

A cumulative frequency curve with lines drawn across to the curve at a quarter, a half and three quarters of the total, then down to give the quartiles and the median

From the curve you can estimate the median, the quartiles and any percentile, as well as how many values lie above or below any point.

Measures of centre and spread

MeasureUse it when
MeanThe data has no extreme values; it uses every value
MedianThe data has extreme values or is skewed; these do not affect it much
ModeThe data is categories, or the most common value matters
RangeA quick look at spread; affected by a single extreme value
Interquartile rangeSpread of the middle half; not affected by extremes
Standard deviationSpread using every value; pairs with the mean

Mean and standard deviation

The variance is the square of the standard deviation.

xˉ=12\bar{x} = 12, and σ=164−144=20=4.47\sigma = \sqrt{164 - 144} = \sqrt{20} = 4.47.

Grouped data

Use the midpoint of each class for xx, with ff for frequency:

xˉ=∑fx∑fσ=∑fx2∑f−xˉ2\bar{x} = \frac{\sum fx}{\sum f} \qquad \sigma = \sqrt{\frac{\sum fx^2}{\sum f} - \bar{x}^2}

These are estimates, because the midpoints stand in for the actual values.

Coded totals

Subtracting a constant aa moves the mean by aa but does not change the spread.

xˉ=50+−4020=48\bar{x} = 50 + \dfrac{-40}{20} = 48, and σ=48020−(−2)2=20=4.47\sigma = \sqrt{\dfrac{480}{20} - (-2)^2} = \sqrt{20} = 4.47.

Combining two data sets

Totals add, but means and standard deviations do not. Go back to ∑x\sum x and ∑x2\sum x^2 for each set, then add them.

For AA: ∑x=120\sum x = 120 and ∑x2=10(22+122)=1480\sum x^2 = 10(2^2 + 12^2) = 1480.

For BB: ∑x=300\sum x = 300 and ∑x2=15(32+202)=6135\sum x^2 = 15(3^2 + 20^2) = 6135.

Combined: n=25n = 25, ∑x=420\sum x = 420 and ∑x2=7615\sum x^2 = 7615.

xˉ=42025=16.8σ=761525−16.82=22.36=4.73\bar{x} = \frac{420}{25} = 16.8 \qquad \sigma = \sqrt{\frac{7615}{25} - 16.8^2} = \sqrt{22.36} = 4.73

Test yourself18 flashcards on this chapter.Flashcards →