Compute the interquartile range
A plain-language explanation of the interquartile range and outliers. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.
The interquartile range is
It is the width of the interval that holds the middle half of the data: a quarter of the values lie below, a quarter above, and half in between.
Because and are positions rather than sums, the IQR is resistant: an extreme value changes which value sits at a position far less than it changes a total. That is why the IQR, not the range, is the spread reported beside a median.
Resistant is not immune. A wild value can still shift a half's median by one position; what it cannot do is set the IQR single-handedly the way it sets the range.
Because the tails are where the surprises are, and a spread measure that includes them reports the surprises rather than the data. Half the values are inside the IQR, and that half is what a typical observation looks like.
It also matches the box plot, which draws exactly this interval as its box. A reader who sees a box plot is reading an IQR, so reporting the IQR is reporting the picture.
Data:. Sorted,; the halves are and, so, and IQR.
Add 1,000. The quartiles become and still — the eight values now split as four and four, and the third and sixth are 7 and 9, so and; the IQR is 4.5. The RANGE, meanwhile, went from 9 to 996.
Check. One wild value moved the IQR by half a unit and the range by a factor of a hundred. That ratio is what "resistant" means.
- Compute the IQR as
- Say what the IQR measures and why it is resistant
- Contrast the IQR with the range on data with an outlier
- 1. For find, and the IQR.
- 2. What fraction of the values lies inside the IQR?
Answers
- 1.,, IQR.
- 2. About half.