IB MYP Mathematics · Statistics and probability
Measures of centre and spread
1Mean, median and mode
An average is one value that represents a set of data. There are three.
- Mean: add all the values and divide by how many there are.
- Median: the middle value when the data are in order.
- Mode: the most common value. There can be more than one mode, or none.
For the data 3, 5, 5, 7, 8, 9, 12
- Mean: (3 + 5 + 5 + 7 + 8 + 9 + 12) ÷ 7 = 49 ÷ 7 = 7.
- Median: the 4th of 7 ordered values, which is 7.
- Mode: 5, which appears twice.
For $n$ values, the median is at position $\frac{n + 1}{2}$. With an even number of values there are two middle values: take their mean.
An even number of values: 4, 6, 9, 11
- Position: (4 + 1) ÷ 2 = 2.5, between the 2nd and 3rd.
- Median: (6 + 9) ÷ 2 = 7.5.
Put the data in order first. Finding the middle of an unordered list is the commonest mistake.
Check yourself
What is the median of 8, 3, 10, 5, 7?
Show the answer
7
In order the data are 3, 5, 7, 8, 10, and the middle value is 7.
2Choosing an average
Each average has strengths and weaknesses.
- The mean uses every value, so it reflects all the data. It is pulled towards outliers (extreme values).
- The median is not affected by outliers, so it suits skewed data such as incomes and house prices.
- The mode is the only average for qualitative data ("the modal colour is blue") and is useful for sizes.
The effect of an outlier
- Five workers earn $30,000, $32,000, $35,000, $36,000 and $150,000 a year.
- Mean: 283,000 ÷ 5 = $56,600. No one in the group earns close to this.
- Median: $35,000, which is typical of four of the five.
- The median represents this group better.
Working backwards from a mean: total = mean × number of values.
A missing value
- The mean of five numbers is 12. Four of them are 9, 10, 14 and 15.
- Total: 5 × 12 = 60.
- Known total: 48. The fifth number is 60 − 48 = 12.
Check yourself
Which average is most affected by one extremely large value?
Show the answer
The mean
The mean uses every value, so an outlier pulls it up.
3Averages from frequency tables
When data are in a frequency table, multiply each value by its frequency.
Mean = $\dfrac{\sum fx}{\sum f}$ (the sum of value × frequency, divided by the total frequency).
Scores in a quiz
- Score 1: frequency 3. Score 2: frequency 5. Score 3: frequency 8. Score 4: frequency 4.
- Total frequency: 3 + 5 + 8 + 4 = 20.
- $\sum fx$: 1 × 3 + 2 × 5 + 3 × 8 + 4 × 4 = 3 + 10 + 24 + 16 = 53.
- Mean: 53 ÷ 20 = 2.65.
- Mode: 3, the score with the highest frequency.
- Median: with 20 values it lies between the 10th and 11th. The first 8 are scores of 1 or 2, and the next 8 are 3s, so both are 3. Median 3.
Do not divide by the number of rows. Divide by the total frequency.
For grouped data the exact values are unknown, so use the midpoint of each class. The result is an estimate.
An estimated mean
- $0 \le t < 10$: frequency 4. $10 \le t < 20$: frequency 10. $20 \le t < 30$: frequency 6.
- Midpoints: 5, 15, 25.
- $\sum fx$: 20 + 150 + 150 = 320. Total frequency 20.
- Estimated mean: 320 ÷ 20 = 16.
- The modal class is $10 \le t < 20$.
Check yourself
Values 2, 3 and 4 have frequencies 1, 3 and 1. What is the mean?
Show the answer
3
(2 + 9 + 4) ÷ 5 = 15 ÷ 5.
4Range, quartiles and interquartile range
An average says where the data are centred. A measure of spread says how varied they are. Two sets can share a mean and be very different.
- Range = largest value − smallest value. Simple, but one outlier changes it completely.
- Quartiles split ordered data into four equal parts: the lower quartile $Q_1$, the median $Q_2$ and the upper quartile $Q_3$.
- Interquartile range (IQR) = $Q_3 - Q_1$: the spread of the middle half of the data. It ignores extremes.
For 2, 4, 5, 7, 8, 10, 13, 15, 18, 20, 21
- There are 11 values. Median: the 6th, which is 10.
- Lower half (2, 4, 5, 7, 8): its median is 5, so $Q_1 = 5$.
- Upper half (13, 15, 18, 20, 21): its median is 18, so $Q_3 = 18$.
- IQR: 18 − 5 = 13. Range: 21 − 2 = 19.
A small spread means the data are consistent. A large spread means they are varied.
A common rule: a value is an outlier if it is more than 1.5 × IQR below $Q_1$ or above $Q_3$. Here 1.5 × 13 = 19.5, so an outlier would be above 37.5 or below −14.5.
Check yourself
What is the range of 12, 7, 19, 4, 15?
Show the answer
15
Largest minus smallest: 19 − 4.
5Box plots and comparing data sets
A box plot (box-and-whisker diagram) shows five values on a scale: minimum, $Q_1$, median, $Q_3$, maximum. The box covers the middle 50% of the data and the whiskers reach the extremes.
A box plot shows the five-number summary
To compare two data sets, make two comments, both in context:
- Compare an average (usually the median): which group is higher on the whole?
- Compare the spread (IQR or range): which group is more consistent?
Test scores for two classes
- Class A: median 62, IQR 10. Class B: median 58, IQR 22.
- Average: Class A's median is higher, so Class A scored better on the whole.
- Spread: Class A's IQR is smaller, so its scores were more consistent; Class B's were more varied.
- A complete answer quotes the numbers and says what they mean about the classes.
Avoid "Class A is better" with no evidence, and avoid comparing only the highest scores.
Check yourself
Two runners have the same median time. Runner P has a smaller interquartile range. What does this show?
Show the answer
Runner P's times are more consistent
A smaller spread means the values are closer together.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera