Find a quartile by the median-of-halves rule
A plain-language explanation of quartiles and the interquartile range. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.
A quartile is a median of a half. Sort the sample, find its median, then:
- - * is the median of the values below**;
- - * is the median of the values above**.
On an odd count the median itself belongs to neither half. With seven values the median is the fourth, and the halves are the three below it and the three above it. That is the median-of-halves rule, and stating it is essential: the other common convention includes the median in both halves and gives different answers on odd counts.
Each quartile marks a count, not a distance. has a quarter of the values at or below it, and three quarters.
Because a position is resistant. depends on the order of the lower half, so a wild value above cannot move it. If quartiles were fractions of the range they would move with the extremes, and a box plot would stretch to accommodate the very outlier it is meant to reveal.
The IQR and the 1.5-IQR fences are built on that resistance, which is why they are the summaries reported for skewed data.
Seven values:. Median; the halves are and, so and.
Eight values:. Median; the halves are and, so and.
Check. In both cases each quartile has about a quarter of the values at or below it. A quartile that does not is a sign the rule was misapplied.
- Find Q1, Q2 and Q3 of a sample
- Apply the median-of-halves rule, including where the median goes on an odd count
- Say what each quartile marks in terms of counts
- 1. Find, and of.
- 2. What fraction of the values lie between and?
Answers
- 1., lower half gives, upper half gives.
- 2. About half — that is what makes the box the middle half.