All AP Courses AP StatisticsAP Stats

Practice

Quartiles, IQR and outliers

Find quartiles by the median-of-halves method and test for outliers with the 1.5 IQR rule.

The skill

Sort the data and split it at the median. Q1 is the median of the lower half and Q3 is the median of the upper half; when n is odd, the median itself goes in neither half. The interquartile range, IQR=Q3−Q1, is the spread of the middle half of the data. A value is an outlier when it sits more than 1.5×IQR below Q1 or above Q3. Students who skip the sort get quartiles that mean nothing.

A worked example

The ages of the people waiting in line at a coffee shop were:

46, 62, 19, 49, 54, 19, 59, 64, 32, 136, 37, 44 years.

Find the upper fence for outliers, Q3 + 1.5(IQR). Round to two decimal places if needed.

Solution

  1. Sort: 19, 19, 32, 37, 44, 46, 49, 54, 59, 62, 64, 136. The median is 47.50.
  2. Lower half: 19, 19, 32, 37, 44, 46, so Q1 = 34.50. Upper half: 49, 54, 59, 62, 64, 136, so Q3 = 60.50.
  3. IQR = Q3 − Q1 = 26.00. Fences: Q1 − 1.5(IQR) = −4.50 and Q3 + 1.5(IQR) = 99.50.
  4. Values outside the fences: 136. That is 1 outlier.

Answer: 99.5

Your turn

Lessons behind these problems