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:
Lower Whisker Box Upper Whisker
|--------------|=========================|--------------|
| |
* | | | | |
Outlier Min Non-Outlier Q1 Median (Q2) Q3 Max Non-Outlier
<---------------------------------------------------------------------------->
Scaled Number LineFormula Box: The Rule for Outliers
To determine whether an extreme value is an outlier on paper, calculate Tukey's Fences:
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 .
- The upper whisker stops at the largest actual data value that is .
- 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 raw data points and determine .
Step 2: Compute IQR and Fences
- .
- Calculate the step: .
- .
- .
Step 3: Identify Outliers and Whisker Boundaries
- List any data points smaller than (lower outliers).
- List any data points larger than (upper outliers).
- Identify the lower adjacent value: the minimum data value that is .
- Identify the upper adjacent value: the maximum data value that is .
Step 4: Draw the Plot Using a Ruler
- 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.
- Draw the Box: Draw a rectangular box above the axis spanning from to .
- Draw the Median: Draw a vertical line through the box at .
- Draw the Whiskers: Draw horizontal lines from leftward to the lower adjacent value, and from rightward to the upper adjacent value. Cap each whisker with a small vertical tick.
- Plot Outliers: Place an asterisk () or solid circle () above the axis at each outlier value.
Worked Examples
Example 1: Modified Box Plot with an Upper Outlier
Problem: The scores of students in a math contest are:
- Find the Five-Number Summary on paper.
- Compute the IQR and check for outliers using the rule.
- State the whisker endpoints and sketch the box plot specifications.
Step-by-Step Paper Solution:
Sort & Five-Number Summary (): The data is already sorted:
- Minimum:
- Maximum:
- Median (): average of () and () values:
- Lower Half ( values):
- Upper Half ( values):
Five-Number Summary: .
Compute IQR and Fences:
- Lower Fence:
- Upper Fence:
- Lower Fence:
Identify Outliers and Whisker Limits:
- Smallest data point is no lower outliers.
- Largest data point is is an upper outlier!
- Whisker limits:
- Lower whisker extends to .
- Upper whisker extends to the largest data value , which is .
- Outlier is plotted as a single isolated dot ().
Plot Summary Specifications on Paper:
- Lower whisker tip:
- Box left edge:
- Box median line:
- Box right edge:
- Upper whisker tip:
- Outlier point:
Example 2: Outlier Detection on Both Ends
Problem: Ten daily electricity usage readings (in ) are:
Determine on paper whether any readings are outliers.
Step-by-Step Paper Solution:
Find Quartiles (, already sorted):
- Median .
- Lower half: .
- Upper half: .
Compute IQR and Fences:
- Lower Fence:
- Upper Fence:
- Lower Fence:
Check Values Against Fences:
- : Since , is a lower outlier.
- : Since , is an upper outlier.
- All other values lie comfortably inside .
- Lower whisker stops at (the smallest non-outlier).
- Upper whisker stops at (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: .
- Ward B: .
Step-by-Step Paper Solution:
Analyze Ward A:
- Lower box width: .
- Upper box width: .
- Lower whisker length: .
- Upper whisker length: .
- Conclusion: The median sits right at the center of the box, and both whiskers are identical in length. Ward A is symmetrically distributed.
Analyze Ward B:
- Lower box width: .
- Upper box width: .
- Lower whisker length: .
- Upper whisker length: .
- Check upper fence: . The maximum () 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 ( units vs unit). Ward B is heavily right-skewed (positively skewed).
Common Mistakes & Paper Traps
Drawing Whiskers to the Fences:
- A catastrophic exam error! Fences ( and ) are invisible mathematical cutoffs used only to find outliers.
- Fix: Never terminate a whisker at unless a data point happens to equal that exact number. Whiskers must terminate at the most extreme non-outlier data values.
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.
Using Instead of :
- Multiplying IQR by or instead of the universal standard .
- Tukey's fences strictly require .
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):
- Calculate the Five-Number Summary on paper.
- Compute the Interquartile Range and the upper fence.
- Identify whether is an outlier.
- State the value at which the upper whisker must stop.
Practice 2
A box plot displays:
- What are the minimum and maximum data values that would not be considered outliers?
Worked Solutions for Practice Problems
Solution to Practice 1
- Sorted List ():
- ( value)
- Lower half ( values):
- Upper half ( values):
- IQR and Upper Fence:
- Outlier Check:
- Since , the time is an outlier.
- Whisker Termination:
- The largest value less than or equal to is .
- Therefore, the upper whisker terminates at .
Solution to Practice 2
- IQR Calculation:
- Step:
- Fences:
- Lower Fence: .
- Upper Fence: .
- Conclusion:
- Any value in the closed interval is not an outlier.
- The minimum non-outlier threshold is , and the maximum non-outlier threshold is .
Test yourself
A dataset has and . What is the lower fence for identifying outliers?
In a modified box plot, where does the upper whisker end when outliers are present?
- At the upper fence
- At the absolute maximum value in the dataset
- At the largest actual data value that does not exceed the upper fence
- At the third quartile
In a box plot, if the median line is situated close to and the upper whisker is much longer than the lower whisker, what is the shape of the distribution?
- Symmetric
- Right-skewed (positively skewed)
- Left-skewed (negatively skewed)
- Uniform