Skip to content

Quartiles, boxplots, z-scores and outliers

Find a data set's five-number summary and boxplot, flag outliers with the 1.5 IQR rule, and place a value with its z-score and the empirical rule.

It opens on

Eleven orders ranged from $22 to $140. Would the middle half of the orders fit in a band about $24 wide, about $60 wide or about $118 wide?

Why it matters

Averages hide the unusual order, the slow delivery and the lucky quarter, and a manager needs quick ways to see the middle half of the data and to spot values that deserve a second look.

Good to know first

  • median

Step by step

  1. The five-number summary and the box

    Find the quartiles of a data set by the median-of-each-half rule and draw the boxplot.

    A common mix-up

    The quartiles are found from the whole list's positions, so Q1 is always the 3rd value.

    In fact: Q1 is the median of the lower half, and the count and the rule decide which values it uses.

  2. The 1.5 IQR rule and outliers

    Compute the fences with the 1.5 IQR rule and decide which values are outliers.

    The upper fence is Q3 + 36 = 52 + 36 = 88.

    upper fence = 52 + 36 = 88

    A common mix-up

    Any value far from the mean is an outlier.

    In fact: The rule uses the quartiles and the IQR, so a skewed set can have values far from the mean that are not flagged.

  3. z-scores

    Compute a z-score and say what it tells about a value and about the data.

    For the $58 order, z = (58 − 46.45) / 32.99 = 0.35, a little above average.

    z = 11.55 / 32.99 = 0.35

    A common mix-up

    A z-score above 3 is the only test for an outlier.

    In fact: The mean and s are themselves dragged by outliers, so the IQR rule is often safer for skewed data.

  4. The empirical rule and Chebyshev's rule

    Use the empirical rule for bell-shaped data and Chebyshev's rule for any data to say what share lies within k standard deviations.

    Within 2 standard deviations means 50 ± 2 × 8, which is 34 to 66 minutes, so about 95% of orders are processed in that time.

    50 ± 16 = 34 to 66, about 95%

    A common mix-up

    The empirical rule holds for any data set.

    In fact: It needs a roughly bell-shaped distribution, while Chebyshev's rule holds for every one but says less.

Try it

Find Q1, the median and Q3 of the delivery times 3, 5, 6, 8, 11, 12 and 20 days.Answer

Q1 = 5, median = 8, Q3 = 12

Hint: Leave the median out of the halves

A set has Q1 = 40 and Q3 = 60. Is a value of 95 an outlier?Answer

The IQR is 20, 1.5 × 20 = 30 and the upper fence is 90, so yes

Hint: Compute the upper fence

Delivery times have mean 40 hours and s = 8 hours. Find the z-score of a delivery of 52 hours.Answer

(52 − 40) / 8 = 1.5

Hint: Subtract, then divide

A bell-shaped set has mean 100 and s = 15. Between which two values do about 68% lie?Answer

85 to 115

Hint: One s each side

Eight order values are 10, 12, 15, 18, 22, 25, 31 and 40. With n even, both halves have four values. What is Q1?Answer

The median of 10, 12, 15 and 18, which is (12 + 15) / 2 = 13.5

Quartiles, boxplots, z-scores and outliers

30 minutes every month. No card.