5.1 Representation of data
Choosing a diagram
| Diagram | Best for | Weakness |
|---|---|---|
| Stem-and-leaf | Small sets of data; keeps every value | Hard to use with a large set |
| Box-and-whisker plot | Comparing data sets; shows the median and spread | Loses the individual values |
| Histogram | Grouped continuous data; shows shape | Loses the individual values |
| Cumulative frequency graph | Estimating medians, quartiles and percentiles in large sets | Loses 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.
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 ordered values, the median is at position . 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 . The upper half is 12, 13, 15, 18, 20, so . The interquartile range is .
Box-and-whisker plots
A box plot shows the five-number summary: least value, , median, 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 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.
and . 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.
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
| Measure | Use it when |
|---|---|
| Mean | The data has no extreme values; it uses every value |
| Median | The data has extreme values or is skewed; these do not affect it much |
| Mode | The data is categories, or the most common value matters |
| Range | A quick look at spread; affected by a single extreme value |
| Interquartile range | Spread of the middle half; not affected by extremes |
| Standard deviation | Spread using every value; pairs with the mean |
Mean and standard deviation
The variance is the square of the standard deviation.
, and .
Grouped data
Use the midpoint of each class for , with for frequency:
These are estimates, because the midpoints stand in for the actual values.
Coded totals
Subtracting a constant moves the mean by but does not change the spread.
, and .
Combining two data sets
Totals add, but means and standard deviations do not. Go back to and for each set, then add them.
For : and .
For : and .
Combined: , and .

