Two cricket batsmen may both average 40 runs. If one scores between 35 and 45 each time and the other between 0 and 120, the averages alone hide a great difference. The measures of dispersion describe this spread of the values around the average.
Range
The range is the difference between the largest and the smallest value. For the 20 marks it is 45 - 12 = 33. The coefficient of range is (L - S) / (L + S), where L and S are the largest and smallest values, and equals 33 / 57 = 0.579. The range is easy to find but depends only on two values.
Definition: Measure of dispersion. A numerical measure of the extent to which the observations of a set differ from one another or from their average.
Mean Deviation
The mean deviation is the mean of the absolute deviations of the observations from an average, usually the mean. Mean deviation about the mean is the sum of |x - mean| divided by n. For the 20 marks the sum of the absolute deviations from 28.25 is 143.5, so the mean deviation is 143.5 / 20 = 7.175.
Quartile Deviation
The quartiles divide ordered data into four equal parts. The first quartile Q1 has one quarter of the values below it, and the third quartile Q3 has three quarters below it. The quartile deviation is half the difference, QD = (Q3 - Q1) / 2, also called the semi-interquartile range. Its coefficient is (Q3 - Q1) / (Q3 + Q1). The quartile deviation uses only the middle half of the data, so extreme values do not affect it.
Table 1.6: Measures of dispersion based on range, deviation and quartiles
| Measure | Formula | Value for the 20 marks |
|---|---|---|
| Range | Largest - smallest | 33 |
| Mean deviation | Sum of absolute deviations / n | 7.175 |
| Quartile deviation | (Q3 - Q1) / 2 | 6.25 |
Example 1.6: Quartile deviation
Problem: Find the quartiles and the quartile deviation of the 20 marks.
Solution:
- The lower ten values are 12 to 27. Their median, the average of the 5th and 6th values 22 and 22, is Q1 = 22.
- The upper ten values are 28 to 45. The average of the 5th and 6th values, 34 and 35, is Q3 = 34.5.
- QD = (34.5 - 22) / 2 = 6.25.
Result: Q1 = 22, Q3 = 34.5 and the quartile deviation is 6.25 marks.
x = [12, 15, 18, 20, 22, 22, 25, 25, 25, 27, 28, 30, 30, 32, 34, 35,
38, 40, 42, 45]
m = sum(x) / len(x)
print(max(x) - min(x), sum(abs(v - m) for v in x) / len(x))
print((34.5 - 22) / 2)
Output
33 7.175
6.25
Common mistakes
- Taking deviations without the absolute value, so that they cancel out to zero.
- Using the range for data with an extreme value, which makes the spread look large.
- Mixing up the quartile deviation with the interquartile range, which is twice as large.
Key takeaways
- Range = largest - smallest.
- Mean deviation uses absolute deviations from an average.
- Quartile deviation = (Q3 - Q1) / 2.
- Quartile deviation is not affected by extreme values.
Practice questions
- Find the range of 14, 9, 21, 17 and 12.
- Define the quartile deviation.
- Why are absolute deviations used in the mean deviation?
Answers to the practice questions
- 21 - 9 = 12.
- Half the difference between the third and first quartiles.
- Because signed deviations from the mean add up to zero.
Sources
- Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit I
