Statistics and Mechanics Year 1, chapter 2 (Measures of location and spread), section 2.1
The three averages
- The mean is the sum of the values divided by the number of values: .
- The median is the middle value when the data are in order. For an even number of values, take the mean of the two middle ones.
- The mode is the most common value. The modal class is the class with the highest frequency (for equal class widths).
Mean from a frequency table
Grouped data
Use the midpoint of each class as the value of . The result is an estimate, because the exact values are not known.
Worked example 1: raw data
For : mean , median , mode .
Worked example 2: frequency table
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 4 | 6 | 8 | 2 |
and , so .
Worked example 3: grouped data
| Class | – | – | – |
|---|---|---|---|
| 5 | 8 | 7 |
Midpoints : and .
Choosing an average
- The mean uses all the data but is affected by outliers.
- The median is not affected by outliers, so it is better for skewed data.
- The mode is the only average for qualitative data.
Common mistake: using the class boundary instead of the midpoint for grouped data, or dividing by the number of classes. Divide by , the total frequency.
Exam tip: say that the answer for grouped data is an estimate. When asked to choose an average, give a reason related to outliers or skew.
Check yourself
Find the median of .
.
Which average is not affected by extreme values?
The median.
What is used as the value of a class when estimating the mean?
The midpoint of the class.