Comparing Distributions
Theory
To compare two distributions, compare their centre (mean or median) and their spread (range, IQR or standard deviation). This Year 11 Mathematics Standard page covers comparing data sets in lists, back-to-back stem-and-leaf plots and parallel displays, deciding which group is more consistent, the effect of an outlier on each measure, and finding a missing score from a mean.
To compare two distributions, compare their centre and their spread, using the same measures for both groups. The centre (the mean or median) tells you which group generally scored higher. The spread (the range, interquartile range or standard deviation) tells you how far apart the scores are. Always finish with a sentence in the context of the question.
A group is more consistent when its scores stay close together, which means a smaller spread. A batter with a smaller standard deviation is a more consistent scorer, even if another batter has a higher mean.
An outlier affects some measures much more than others. The mean, range and standard deviation all use the extreme scores, so one outlier can change them a lot. The median and the IQR only use the middle of the ordered data, so an outlier hardly changes them. When a data set has an outlier, the median and IQR are the fairer measures to compare.
Two data sets are easiest to compare when they are drawn side by side on the same scale: a back-to-back stem-and-leaf plot (one stem in the middle, with the leaves for one group on the left and the other group on the right), parallel dot plots, or parallel box plots.
For the standard deviation use the calculator in statistics mode and take the population standard deviation, \(\sigma\) (shown as \(\sigma_n\) or \(\sigma x\)). For data in a frequency table, enter each score with its frequency.
Measures of centre:
Measures of spread:
Standard deviation: calculator, statistics mode, population SD \(\sigma\) (\(\sigma_n\)).
| Measure | Tells you about | Effect of an outlier |
|---|---|---|
| Mean | centre | changes a lot |
| Median | centre | hardly changes |
| Range | spread | changes a lot |
| IQR | spread | hardly changes |
| Standard deviation | spread | changes a lot |
How to compare two data sets
- Calculate the same measures for both groups: mean and median for the centre; range, IQR or standard deviation for the spread.
- Compare the centre. The group with the higher mean or median generally scored higher.
- Compare the spread. The group with the smaller spread is more consistent.
- Check for outliers. If there is one, compare medians and IQRs rather than means and ranges.
- Conclude in context, quoting the numbers: for example, “Class A did better (median \(32\) compared with \(25.5\)) and was more consistent (IQR \(11\) compared with \(15\)).”
Cafe A: \(42,\ 45,\ 47,\ 50,\ 52,\ 46\)
Cafe B: \(30,\ 38,\ 49,\ 55,\ 61,\ 49\)
(i) Show that the cafes have the same mean.
(ii) Find the range for each cafe.
(iii) Which cafe has more consistent customer numbers?
(i) Find each mean:
| \(\overline{x}_A\) | \(=\) | \(\dfrac{282}{6}=47\) |
| \(\overline{x}_B\) | \(=\) | \(\dfrac{282}{6}=47\) |
(ii) Range \(=\) highest \(-\) lowest:
| \(\text{Range}_A\) | \(=\) | \(52-42=10\) |
| \(\text{Range}_B\) | \(=\) | \(61-30=31\) |
(iii) Same mean, but Cafe A's numbers are much closer together (range \(10\) compared with \(31\)).
\(\therefore\) Cafe A has the more consistent customer numbers.
| Class A | Stem | Class B |
|---|---|---|
| \(8\) | \(1\) | \(2\ \ 5\ \ 9\) |
| \(9\ \ 7\ \ 4\) | \(2\) | \(2\ \ 5\ \ 6\ \ 8\) |
| \(8\ \ 5\ \ 3\ \ 1\) | \(3\) | \(4\ \ 9\) |
| \(6\ \ 2\) | \(4\) | \(1\) |
(i) Find the median and the IQR of each class.
(ii) Which class performed better? Give two reasons.
Read each class (Class A leaves read from right to left):
A: \(18,\ 24,\ 27,\ 29,\ 31,\ 33,\ 35,\ 38,\ 42,\ 46\)
B: \(12,\ 15,\ 19,\ 22,\ 25,\ 26,\ 28,\ 34,\ 39,\ 41\)
(i) \(n=10\): the median is the average of the 5th and 6th marks, and each half has \(5\) marks.
A: lower half \(18,\ 24,\ \mathbf{27},\ 29,\ 31\) \(\Rightarrow Q_1=27\)
upper half \(33,\ 35,\ \mathbf{38},\ 42,\ 46\) \(\Rightarrow Q_3=38\)
| \(\text{Median}_A\) | \(=\) | \(\dfrac{31+33}{2}=32\) |
| \(IQR_A\) | \(=\) | \(38-27=11\) |
B: lower half \(12,\ 15,\ \mathbf{19},\ 22,\ 25\) \(\Rightarrow Q_1=19\)
upper half \(26,\ 28,\ \mathbf{34},\ 39,\ 41\) \(\Rightarrow Q_3=34\)
| \(\text{Median}_B\) | \(=\) | \(\dfrac{25+26}{2}=25.5\) |
| \(IQR_B\) | \(=\) | \(34-19=15\) |
(ii) Class A performed better: its median is \(6.5\) marks higher (\(32\) compared with \(25.5\)), and its smaller IQR (\(11\) compared with \(15\)) shows its marks were more consistent.
Monday: \(6,\ 8,\ 9,\ 10,\ 12,\ 15\)
Tuesday: \(6,\ 8,\ 9,\ 10,\ 12,\ 45\) (one bus broke down)
Find the mean, median, range, IQR and population standard deviation for each day, then say which measures were affected by the outlier \(45\).
Each day has \(6\) scores, so each half has \(3\): lower half \(6,\ \mathbf{8},\ 9\) and upper half \(10,\ \mathbf{12},\ 15\) (or \(45\)), so \(Q_1=8\) and \(Q_3=12\) on both days.
| \(\overline{x}_{\text{Mon}}\) | \(=\) | \(\dfrac{60}{6}=10\) |
| \(\overline{x}_{\text{Tue}}\) | \(=\) | \(\dfrac{90}{6}=15\) |
Calculator, statistics mode, population SD (\(\sigma_n\)): Monday \(\sigma=2.886\ldots\approx 2.89\), Tuesday \(\sigma=13.540\ldots\approx 13.54\).
| Measure | Mon | Tue |
|---|---|---|
| Mean | \(10\) | \(15\) |
| Median | \(9.5\) | \(9.5\) |
| Range | \(9\) | \(39\) |
| IQR | \(4\) | \(4\) |
| \(\sigma\) | \(2.89\) | \(13.54\) |
The median \(\left(\dfrac{9+10}{2}=9.5\right)\) and the IQR \((12-8=4)\) did not change. The mean, range and standard deviation all increased, so these were affected by the outlier.
(i) How many points must Zoe score in her fifth game so that her mean is exactly \(3\) points more than Mia's mean?
(ii) With that score, by how much is Zoe's median greater than Mia's median?
(i) Find the target mean, then solve for the missing score \(x\):
| \(\overline{x}_{\text{Mia}}\) | \(=\) | \(\dfrac{12+15+17+20}{4}=\dfrac{64}{4}=16\) |
So Zoe needs a mean of \(16+3=19\) from \(5\) games.
| \(\dfrac{14+18+21+25+x}{5}\) | \(=\) | \(19\) |
| \(78+x\) | \(=\) | \(95\) |
| \(x\) | \(=\) | \(17\) |
\(\therefore\) Zoe must score \(17\) points.
(ii) Zoe in order: \(14,\ 17,\ \mathbf{18},\ 21,\ 25\) \(\Rightarrow\) median \(=18\)
Mia: median \(=\dfrac{15+17}{2}=16\)
Difference \(=18-16=\mathbf{2}\) points
Common pitfalls
Frequently asked questions
How do you compare two sets of data?
Compare the centre (mean or median) to see which group scored higher, and the spread (range, IQR or standard deviation) to see which group is more consistent. Quote the numbers and finish with a sentence in context.
What does more consistent mean in statistics?
The scores are closer together, so the spread is smaller. The group with the smaller standard deviation, IQR or range is the more consistent one.
Which measures are affected by outliers?
The mean, the range and the standard deviation change a lot. The median and the interquartile range hardly change, because they only use the middle of the ordered data.
How do you read a back-to-back stem-and-leaf plot?
The stems are in the middle. Read the right-hand leaves as usual, and read the left-hand leaves outwards from the stem. With key \(4\,|\,3\,|\,6\), the left leaf gives \(34\) and the right leaf gives \(36\).
Should I use the mean or the median to compare groups?
Use the mean when the data is roughly symmetric with no outliers. Use the median (with the IQR) when the data is skewed or has an outlier.