Maths4UBETA

Box-and-whisker plots, outliers and interpretation

Find a complete five-number summary, follow the stated whisker rule and make defensible comparisons.

Try the quick check →
Lesson 5 of 5

Section 1 of 4 · Core · about 8 min

What does a box-and-whisker plot show?

A box plot summarises a dataset using

minimum,Q1,median,Q3,maximum.\text{minimum},\quad Q_1,\quad\text{median},\quad Q_3,\quad\text{maximum}.

The box runs from Q1Q_1 to Q3Q_3, and a line inside marks the median. Its width is the interquartile range. A common measurement scale lets you compare several samples without displaying every observation.

Worked example

Calculate a summary before drawing the box

Sample A contains these nine completion times, in seconds:

8, 13, 15, 16, 17, 18, 20, 22, 348,\ 13,\ 15,\ 16,\ 17,\ 18,\ 20,\ 22,\ 34.

Quartile rule: take the median of each half of the ordered data. For an odd count, exclude the single overall middle observation from both halves.

Find the five-number summary, IQR and range, and describe the default box plot using minimum/maximum whiskers.

  1. The values are already ordered. The fifth observation is the median:

    M=17 s.M=17\,\mathrm{s}.
  2. Exclude that single middle observation. The halves are

    8,13,15,16and18,20,22,34.8,13,15,16\qquad\text{and}\qquad18,20,22,34.Q1=13+152=14 s,Q3=20+222=21 s.Q_1=\frac{13+15}{2}=14\,\mathrm{s},\qquad Q_3=\frac{20+22}{2}=21\,\mathrm{s}.
  3. five-number summary=(8,14,17,21,34).\text{five-number summary}=(8,14,17,21,34).IQR=21−14=7 s,range=34−8=26 s.\mathrm{IQR}=21-14=7\,\mathrm{s},\qquad\mathrm{range}=34-8=26\,\mathrm{s}.
  4. On an evenly spaced seconds axis, draw the box from 1414 to 2121, the median line at 1717, and default whiskers to the observed extremes 88 and 3434.

Your turn

Ten recorded times, in seconds, are

3, 6, 8, 11, 14, 16, 19, 21, 25, 27.3,\ 6,\ 8,\ 11,\ 14,\ 16,\ 19,\ 21,\ 25,\ 27.

Quartile rule: take the median of each half of the ordered data. For an odd count, exclude the single overall middle observation from both halves.

Find the five-number summary for a default box plot with minimum and maximum whiskers.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 2 of 4 · Core · about 7 min

How do I identify an outlier?

An outlier is an observation unusually far from the central data under a stated rule. For the rule used here, first calculate the IQR, then form two comparison boundaries called fences.

Worked example

Calculate fences and test the actual observations

Sample A has observations 8, 13, 15, 16, 17, 18, 20, 22, 348,\ 13,\ 15,\ 16,\ 17,\ 18,\ 20,\ 22,\ 34 seconds, with Q1=14Q_1=14 and Q3=21Q_3=21. Apply the 1.5IQR1.5\mathrm{IQR} rule to identify every outlier. Under these fixed fences, would a value exactly 31.531.5 be flagged?

  1. IQR=21−14=7,1.5IQR=10.5.\mathrm{IQR}=21-14=7,\qquad1.5\mathrm{IQR}=10.5.
  2. L=14−10.5=3.5 s,U=21+10.5=31.5 s.L=14-10.5=3.5\,\mathrm{s},\qquad U=21+10.5=31.5\,\mathrm{s}.
  3. No observation is below 3.53.5, and only 3434 exceeds 31.531.5. Thus the only outlier is 34 s34\,\mathrm{s}.

  4. A value exactly 31.531.5 equals the upper fence. It is not strictly greater, so it is not an outlier under these fixed fences. The fence 31.531.5 is not one of the original observations.

Your turn

A larger time sample has Q1=12 sQ_1=12\,\mathrm{s} and Q3=18 sQ_3=18\,\mathrm{s}. Some of its observations are 2,3,14,27,282,3,14,27,28 seconds. Using the 1.5IQR1.5\mathrm{IQR} rule, find the lower and upper fences and identify every outlier among these listed observations.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

Section 3 of 4 · Core · about 8 min

Where should the whiskers end?

State the drawing convention before choosing endpoints. The default plot in this chapter uses the minimum and maximum. A modified plot, only when requested, ends its whiskers at the most extreme observed values that are not outliers, and displays the outliers separately.

The default plot includes 34 in the upper whisker. The modified plot ends its upper whisker at 22 and marks 34 separately.

Ordered times in seconds: 8,13,15,16,17,18,20,22,348,13,15,16,17,18,20,22,34.

Q1=13+152=14,Q2=17,Q3=20+222=21.Q_1=\frac{13+15}{2}=14,\quad Q_2=17,\quad Q_3=\frac{20+22}{2}=21.IQR=7,L=14−32(7)=3.5,U=21+32(7)=31.5.\mathrm{IQR}=7,\quad L=14-\tfrac32(7)=3.5,\quad U=21+\tfrac32(7)=31.5.

A value outside [3.5,31.5][3.5,31.5] is an outlier. Equality with a fence is included.

Both conventions use Q1=14Q_1=14, median 1717, and Q3=21Q_3=21. The default upper whisker is 3434; the explicitly modified upper whisker is 2222, with 3434 marked separately. The upper fence 31.531.5 is not an observation.

Worked example

Change the drawing convention without deleting a record

Sample A is 8, 13, 15, 16, 17, 18, 20, 22, 348,\ 13,\ 15,\ 16,\ 17,\ 18,\ 20,\ 22,\ 34 seconds. Its summary is (8,14,17,21,34)(8,14,17,21,34), with outlier fences 3.53.5 and 31.531.5. State the default whisker endpoints. Then draw an explicitly requested modified box plot with whiskers at the most extreme non-outlier observations.

  1. The default convention uses the observed minimum and maximum:

    whiskers at 8 and 34 s.\text{whiskers at }8\text{ and }34\,\mathrm{s}.

    Identifying an outlier does not silently change this convention.

  2. For the modified plot, 3434 is outside the upper fence. The smallest non-outlier is 88, and the largest is 2222.

    modified whiskers at 8 and 22 s.\text{modified whiskers at }8\text{ and }22\,\mathrm{s}.
  3. Keep the box from 1414 to 2121 and median at 1717. Plot a separate outlier marker at 3434. Do not draw the upper whisker to the unobserved fence 31.531.5.

  4. The sample still contains all nine records. Only the display has changed, so its quartiles are not recalculated after removing the flagged value.

Your turn

A recorded-time sample, in seconds, is

0, 10, 11, 12, 13, 14, 15, 16, 30.0,\ 10,\ 11,\ 12,\ 13,\ 14,\ 15,\ 16,\ 30.

Its lower and upper outlier fences are 33 and 2323 seconds. Give the two whisker endpoints for (a) the default minimum/maximum convention and (b) an explicitly requested modified plot whose whiskers end at the most extreme non-outlier observations.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 4 of 4 · Core · about 8 min

What can I conclude from two box plots?

Draw both plots on the same measurement scale and identify each sample. Compare the medians for a typical value and the IQRs for central spread. Quote the numbers and units, then explain their meaning: a lower time may mean faster completion, while a higher score may be preferable.

A has five landmarks 8, 14, 17, 21 and 34. B has 12, 17, 20, 23 and 28.

GroupMedian (s)IQR (s)Range (s)
A17726
B20616

A has the lower median. B has the smaller IQR. The outlying 3434 remains the maximum for A and reaches the whisker under the default convention.

A has median 17 s17\,\mathrm{s} and IQR 7 s7\,\mathrm{s}; B has median 20 s20\,\mathrm{s} and IQR 6 s6\,\mathrm{s}. Both use the same seconds scale and the default minimum/maximum whiskers.

Worked example

Compare typical times and central spread on one scale

Samples A and B contain times for completing the same task. Their five-number summaries, in seconds, are

SampleMinimumQ1Q_1MedianQ3Q_3Maximum
A881414171721213434
B12121717202023232828

Use default minimum/maximum box plots on a shared scale. Compare centre, central spread and overall range, and state one limit of the comparison.

  1. A’s median is 1717 seconds and B’s is 2020 seconds. A has the lower typical completion time by the median.

  2. IQRA=21−14=7 s,IQRB=23−17=6 s.\mathrm{IQR}_A=21-14=7\,\mathrm{s},\qquad\mathrm{IQR}_B=23-17=6\,\mathrm{s}.

    B has less variation among its central observations.

  3. rangeA=34−8=26 s,rangeB=28−12=16 s.\mathrm{range}_A=34-8=26\,\mathrm{s},\qquad\mathrm{range}_B=28-12=16\,\mathrm{s}.

    A also has the larger overall range, including its flagged long time of 3434 seconds.

  4. The summaries support those sample comparisons. They do not say every A time is faster than every B time, establish the exact means, or explain why the samples differ.

Your turn

Two samples of completion times have these five-number summaries, in seconds.

SampleMinimumQ1Q_1MedianQ3Q_3Maximum
A551212151520203232
B881313181819192525

Which sample has the lower typical completion time by its median? Which has less central spread? What can these summaries establish about the exact means?

Lower typical completion time
Smaller interquartile range
Conclusion about exact sample means

A box plot does not normally reveal the sample size, exact mean, mode or every individual value. Box width is a measurement distance, not an observation count. Quartiles mark positions, but with finite samples or ties, the drawn sections need not contain exactly 25%25\% of the observations each.

Unequal spacings can suggest asymmetry, but five landmarks do not reveal the full distribution or prove a normal distribution. Keep conclusions about the observed samples and the summaries actually displayed.

Worked examples

Five numbers and the central spread

Strict comparisons with calculated fences

Default and explicitly modified plots

Compare in context and respect the limits

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

A complete five-number summary

5 marks

Find the complete five-number summary for 4, 5, 7, 8, 9, 11, 13, 15, 20. Use medians of halves, excluding the overall median.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Build all five landmarks from the ordered records

Task times, in seconds, were recorded as

6,12,8,14,10,18,22,24,50.6,12,8,14,10,18,22,24,50.

Find the five-number summary, IQR and range. The box plot uses minimum-to-maximum whiskers.

For raw-data quartiles, use the median of each half, excluding the overall middle observation when the count is odd.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Equality at a fence is not an outlier

A collection of lengths has Q1=20Q_1=20 cm and Q3=28Q_3=28 cm. Four of its observations are 7,8,40,417,8,40,41 cm. Use the rule “strictly below Q1−1.5IQRQ_1-1.5\mathrm{IQR} or strictly above Q3+1.5IQRQ_3+1.5\mathrm{IQR}”. Find both fences and every outlier among these four listed observations.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

Use the requested whisker convention

The complete ordered data are

0,10,11,12,13,14,15,16,17,18,19,20,40.0,10,11,12,13,14,15,16,17,18,19,20,40.

Use the strict 1.5IQR1.5\mathrm{IQR} rule. Give all outliers, both whisker endpoints under the minimum-to-maximum convention, and both endpoints for a modified box plot whose whiskers reach the extreme non-outlier observations.

For raw-data quartiles, use the median of each half, excluding the overall middle observation when the count is odd.

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Compare typical speed and central consistency separately

Two sets of completion times have five-number summaries, in minutes:

A:(10,18,22,28,70),B:(12,20,25,26,40).A:(10,18,22,28,70),\qquad B:(12,20,25,26,40).

The entries are minimum, lower quartile, median, upper quartile and maximum. Find both IQRs and choose the supported comparison.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Supported contextual comparison

The same box plot can come from different means

Consider the two complete raw datasets:

A:0,2,4,6,8,10,12,14,16;A:0,2,4,6,8,10,12,14,16;B:0,1,5,7,8,10,11,15,16.B:0,1,5,7,8,10,11,15,16.

Find both means. Decide whether their five-number summaries, and hence their minimum-to-maximum box plots, are identical.

For raw-data quartiles, use the median of each half, excluding the overall middle observation when the count is odd.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

Are their five-number summaries identical?

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Start after this lesson

Construct and explain a box plot for repair costs 8 marks

Twelve repair costs, in pounds, are

18,20,22,24,25,26,28,29,30,32,34,80.18,20,22,24,25,26,28,29,30,32,34,80.

Find the quartiles and median, the strict 1.5IQR1.5\mathrm{IQR} fences, and the outlier. Draw a modified box plot whose whiskers reach the most extreme non-outlier observations, marking any outlier separately. Give the right whisker endpoint.

For raw-data quartiles, use the median of each half, excluding the overall middle observation when the count is odd.

Hint

There are six observations in each half. After calculating the fences, select the observed endpoints that remain inside them.

Worked solution
  1. Q1=22+242=£23,M=26+282=£27,Q3=30+322=£31.Q_1=\frac{22+24}{2}=\text{£}23,\quad M=\frac{26+28}{2}=\text{£}27,\quad Q_3=\frac{30+32}{2}=\text{£}31.
  2. IQR=31−23=£8,L=23−1.5(8)=£11,U=31+1.5(8)=£43.\mathrm{IQR}=31-23=\text{£}8,\quad L=23-1.5(8)=\text{£}11,\quad U=31+1.5(8)=\text{£}43.
  3. Only £80\text{£}80 lies strictly outside the fences. The most extreme non-outliers are £18\text{£}18 and £34\text{£}34.

  4. Use a labelled pounds scale. Draw the box from 2323 to 3131, the median line at 2727, whiskers to 1818 and 3434, and a separate outlier marker at 8080. The fence at 4343 is not a whisker endpoint.

  5. The unusually high cost deserves investigation, but the outlier rule alone does not show that it is a recording error or justify deleting it.

Marking guidance
  • 1 mark: use the correct halves and obtain both quartiles.
  • 1 mark: obtain the median.
  • 1 mark: calculate the IQR and both fences.
  • 1 mark: identify the outlier with strict comparisons.
  • 1 mark: select the observed non-outlier whisker endpoints.
  • 1 mark: use a consistent labelled measurement scale.
  • 1 mark: position the box, median and whiskers correctly.
  • 1 mark: plot the outlier separately and distinguish the fence from the endpoint.
Find the first integer value that becomes an outlier 7 marks

The ordered observations are

4,6,8,9,10,12,14,16,k,k≥16,4,6,8,9,10,12,14,16,k,\qquad k\ge16,

where kk is an integer. Use the strict 1.5IQR1.5\mathrm{IQR} rule. Find the IQR and upper fence, then the least value of kk that is an outlier. For this least value, give the right whisker endpoint in an explicitly modified box plot. Finally reduce kk by one: give the new modified right whisker endpoint and explain the change on paper.

For raw-data quartiles, use the median of each half, excluding the overall middle observation when the count is odd.

Hint

The largest observation does not enter either quartile calculation here. An outlier must be strictly above the upper fence.

Worked solution
  1. Q1=6+82=7,M=10,Q3=14+162=15.Q_1=\frac{6+8}{2}=7,\quad M=10,\quad Q_3=\frac{14+16}{2}=15.
  2. IQR=15−7=8,L=7−1.5(8)=−5,U=15+1.5(8)=27.\mathrm{IQR}=15-7=8,\quad L=7-1.5(8)=-5,\quad U=15+1.5(8)=27.
  3. For an upper outlier, k>27k>27. Since kk is an integer, the least allowed outlier is 2828. It is marked separately; the right modified whisker ends at the largest non-outlier, 1616.

  4. Reducing kk by one gives 2727, exactly on the upper fence. It is not an outlier under the strict rule, so the modified right whisker now ends at 2727. The quartiles and IQR remain unchanged.

  5. This endpoint change follows the stated plotting convention. Under minimum-to-maximum whiskers, the right endpoints would simply be 2828 and 2727.

Marking guidance
  • 1 mark: locate the quartile ranks and obtain the quartiles.
  • 1 mark: calculate IQR and upper fence.
  • 1 mark: use a strict inequality for an outlier.
  • 1 mark: obtain the least integer value.
  • 1 mark: select the original modified whisker endpoint.
  • 1 mark: identify equality at the fence as a non-outlier.
  • 1 mark: update the modified whisker and explain why quartiles stay fixed.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.

Question bank and saved work