Exploring data: graphs and numerical summaries
◄Previous: 5.6.1 Quartiles for the SIRDS data

# 5.6.2 Quartiles when the sample size is awkward

For the six ordered data items 1, 3, 3, 6, 7, 7, the lower quartile is given by

In other words, the lower quartile qL is given by the number three-quarters of the way between x (1)=1 and x (2)=3. The difference between x (1) and x (2) is 2, so

qL = x (1) + ¾(x (2) – x (1)) = 1 + ¾ × 2 = 2.5.

The upper quartile is given by

So the upper quartile qu is the number one-quarter of the way between x (5)=7 and x (6)=7. This is just the number 7 itself.

Having defined the quartiles, it is straightforward to define the measure of dispersion based on them: the interquartile range is the difference between the quartiles.

## The interquartile range

The interquartile range, which is a measure of the dispersion in a data set, is the difference qU−qL between the upper quartile qU and the lower quartile qL .

◄Contents►Next: 5.6.3 Interquartile range for the SIRDS data

OpenLearn - Exploring data: graphs and numerical summaries
Except for third party materials and otherwise, this content is made available under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Licence, full copyright detail can be found in the acknowledgements section. Please see full copyright statement for details.