TExcelTAD
Home › School Probability & Statistics on Paper › Hand Drawing Box-and-Whisker Plots and Outlier Detection

Hand Drawing Box-and-Whisker Plots and Outlier Detection

A box-and-whisker plot (or simply box plot), pioneered by the mathematician John Tukey, is a clean graphical summary of a dataset constructed directly from its Five-Number Summary.

Unlike histograms or stem-and-leaf plots, a box plot displays the center, spread, and skewness of a distribution simultaneously while providing a rigorous mathematical rule to detect outliers—unusual observations that lie far beyond the rest of the data.


Anatomy of a Box-and-Whisker Plot

A standard box plot is drawn above a uniformly scaled number line:

The Box:Spans from Q1 to Q3. Its width equals the Interquartile Range (IQR).It contains the middle 50% of all observations.The Median Line:A vertical line drawn inside the box at Q2.The Whiskers:Horizontal lines extending from Q1 down to the lowest non-outlier value,and from Q3 up to the highest non-outlier value.Outliers:Isolated points plotted individually as dots (∙) or asterisks (∗).\begin{aligned} \textbf{The Box:} \quad &\text{Spans from } Q_1 \text{ to } Q_3 \text{. Its width equals the Interquartile Range (IQR).} \\ &\text{It contains the middle } 50\% \text{ of all observations.} \\ \textbf{The Median Line:} \quad &\text{A vertical line drawn inside the box at } Q_2 \text{.} \\ \textbf{The Whiskers:} \quad &\text{Horizontal lines extending from } Q_1 \text{ down to the lowest non-outlier value,} \\ &\text{and from } Q_3 \text{ up to the highest non-outlier value.} \\ \textbf{Outliers:} \quad &\text{Isolated points plotted individually as dots }(\bullet)\text{ or asterisks }(*)\text{.} \end{aligned}
               Lower Whisker            Box            Upper Whisker
             |--------------|=========================|--------------|
                            |                         |
   *         |              |            |            |              |
Outlier   Min Non-Outlier   Q1        Median (Q2)     Q3      Max Non-Outlier
<---------------------------------------------------------------------------->
                               Scaled Number Line

Formula Box: The 1.5×IQR1.5 \times \text{IQR} Rule for Outliers

To determine whether an extreme value is an outlier on paper, calculate Tukey's Fences:

Interquartile Range:IQR=Q3−Q1Lower Fence (LF):LF=Q1−1.5×IQRUpper Fence (UF):UF=Q3+1.5×IQROutlier Condition:x<LForx>UF\begin{aligned} \text{Interquartile Range:} \quad &\text{IQR} = Q_3 - Q_1 \\ \text{Lower Fence } (\text{LF}): \quad &\text{LF} = Q_1 - 1.5 \times \text{IQR} \\ \text{Upper Fence } (\text{UF}): \quad &\text{UF} = Q_3 + 1.5 \times \text{IQR} \\ \textbf{Outlier Condition:} \quad &x < \text{LF} \quad \text{or} \quad x > \text{UF} \end{aligned}

The Whisker Rule (Paper Convention): Whiskers do not extend to the theoretical fences!

  • The lower whisker stops at the smallest actual data value that is ≥LF\ge \text{LF}.
  • The upper whisker stops at the largest actual data value that is ≤UF\le \text{UF}.
  • Any value beyond the fences is marked individually as a standalone outlier point.

Step-by-Step Paper Notebook Method

Step 1: Order Data and Find the Five-Number Summary

Sort the nn raw data points and determine xmin⁡,Q1,Q2,Q3,xmax⁡x_{\min}, Q_1, Q_2, Q_3, x_{\max}.

Step 2: Compute IQR and Fences

  1. IQR=Q3−Q1\text{IQR} = Q_3 - Q_1.
  2. Calculate the step: 1.5×IQR1.5 \times \text{IQR}.
  3. LF=Q1−1.5×IQR\text{LF} = Q_1 - 1.5 \times \text{IQR}.
  4. UF=Q3+1.5×IQR\text{UF} = Q_3 + 1.5 \times \text{IQR}.

Step 3: Identify Outliers and Whisker Boundaries

  • List any data points smaller than LF\text{LF} (lower outliers).
  • List any data points larger than UF\text{UF} (upper outliers).
  • Identify the lower adjacent value: the minimum data value that is ≥LF\ge \text{LF}.
  • Identify the upper adjacent value: the maximum data value that is ≤UF\le \text{UF}.

Step 4: Draw the Plot Using a Ruler

  1. Draw an Axis: Draw a horizontal axis using a ruler with clear, uniform tick marks that cover the entire range from the smallest point to the largest point.
  2. Draw the Box: Draw a rectangular box above the axis spanning from Q1Q_1 to Q3Q_3.
  3. Draw the Median: Draw a vertical line through the box at Q2Q_2.
  4. Draw the Whiskers: Draw horizontal lines from Q1Q_1 leftward to the lower adjacent value, and from Q3Q_3 rightward to the upper adjacent value. Cap each whisker with a small vertical tick.
  5. Plot Outliers: Place an asterisk (∗*) or solid circle (∙\bullet) above the axis at each outlier value.

Worked Examples

Example 1: Modified Box Plot with an Upper Outlier

Problem: The scores of 1212 students in a math contest are:

14, 18, 20, 21, 22, 23, 25, 26, 27, 30, 32, 5214, \ 18, \ 20, \ 21, \ 22, \ 23, \ 25, \ 26, \ 27, \ 30, \ 32, \ 52
  1. Find the Five-Number Summary on paper.
  2. Compute the IQR and check for outliers using the 1.5×IQR1.5 \times \text{IQR} rule.
  3. State the whisker endpoints and sketch the box plot specifications.

Step-by-Step Paper Solution:

  1. Sort & Five-Number Summary (n=12n = 12): The data is already sorted:

    14, 18, 20, 21, 22, 23∣25, 26, 27, 30, 32, 5214, \ 18, \ 20, \ 21, \ 22, \ 23 \quad \Big| \quad 25, \ 26, \ 27, \ 30, \ 32, \ 52
    • Minimum: xmin⁡=14x_{\min} = 14
    • Maximum: xmax⁡=52x_{\max} = 52
    • Median (Q2Q_2): average of 6th6\text{th} (2323) and 7th7\text{th} (2525) values:
      Q2=23+252=24Q_2 = \frac{23 + 25}{2} = 24
    • Lower Half (66 values): {14,18,20,21,22,23}\{14, 18, \mathbf{20}, \mathbf{21}, 22, 23\}
      Q1=20+212=20.5Q_1 = \frac{20 + 21}{2} = 20.5
    • Upper Half (66 values): {25,26,27,30,32,52}\{25, 26, \mathbf{27}, \mathbf{30}, 32, 52\}
      Q3=27+302=28.5Q_3 = \frac{27 + 30}{2} = 28.5

    Five-Number Summary: {14, 20.5, 24, 28.5, 52}\{14, \ 20.5, \ 24, \ 28.5, \ 52\}.

  2. Compute IQR and Fences:

    IQR=Q3−Q1=28.5−20.5=8.0\text{IQR} = Q_3 - Q_1 = 28.5 - 20.5 = 8.0
    1.5×IQR=1.5×8.0=12.01.5 \times \text{IQR} = 1.5 \times 8.0 = 12.0
    • Lower Fence:
      LF=Q1−1.5(IQR)=20.5−12.0=8.5\text{LF} = Q_1 - 1.5(\text{IQR}) = 20.5 - 12.0 = 8.5
    • Upper Fence:
      UF=Q3+1.5(IQR)=28.5+12.0=40.5\text{UF} = Q_3 + 1.5(\text{IQR}) = 28.5 + 12.0 = 40.5
  3. Identify Outliers and Whisker Limits:

    • Smallest data point is 14≥8.5  ⟹  14 \ge 8.5 \implies no lower outliers.
    • Largest data point is 52>40.5  ⟹  5252 > 40.5 \implies \mathbf{52} is an upper outlier!
    • Whisker limits:
      • Lower whisker extends to xmin⁡=14x_{\min} = 14.
      • Upper whisker extends to the largest data value ≤40.5\le 40.5, which is 3232.
      • Outlier 5252 is plotted as a single isolated dot (∙\bullet).
  4. Plot Summary Specifications on Paper:

    • Lower whisker tip: 1414
    • Box left edge: 20.520.5
    • Box median line: 2424
    • Box right edge: 28.528.5
    • Upper whisker tip: 3232
    • Outlier point: 5252

Example 2: Outlier Detection on Both Ends

Problem: Ten daily electricity usage readings (in kWh\text{kWh}) are:

2, 19, 21, 22, 24, 25, 27, 28, 31, 482, \ 19, \ 21, \ 22, \ 24, \ 25, \ 27, \ 28, \ 31, \ 48

Determine on paper whether any readings are outliers.

Step-by-Step Paper Solution:

  1. Find Quartiles (n=10n = 10, already sorted):

    2, 19, 21, 22, 24∣25, 27, 28, 31, 482, \ 19, \ 21, \ 22, \ 24 \quad \Big| \quad 25, \ 27, \ 28, \ 31, \ 48
    • Median Q2=24+252=24.5Q_2 = \frac{24 + 25}{2} = 24.5.
    • Lower half: {2,19,21,22,24}  ⟹  Q1=21\{2, 19, \mathbf{21}, 22, 24\} \implies Q_1 = 21.
    • Upper half: {25,27,28,31,48}  ⟹  Q3=28\{25, 27, \mathbf{28}, 31, 48\} \implies Q_3 = 28.
  2. Compute IQR and Fences:

    IQR=Q3−Q1=28−21=7\text{IQR} = Q_3 - Q_1 = 28 - 21 = 7
    1.5×IQR=1.5×7=10.51.5 \times \text{IQR} = 1.5 \times 7 = 10.5
    • Lower Fence:
      LF=Q1−10.5=21−10.5=10.5\text{LF} = Q_1 - 10.5 = 21 - 10.5 = 10.5
    • Upper Fence:
      UF=Q3+10.5=28+10.5=38.5\text{UF} = Q_3 + 10.5 = 28 + 10.5 = 38.5
  3. Check Values Against Fences:

    • x=2x = 2: Since 2<10.52 < 10.5, 22 is a lower outlier.
    • x=48x = 48: Since 48>38.548 > 38.5, 4848 is an upper outlier.
    • All other values lie comfortably inside [10.5,38.5][10.5, 38.5].
    • Lower whisker stops at 1919 (the smallest non-outlier).
    • Upper whisker stops at 3131 (the largest non-outlier).

Example 3: Interpreting Skewness from a Box Plot

Problem: Describe the distribution shape of two hospital wards from their box plot metrics:

  • Ward A: Min=1, Q1=3, Q2=4, Q3=5, Max=7\text{Min} = 1, \ Q_1 = 3, \ Q_2 = 4, \ Q_3 = 5, \ \text{Max} = 7.
  • Ward B: Min=2, Q1=3, Q2=4, Q3=8, Max=15\text{Min} = 2, \ Q_1 = 3, \ Q_2 = 4, \ Q_3 = 8, \ \text{Max} = 15.

Step-by-Step Paper Solution:

  1. Analyze Ward A:

    • Lower box width: Q2−Q1=4−3=1Q_2 - Q_1 = 4 - 3 = 1.
    • Upper box width: Q3−Q2=5−4=1Q_3 - Q_2 = 5 - 4 = 1.
    • Lower whisker length: Q1−Min=3−1=2Q_1 - \text{Min} = 3 - 1 = 2.
    • Upper whisker length: Max−Q3=7−5=2\text{Max} - Q_3 = 7 - 5 = 2.
    • Conclusion: The median sits right at the center of the box, and both whiskers are identical in length. Ward A is symmetrically distributed.
  2. Analyze Ward B:

    • Lower box width: Q2−Q1=4−3=1Q_2 - Q_1 = 4 - 3 = 1.
    • Upper box width: Q3−Q2=8−4=4Q_3 - Q_2 = 8 - 4 = 4.
    • Lower whisker length: Q1−Min=3−2=1Q_1 - \text{Min} = 3 - 2 = 1.
    • Upper whisker length: Max−Q3=15−8=7\text{Max} - Q_3 = 15 - 8 = 7.
    • Check upper fence: IQR=8−3=5  ⟹  UF=8+1.5(5)=15.5\text{IQR} = 8 - 3 = 5 \implies \text{UF} = 8 + 1.5(5) = 15.5. The maximum (1515) is inside the fence.
    • Conclusion: The median is bunched toward the lower quartile, the upper box is four times wider than the lower box, and the upper whisker stretches far to the right (77 units vs 11 unit). Ward B is heavily right-skewed (positively skewed).

Common Mistakes & Paper Traps

  1. Drawing Whiskers to the Fences:

    • A catastrophic exam error! Fences (LF\text{LF} and UF\text{UF}) are invisible mathematical cutoffs used only to find outliers.
    • Fix: Never terminate a whisker at Q3+1.5IQRQ_3 + 1.5\text{IQR} unless a data point happens to equal that exact number. Whiskers must terminate at the most extreme non-outlier data values.
  2. Neglecting the Scaled Axis:

    • Drawing the box and whiskers with arbitrary hand-drawn lengths without drawing a proper numbered ruler scale beneath it.
    • A box plot is meaningless without an underlying numerical axis.
  3. Using 1.01.0 Instead of 1.51.5:

    • Multiplying IQR by 1.01.0 or 2.02.0 instead of the universal standard 1.51.5.
    • Tukey's fences strictly require 1.5×IQR1.5 \times \text{IQR}.
  4. Connecting Outliers to the Box:

    • Drawing whiskers all the way through outliers to the maximum value. Outliers must remain isolated dots completely detached from the whiskers.

Pencil & Paper Practice

Practice 1

Eleven marathon runners recorded their training times (in hours):

2.8, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 4.2, 5.42.8, \ 3.1, \ 3.2, \ 3.3, \ 3.4, \ 3.5, \ 3.6, \ 3.7, \ 3.8, \ 4.2, \ 5.4
  1. Calculate the Five-Number Summary on paper.
  2. Compute the Interquartile Range and the upper fence.
  3. Identify whether 5.4 hours5.4\text{ hours} is an outlier.
  4. State the value at which the upper whisker must stop.

Practice 2

A box plot displays:

  • Q1=40Q_1 = 40
  • Q3=60Q_3 = 60 What are the minimum and maximum data values that would not be considered outliers?

Worked Solutions for Practice Problems

Solution to Practice 1

  1. Sorted List (n=11n = 11):
    2.8, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 4.2, 5.42.8, \ 3.1, \ 3.2, \ 3.3, \ 3.4, \ \mathbf{3.5}, \ 3.6, \ 3.7, \ 3.8, \ 4.2, \ 5.4
    • xmin⁡=2.8x_{\min} = 2.8
    • Q2=3.5Q_2 = 3.5 (6th6\text{th} value)
    • Lower half (55 values): {2.8,3.1,3.2,3.3,3.4}  ⟹  Q1=3.2\{2.8, 3.1, \mathbf{3.2}, 3.3, 3.4\} \implies Q_1 = 3.2
    • Upper half (55 values): {3.6,3.7,3.8,4.2,5.4}  ⟹  Q3=3.8\{3.6, 3.7, \mathbf{3.8}, 4.2, 5.4\} \implies Q_3 = 3.8
    • xmax⁡=5.4x_{\max} = 5.4
  2. IQR and Upper Fence:
    IQR=3.8−3.2=0.6\text{IQR} = 3.8 - 3.2 = 0.6
    UF=Q3+1.5(IQR)=3.8+1.5(0.6)=3.8+0.9=4.7\text{UF} = Q_3 + 1.5(\text{IQR}) = 3.8 + 1.5(0.6) = 3.8 + 0.9 = 4.7
  3. Outlier Check:
    • Since 5.4>4.75.4 > 4.7, the time 5.4 hours5.4\text{ hours} is an outlier.
  4. Whisker Termination:
    • The largest value less than or equal to 4.74.7 is 4.24.2.
    • Therefore, the upper whisker terminates at 4.2 hours4.2\text{ hours}.

Solution to Practice 2

  1. IQR Calculation:
    IQR=Q3−Q1=60−40=20\text{IQR} = Q_3 - Q_1 = 60 - 40 = 20
  2. Step:
    1.5×IQR=1.5×20=301.5 \times \text{IQR} = 1.5 \times 20 = 30
  3. Fences:
    • Lower Fence: LF=40−30=10\text{LF} = 40 - 30 = 10.
    • Upper Fence: UF=60+30=90\text{UF} = 60 + 30 = 90.
  4. Conclusion:
    • Any value xx in the closed interval [10,90][10, 90] is not an outlier.
    • The minimum non-outlier threshold is 1010, and the maximum non-outlier threshold is 9090.

Test yourself

A dataset has Q1=25Q_1 = 25 and Q3=35Q_3 = 35. What is the lower fence LF\text{LF} for identifying outliers?

  1. 1010
  2. 1515
  3. 2020
  4. 55

In a modified box plot, where does the upper whisker end when outliers are present?

  1. At the upper fence Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}
  2. At the absolute maximum value in the dataset
  3. At the largest actual data value that does not exceed the upper fence
  4. At the third quartile Q3Q_3

In a box plot, if the median line is situated close to Q1Q_1 and the upper whisker is much longer than the lower whisker, what is the shape of the distribution?

  1. Symmetric
  2. Right-skewed (positively skewed)
  3. Left-skewed (negatively skewed)
  4. Uniform