01 / 21

Interpreting
Boxplots

Learn to read box-and-whisker plots, identify the five-number summary, detect outliers, and compare distributions in biostatistics.

Biostatistics

What Is a Boxplot?

A boxplot (box-and-whisker plot) is a standardized way to display a dataset's distribution using five key summary statistics. It reveals center, spread, and skewness at a glance: perfect for comparing groups in clinical or biological research.

The Five-Number Summary

Min
Smallest data value (excluding outliers)
\(Q_1\)
25th percentile: median of the lower half
Median
50th percentile: the middle value
\(Q_3\)
75th percentile: median of the upper half
Max
Largest data value (excluding outliers)

Anatomy of a Boxplot

Min \(Q_1\) Median \(Q_3\) Max Outlier
\(\text{IQR}\)
Whisker Whisker 2 5 8 11 16 22 Data Value

How Quartiles Divide Data

25% 25% 25% 25% Min \(Q_1\) Median \(Q_3\) Max IQR = Middle 50%

Each section of a boxplot represents approximately 25% of the data. The box itself (from \(Q_1\) to \(Q_3\)) contains the middle 50%. If one section is wider than another, that region has more spread: data points are farther apart.

The IQR Rule for Outliers

1
Calculate IQR: \(\text{IQR} = Q_3 - Q_1\)
2
Lower fence: \(Q_1 - 1.5 \times \text{IQR}\)
3
Upper fence: \(Q_3 + 1.5 \times \text{IQR}\)
4
Flag outliers: Any value below the lower fence or above the upper fence is an outlier.

Visualizing Outlier Fences

Lower Fence Upper Fence \(Q_1\) \(Q_3\) Median \(Q_1 - 1.5 \cdot \text{IQR}\) \(Q_3 + 1.5 \cdot \text{IQR}\) Outlier Outlier

Reading Shape and Skewness

Symmetric
Median centered in the box; whiskers roughly equal length.
Right-Skewed
Median closer to \(Q_1\); right whisker longer. Common in biological data (e.g., drug clearance times).
Left-Skewed
Median closer to \(Q_3\); left whisker longer. Less common; e.g., age at retirement in a study.

Boxplots vs. Histograms

Boxplot Histogram
Shows Five-number summary + outliers Frequency distribution shape
Comparing groups Excellent: side-by-side Harder with many groups
Detects outliers Explicitly Only if bins are small enough
Shows modality No (hides bimodality) Yes
Sample size visible No (unless annotated) Yes (bar heights)

How to Read a Boxplot

1
Identify the five-number summary: Read off Min, \(Q_1\), Median, \(Q_3\), and Max from the plot.
2
Calculate the IQR: \(\text{IQR} = Q_3 - Q_1\). This is the width of the box.
3
Assess spread: A wider box means more variability in the middle 50%.
4
Check for skewness: Compare the median position within the box and whisker lengths.
5
Spot outliers: Look for individual points beyond the whiskers. Calculate fences if needed.

Example 1: Blood Pressure Data

100 110 120 130 140 150 102 115 124 132 145 Systolic Blood Pressure (mmHg)

Example 2: Detecting Outliers

Researchers measured reaction times (ms) in 30 subjects. The boxplot shows: \(Q_1 = 220\), \(Q_3 = 310\), and a data point at 480 ms. Is 480 an outlier?

1
\(\text{IQR} = Q_3 - Q_1 = 310 - 220 = 90\)
2
Upper fence: \(Q_3 + 1.5 \times \text{IQR} = 310 + 1.5(90) = 310 + 135 = 445\)
3
Since \(480 > 445\), the value 480 ms is an outlier.

Example 3: Comparing Groups

60 70 80 90 100 Heart Rate (bpm) Drug Placebo

Modified vs. Standard Boxplots

Standard Boxplot
Whiskers extend to the absolute min and max. No outliers shown separately. Rarely used in modern practice.
Modified Boxplot
Whiskers extend to the most extreme non-outlier value. Outliers plotted as individual dots. The standard in biostatistics.

Common Mistakes

✕ Confusing Whiskers with Fences
Whiskers end at the most extreme non-outlier data point, not at the calculated fence value.
✕ Assuming Equal Sample Sizes
Two boxplots can look identical but represent wildly different sample sizes. Boxplots hide \(n\).
✕ Reading Width as Frequency
A wider box section does not mean more data points. Each quarter holds about 25% of data regardless of width.

Summary Cheat Sheet

Feature What to Look For Interpretation
Center Median line position Typical value of the dataset
Spread Box width (IQR) Variability of the middle 50%
Skewness Median position + whisker lengths Direction of the longer tail
Outliers Individual dots beyond whiskers Unusual values: > \(1.5 \times \text{IQR}\) from box
Range Whisker-to-whisker span Overall spread (excluding outliers)

Question 1 of 5

A boxplot shows \(Q_1 = 40\), \(Q_3 = 60\). What is the IQR?

Question 2 of 5

Given \(Q_1 = 25\), \(Q_3 = 45\), and \(\text{IQR} = 20\), what is the upper fence for outliers?

Question 3 of 5

In a boxplot, the median is very close to \(Q_1\) and the right whisker is much longer than the left. What does this indicate?

Question 4 of 5

In a modified boxplot, the whiskers extend to:

Question 5 of 5

Two side-by-side boxplots show Group A with IQR = 8 and Group B with IQR = 22. Both have the same median. Which statement is most accurate?