BIOSTATISTICS • DESCRIPTIVE STATISTICS & VISUALIZATION

Interpreting Boxplots — Interpret boxplots and identify outliers

Master the five-number summary and outlier detection to reveal distributional features hidden in biomedical data.

Historical Context & Motivation

Before modern computing made it trivial to generate histograms and density curves, statisticians needed a compact, pen-and-paper method for comparing distributions across groups. The challenge was particularly acute in applied fields such as agriculture, clinical trials, and quality control, where researchers routinely confronted dozens of batches of data that demanded simultaneous comparison. Traditional summary statistics—means and standard deviations—could mask critical features like skewness and extreme observations. What was needed was a graphical device that condensed an entire distribution into a handful of interpretable landmarks while simultaneously flagging unusual values that might represent measurement errors, biological anomalies, or genuinely rare events. The box-and-whisker plot (commonly shortened to boxplot) arose precisely to meet that need, and its elegance lies in the fact that it encodes five summary statistics plus outlier flags in a single glyph.

1970
Tukey's Schematic Plots
John W. Tukey, working at Bell Labs and Princeton, develops the box-and-whisker plot as part of his broader program in Exploratory Data Analysis (EDA). Tukey's goal is to provide quick, robust graphical summaries that do not assume a normal distribution.
1977
Publication of EDA
Tukey's landmark textbook Exploratory Data Analysis is published, formalizing the 1.5 × IQR rule for outlier fences and introducing the notation of hinges and adjacent values that remain standard today.
1978
McGill, Tukey & Larsen — Notched Boxplots
Robert McGill, John Tukey, and Wayne Larsen extend the boxplot with confidence-interval notches around the median, enabling informal visual hypothesis testing for differences between group medians.
1990s
Software Adoption & Variants
Statistical packages (SAS, SPSS, S/R) adopt boxplots as default summary graphics. Variants such as violin plots, bean plots, and letter-value plots emerge to address limitations when sample sizes are very large.
2020s
Modern Biostatistical Practice
Journals like Nature and The BMJ increasingly recommend boxplots (often overlaid with individual data points) over dynamite plots for reporting group comparisons, reflecting a shift toward transparent visualization of distributional shape.

The central question that boxplots address remains as relevant today as it was in Tukey's era: How can we summarize and compare distributions at a glance, while simultaneously identifying data points that deviate from the bulk of the data? Answering this question is essential in biostatistics, where outlying values in clinical measurements may signal data-entry errors, instrument malfunctions, or genuinely unusual patient responses—each requiring a different analytical response.

Core Principles & Definitions

A boxplot is built from the five-number summary of a dataset—the minimum, first quartile (Q₁), median (Q₂), third quartile (Q₃), and maximum—augmented by a rule for flagging outliers. To interpret a boxplot correctly, you must understand how each visual element maps to an aspect of the data's distribution: center, spread, skewness, and extremes. The following foundational concepts govern that mapping.

1

Five-Number Summary

The ordered set {Min, Q₁, Median, Q₃, Max} partitions the data into four roughly equal groups, each containing approximately 25 % of the observations. Together they capture center, spread, and range without assuming a particular distributional shape.
2

Interquartile Range (IQR)

The IQR equals Q₃ − Q₁ and measures the spread of the middle 50 % of the data. Because it ignores the tails, the IQR is a robust measure of variability, resistant to outliers.
3

Whiskers & Fences

Whiskers extend from Q₁ and Q₃ to the most extreme data points that lie within the inner fences, defined as Q₁ − 1.5 × IQR and Q₃ + 1.5 × IQR. Points beyond the fences are plotted individually as potential outliers.
4

Outlier Classification

A data point beyond an inner fence (1.5 × IQR) is termed a mild outlier. A point beyond an outer fence (3 × IQR from the quartile) is considered an extreme outlier.
5

Skewness at a Glance

An asymmetric box or unequal whisker lengths reveals skewness. When the upper whisker is longer or the median sits closer to Q₁, the distribution is right-skewed—common in biomedical variables like hospital length of stay.
KEY TAKEAWAY
Think of a boxplot as a luggage X-ray for your data. The box is the main compartment holding the middle 50 % of items. The whiskers are the zippered side pockets—still part of the bag but thinner and reaching further. Anything plotted beyond the whiskers is like an item dangling outside the suitcase: it doesn't fit the normal packing pattern and deserves closer inspection before you decide whether to re-pack it or leave it out.

Anatomy of a Boxplot

The diagram below presents a horizontal boxplot annotated with every structural element you need to identify. Study the relationship between each labeled component and its statistical meaning; this visual vocabulary is essential for reading any boxplot you encounter in journal articles or software output.

The box spans from Q₁ to Q₃, with the median shown as a vertical line inside. Whiskers extend to the most extreme non-outlier observations (adjacent values). Points beyond 1.5 × IQR from the quartiles are plotted individually as outliers.

Notice that the whisker endpoints are not necessarily the overall minimum and maximum of the dataset. They terminate at the most extreme data points that still fall within the inner fences. This subtle but critical detail is the mechanism through which boxplots surface potential outliers. The asterisk notation in the diagram (Min*, Max*) emphasizes that these are adjacent values—the smallest and largest observations that are not flagged as outliers—rather than the true extremes of the sample.

Mathematical Framework

The construction of a boxplot follows a deterministic algorithm rooted in order statistics. Given a dataset of n observations sorted in ascending order x₍₁₎ ≤ x₍₂₎ ≤ … ≤ x₍ₙ₎, the key calculations proceed as follows.

MEDIAN (Q₂)
Q₂ = x₍₍ₙ₊₁₎/₂₎ if n is odd; Q₂ = (x₍ₙ/₂₎ + x₍ₙ/₂₊₁₎) / 2 if n is even
The median splits the ordered data into two equal halves. When n is odd, it is the middle observation; when n is even, it is the average of the two central observations.
INTERQUARTILE RANGE
IQR = Q₃ − Q₁
Q₁ is the median of the lower half of the data (observations below Q₂), and Q₃ is the median of the upper half. The IQR captures the central 50 % of the distribution's spread.
INNER FENCES (OUTLIER BOUNDARIES)
Lower fence = Q₁ − 1.5 × IQR Upper fence = Q₃ + 1.5 × IQR
Any observation x such that x < Q₁ − 1.5 × IQR or x > Q₃ + 1.5 × IQR is classified as a mild outlier. The 1.5 multiplier was chosen by Tukey because, for a normal distribution, approximately 0.7 % of observations fall beyond these fences.
OUTER FENCES (EXTREME OUTLIER BOUNDARIES)
Lower outer fence = Q₁ − 3 × IQR Upper outer fence = Q₃ + 3 × IQR
Observations beyond the outer fences are classified as extreme outliers. Under a normal distribution, fewer than 2 in 10,000 observations would exceed these bounds, making extreme outliers exceedingly rare unless the data are genuinely non-normal or erroneous.
🔍 Why 1.5 × IQR?
For a perfectly normal distribution, Q₁ ≈ μ − 0.6745σ and Q₃ ≈ μ + 0.6745σ, so IQR ≈ 1.349σ. The inner fence then sits at approximately μ ± 2.698σ, which corresponds to the 0.35th and 99.65th percentiles. This means roughly 0.7 % of normally distributed data would be flagged as outliers—a practical balance between sensitivity and specificity that Tukey calibrated through extensive empirical testing.

Outlier Detection & Skewness Interpretation

Outlier identification is arguably the most consequential feature of the boxplot in biostatistical practice. An outlying blood pressure reading, a suspiciously high enzyme level, or an implausibly short survival time can each alter study conclusions if left unchecked. The boxplot's fence-based system provides a principled, distribution-free screening mechanism. Below, we classify the types of outliers and illustrate how boxplot asymmetry reveals skewness—a critical consideration when selecting downstream statistical methods.

Panel A shows a symmetric boxplot (equal whiskers, median centered in the box). Panel B illustrates right skewness—the median sits closer to Q₁, the upper whisker is longer, and outliers cluster on the right. Panel C maps the inner fences (1.5 × IQR) and outer fences (3 × IQR), showing where mild and extreme outliers are classified.

When interpreting skewness from a boxplot, examine three features: the position of the median within the box, the relative lengths of the two whiskers, and the distribution of any outlier points. A right-skewed distribution exhibits a median closer to Q₁ and a longer upper whisker, while a left-skewed distribution shows the reverse pattern. In biostatistics, many variables of clinical interest—such as C-reactive protein levels, hospital length of stay, and healthcare costs—are inherently right-skewed, making this interpretation skill particularly valuable.

Reading skewness from a boxplot
FeatureSymmetricRight-SkewedLeft-Skewed
Median positionCentered in boxCloser to Q₁Closer to Q₃
Whisker lengthsApproximately equalUpper whisker longerLower whisker longer
Outlier locationBoth ends or noneUpper endLower end
Mean vs. MedianMean ≈ MedianMean > MedianMean < Median

Worked Example — Serum Cholesterol Levels

A clinical researcher measures fasting total cholesterol (mg/dL) in a sample of 15 patients: 162, 170, 175, 180, 185, 190, 195, 198, 200, 210, 215, 220, 230, 260, 310. Construct the five-number summary, identify the fences, determine whether any outliers exist, and describe the distribution's shape.

Constructing & Interpreting a Boxplot from Clinical Data
1
Step 1 — Order the Data and Find the MedianThe data are already sorted in ascending order. With n = 15, the median is the observation at position (15 + 1) / 2 = 8. The 8th observation is 198.
Q₂ (Median) = 198 mg/dL
2
Step 2 — Find Q₁ and Q₃The lower half consists of the 7 observations below the median: {162, 170, 175, 180, 185, 190, 195}. The median of this subset is the 4th value: Q₁ = 180. The upper half consists of the 7 observations above the median: {200, 210, 215, 220, 230, 260, 310}. Its median is the 4th value: Q₃ = 220.
Q₁ = 180 mg/dL Q₃ = 220 mg/dL
3
Step 3 — Compute the IQRIQR = Q₃ − Q₁ = 220 − 180 = 40 mg/dL. This tells us the middle 50 % of cholesterol values span a range of 40 mg/dL.
IQR = 40 mg/dL
4
Step 4 — Calculate the Inner FencesLower inner fence = Q₁ − 1.5 × IQR = 180 − 1.5 × 40 = 180 − 60 = 120 mg/dL. Upper inner fence = Q₃ + 1.5 × IQR = 220 + 1.5 × 40 = 220 + 60 = 280 mg/dL. Any observation below 120 or above 280 would be flagged as an outlier.
Lower fence = 120 Upper fence = 280
5
Step 5 — Identify Outliers and Adjacent ValuesScanning the data: no observation falls below 120, so the lower whisker extends to the minimum value of 162. The value 310 exceeds the upper inner fence of 280 and is therefore flagged as an outlier. We also check the outer fence: Q₃ + 3 × IQR = 220 + 120 = 340. Since 310 < 340, it is classified as a mild outlier rather than an extreme one. The upper whisker extends to 260, the largest observation within the upper fence.
310 mg/dL is a mild outlier. Adjacent values: 162 (lower) and 260 (upper).
6
Step 6 — Interpret the ShapeThe median (198) sits slightly closer to Q₁ (180) than to Q₃ (220), and the upper whisker (260 − 220 = 40) is slightly longer than the lower whisker (180 − 162 = 18). Combined with the upper outlier at 310, this indicates a moderate right skew—a common pattern for lipid measurements, where a small fraction of individuals have disproportionately elevated cholesterol.

Strengths, Limitations, & Comparisons

Boxplots are among the most versatile displays in the biostatistician's toolkit, but they are not without trade-offs. Understanding when a boxplot is the right choice—and when alternative visualizations provide more information—is essential for rigorous data presentation.

Boxplot strengths vs. limitations
AspectStrengthLimitation
CompactnessMultiple groups can be compared side by side in minimal space, making boxplots ideal for multi-arm clinical trial summaries.Compactness means the plot hides sample size; two groups with n = 10 and n = 10,000 look identical unless annotated.
RobustnessMedian and IQR are resistant to outliers, providing a stable summary even when extreme values are present.The 1.5 × IQR rule may over-flag outliers in heavily skewed or leptokurtic distributions and under-flag them in platykurtic ones.
Shape detectionWhisker asymmetry and outlier placement reveal skewness at a glance without formal testing.Bimodality is invisible in a standard boxplot. A bimodal distribution and a uniform distribution can produce nearly identical boxplots.
Outlier flaggingAutomatic identification of extreme observations encourages data quality review.Statistical outliers are not necessarily errors; blindly removing flagged points can introduce bias.
KEY TAKEAWAY
A boxplot is like a chest X-ray: it gives you a fast, informative first look at the patient (your data), but it cannot replace the detailed anatomy of a CT scan (a histogram or kernel density estimate). In modern biostatistical reporting, the best practice is often to overlay individual data points or a violin plot alongside the boxplot so that distributional features like bimodality and sample size are not lost.

Connection to Advanced Theory & Variants

The standard Tukey boxplot serves as the foundation for a family of more sophisticated visualizations, each designed to address specific shortcomings of the original. Understanding these extensions helps you select the right graphical tool as your biostatistical analyses grow in complexity.

Standard boxplots vs. advanced variants
FeatureStandard BoxplotAdvanced Variant
Distributional shapeOnly skewness visible; bimodality hiddenViolin plot: mirrors a kernel density estimate on each side of the box, revealing modes and tails
Confidence interval for medianNot shownNotched boxplot: a notch around the median approximates a 95 % CI; non-overlapping notches suggest significant median differences
Large sample performanceFixed five-number summary regardless of nLetter-value plot (Hofmann et al., 2017): adds additional quantile boxes as n increases, revealing more tail structure
Individual observationsOnly outliers shownSina plot / strip chart overlay: jittered individual points shown alongside the box for full transparency
Outlier definitionFixed 1.5 × IQR ruleAdjusted boxplot (Hubert & Vandervieren, 2008): fence multiplier adapts to the data's medcouple (skewness measure), reducing false outlier flags in asymmetric distributions

As you progress in biostatistics, you will encounter situations where standard boxplots are insufficient—particularly in genomics (where sample sizes can exceed 10⁵) and epidemiology (where outcome distributions are frequently multimodal). The key principle remains constant: visualization should reveal structure in the data, not conceal it. Advanced variants achieve this by encoding more distributional information without sacrificing the boxplot's hallmark compactness.

Practice Problems

PROBLEM 1CONCEPTUAL
A boxplot for a dataset shows the left whisker extending much further than the right whisker, with two individual points plotted below the left whisker. Describe the distribution's skewness and classify the two plotted points.
PROBLEM 2BASIC CALCULATION
For a dataset with Q₁ = 45, Q₃ = 75, compute the IQR, the lower inner fence, and the upper inner fence. Would a value of 125 be classified as an outlier?
PROBLEM 3INTERMEDIATE
A researcher collects systolic blood pressure (mmHg) data from 20 patients: 105, 110, 112, 115, 118, 120, 122, 124, 125, 128, 130, 132, 135, 138, 140, 142, 148, 155, 175, 210. Determine the five-number summary, identify any outliers, and state the whisker endpoints.
PROBLEM 4APPLIED
A pharmaceutical study reports boxplots of serum creatinine (mg/dL) for three treatment arms. Arm A has a median of 1.1, IQR of 0.3, and one outlier at 2.4. Arm B has a median of 1.0, IQR of 0.5, and no outliers. Arm C has a median of 1.3, IQR of 0.2, and two outliers at 2.1 and 2.8. Which arm shows the greatest variability in the typical patient? Which arm has the most concerning outlier pattern, and why?
PROBLEM 5CRITICAL THINKING
A colleague argues that all observations flagged as outliers by the 1.5 × IQR rule should be removed before performing any downstream statistical analysis. Construct a counter-argument, referencing at least two biostatistical scenarios where removing outliers would be inappropriate or harmful.

Summary & Review

A boxplot encodes the five-number summary (minimum adjacent value, Q₁, median, Q₃, maximum adjacent value) in a compact graphic that reveals center, spread, skewness, and outliers at a glance. The interquartile range (IQR) measures the spread of the middle 50 % of the data and serves as the basis for the 1.5 × IQR fence rule that flags potential outliers. Observations beyond the inner fences are mild outliers; those beyond the outer fences (3 × IQR) are extreme outliers.

When interpreting boxplots in biostatistical practice, always assess skewness by comparing the median's position within the box and the relative whisker lengths. Remember that boxplots do not reveal bimodality or sample size, so consider supplementing them with violin plots or overlaid data points. Outliers should be investigated, not automatically deleted—they may represent genuine biological variability or clinically meaningful subpopulations rather than errors.

Varsity Tutors • Biostatistics • Interpreting Boxplots — Interpret boxplots and identify outliers