Chalk−1

Math · Introductory statistics · Worked example

Find quartiles and the interquartile range

Find the five-number summary and the interquartile range of the sleep data 3, 4, 5, 6, 6, 7, 8, 9.

Minimum, median and maximum

The data are already sorted: the minimum is 3, the median 6 and the maximum 9.

Take the medians of the halves

Split the sorted data into a lower half, 3, 4, 5, 6, and an upper half, 6, 7, 8, 9. Q1 and Q3 are their medians. Eight values split evenly. With an odd count, leave the median out of both halves.

4+52=4.57+82=7.5

Find the IQR

7.5−4.5=3

Compare interpolation

Much statistical software interpolates instead. It puts the quartile for a share p at position 1+p⁢(n−1) in the sorted list. With n=8, Q1 sits at position 1+0.25×7=2.75: three quarters of the way from the 2nd value, 4, to the 3rd, 5. Q3 sits at position 6.25, a quarter of the way from 7 to 8. That gives 4.75 and 7.25, an IQR of 2.5. Both methods are accepted, so say which one you use.

4+0.75⋅(5−4)=4.757+0.25⋅(8−7)=7.25

Result

The five-number summary is 3, 4.5, 6, 7.5, 9, so IQR=3. Interpolated quartiles are 4.75 and 7.25.

Your turn

1. One like the example

Use the halves method to find the median, Q1, Q3 and the IQR of 1, 2, 4, 4, 5, 7, 8, 9, 11, 12, 14 and 20.

Show the answer and explanation

Median 7.5, Q1=4, Q3=11.5 and IQR=7.5.

Twelve values have two middle ones, 7 and 8. The lower half is 1, 2, 4, 4, 5, 7, with middle values 4 and 4. The upper half is 8, 9, 11, 12, 14, 20, with middle values 11 and 12.

1,2,4,4,5,7,8,9,11,12,14,207+82=7.54+42=411+122=11.511.5−4=7.5

2. A variation

Find the five-number summary of 1, 3, 5, 7, 9, 11 and 13 with the halves method, and the outlier fences.

Show the answer and explanation

1, 3, 7, 11, 13. IQR=8, so the fences are −9 and 23, and no value is flagged.

With seven values the median, 7, is left out of both halves. The lower half 1, 3, 5 has median 3, and the upper half 9, 11, 13 has median 11. The fences are 3−12 and 11+12.

1,3,5,7,9,11,1311−3=83−1.5⋅8=−911+1.5⋅8=23

3. Somewhere new

Two sections’ quiz scores have five-number summaries 52, 64, 71, 78, 95 (section A) and 40, 68, 72, 75, 99 (section B). Which section’s middle half is more spread out, and which has the larger range?

Show the answer and explanation

Section A’s middle half is wider, with IQR 14 against 7. Section B has the larger range, 59 against 43.

The range uses only the two extremes, so one very low and one very high score stretch section B’s. The IQR ignores the extremes and shows that B’s middle half is packed more tightly. Two measures of spread can disagree, so say which one you mean.

52,64,71,78,9578−64=1475−68=795−52=4399−40=59

Keep exploring

In Statistics, the Summary lists Q1=4.5 and Q3=7.5, the medians of the two halves.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Summarize the data in Statistics Check the quartiles in Math Study the 8 key terms Open worked example on a board Sample standard deviation in Math Reference

Your existing work stays on this device. Examples open as editable copies.