- Foundation
- About 15 min
- 5 practice questions
Range, quartiles and the quartile deviation
Measure spread in the simplest ways: the range, the quartiles Q₁ and Q₃ of a list and of grouped data, the interquartile range and the quartile deviation, and see why the range is easily spoiled by one extreme value.
If something looks wrong, please tell us.
Before the mean deviation and the standard deviation, there are two simpler ways to describe how spread out data are. The range uses only the two extreme values. The quartiles cut the ordered data into four equal parts and describe the spread of the middle half. They are quick to find, they are easy to explain, and they are the right starting point for understanding dispersion.
The range
The range is the largest value minus the smallest value. For the marks 12, 7, 19, 3, 25, 9 the range is 25 − 3 = 22. It is easy to compute, but it depends on only two numbers. If the 25 above is replaced by 80, the range jumps to 77 although five of the six marks have not changed.
Quartiles of a list
Arrange the data in order. The median M splits it into a lower half and an upper half. The first quartile Q₁ is the median of the lower half, and the third quartile Q₃ is the median of the upper half. When the number of observations is odd, the median itself is left out of both halves. (Books differ slightly in how they treat quartiles; this course uses this rule.) The second quartile Q₂ is the median.
The interquartile range is Q₃ − Q₁, the length of the interval holding the middle half of the data. The quartile deviation (semi-interquartile range) is half of it: QD = (Q₃ − Q₁)/2.
Range = largest − smallest. Q₁ = median of the lower half, Q₃ = median of the upper half (leave out the median if n is odd). Interquartile range = Q₃ − Q₁. Quartile deviation = (Q₃ − Q₁)/2.
Worked example 1: an odd number of observations
Find the quartiles of 3, 5, 7, 8, 12, 15, 18. Here n = 7 and the data are already in order. The median is the 4th value, 8. The lower half is 3, 5, 7, whose median is Q₁ = 5. The upper half is 12, 15, 18, so Q₃ = 15. The interquartile range is 15 − 5 = 10 and the quartile deviation is 10/2 = 5.
Worked example 2: an even number of observations
Find the quartiles of 2, 4, 6, 9, 11, 12, 15, 20. Here n = 8, so the median is (9 + 11)/2 = 10 and the halves are 2, 4, 6, 9 and 11, 12, 15, 20. Q₁ = (4 + 6)/2 = 5 and Q₃ = (12 + 15)/2 = 13.5. The interquartile range is 8.5 and the quartile deviation is 4.25. The range is 18, much larger, because it includes the extreme ends.
Quartiles of grouped data
For grouped data we treat the quartiles like the median. Q₁ is the value at the position N/4 and Q₃ at the position 3N/4. Find the class where the cumulative frequency first reaches that position, and use Q = l + ((position − cf)/f) × h, with l, cf, f and h defined exactly as for the median.
Worked example 3: grouped quartiles
Classes 0-10, 10-20, 20-30, 30-40, 40-50 have frequencies 5, 10, 15, 6, 4, so N = 40 and the cumulative frequencies are 5, 15, 30, 36, 40. For Q₁ the position is 40/4 = 10, which is first reached in the class 10-20 (cumulative 15). Here l = 10, cf = 5, f = 10, h = 10, so Q₁ = 10 + ((10 − 5)/10) × 10 = 15. For Q₃ the position is 30, first reached in the class 20-30 (cumulative 30), with l = 20, cf = 15, f = 15, h = 10, so Q₃ = 20 + ((30 − 15)/15) × 10 = 30. Then the quartile deviation is (30 − 15)/2 = 7.5.
Effect of changing the data
Adding the same number to every value moves all the values, the quartiles and the median by that number, so the range and the quartile deviation do not change. Multiplying every value by k multiplies the range and the quartile deviation by |k|. A multiplier of −3 turns a range of 6 into a range of 18, never −18.
Common mistakes
- Finding quartiles before arranging the data in order.
- Including the median in both halves when n is odd, which gives different quartiles from the course rule.
- Reporting the interquartile range when the question asks for the quartile deviation, which is half of it.
Key takeaways: the range uses only the extremes and is easily distorted. The quartiles describe the middle half of the data; the quartile deviation is (Q₃ − Q₁)/2. Both are unchanged by a shift and scaled by |k| under multiplication.
Check your understanding
-
1. What is the range of 12, 7, 19, 3, 25, 9?
- 28
- 22
- 21
- 16
Show answer
Answer: B. The largest value is 25 and the smallest is 3, so the range is 25 − 3 = 22.
-
2. What is the quartile deviation of 3, 5, 7, 8, 12, 15, 18?
- 10
- 7.5
- 8
- 5
Show answer
Answer: D. The median is 8. Q₁ = 5 and Q₃ = 15, so the interquartile range is 10 and the quartile deviation is 10/2 = 5.
-
3. What is the third quartile of 2, 4, 6, 9, 11, 12, 15, 20?
- 13.5
- 12
- 15
- 11
Show answer
Answer: A. The upper half is 11, 12, 15, 20, whose median is (12 + 15)/2 = 13.5.
-
4. The range of a data set is 6. Every value is multiplied by −3. What is the new range?
- −18
- 6
- 18
- 9
Show answer
Answer: C. The range is multiplied by |−3| = 3, so the new range is 18. A range cannot be negative.
-
5. Classes 0-10 to 40-50 have frequencies 5, 10, 15, 6, 4. What is Q₁?
- 10
- 12.5
- 20
- 15
Show answer
Answer: D. N/4 = 10 first falls in the class 10-20 (cumulative 15, with cf = 5 before it). Q₁ = 10 + ((10 − 5)/10) × 10 = 15.
Sign in to keep track of the lessons you finish.