COLLEGE STATISTICS • DESCRIPTIVE STATISTICS

Boxplots & Five-Number Summary — Boxplots and Five-Number Summary

Visualize an entire distribution's shape, center, and spread with just five key statistics.

Historical Context & Motivation

Long before the era of interactive dashboards and software-generated graphics, statisticians grappled with a fundamental challenge: how to communicate the essential features of a dataset—its center, variability, and shape—in a single, compact visual. Early approaches relied on histograms and stem-and-leaf plots, but these tools could become unwieldy when comparing multiple groups side by side. The need for a standardized, economical summary that preserved distributional information while remaining easy to interpret motivated a series of innovations in exploratory data analysis.

1977
Tukey's Exploratory Data Analysis
John W. Tukey publishes Exploratory Data Analysis, introducing the box-and-whisker plot as a robust graphical tool for summarizing distributions.
1978
Schematic Boxplot Refinements
Tukey formalizes the distinction between 'skeletal' boxplots (whiskers extend to min/max) and 'schematic' boxplots that use the 1.5 × IQR fence rule to flag outliers as individual points.
1981
Notched Boxplots
McGill, Tukey, and Larsen introduce notched boxplots, adding confidence intervals around the median to facilitate informal comparisons of medians across groups.
1990s
Violin and Bean Plots
Researchers extend boxplots by overlaying kernel density estimates, producing violin and bean plots that reveal multimodality while retaining the five-number framework.
2000s–present
Interactive and Software Integration
Boxplots become a default chart type in R, Python's matplotlib and seaborn, Excel, and Tableau, making them the most widely used non-parametric summary graphic in applied statistics.

Tukey's central insight was that a distribution can be meaningfully characterized by five order statistics—the minimum, first quartile, median, third quartile, and maximum—and that these five numbers could be mapped directly onto a geometric figure whose proportions instantly communicate skewness, spread, and the presence of extreme values. This raises a key question: given a raw dataset, how do we efficiently compute these five statistics, translate them into a boxplot, and interpret the resulting picture? The remainder of this lesson answers that question in full.

Core Principles & Definitions

The five-number summary is an ordered collection of five descriptive statistics that, taken together, provide a remarkably complete picture of a univariate distribution. Each statistic targets a specific aspect of the data: extreme values anchor the range, quartiles partition the data into quarters, and the median locates the center. Understanding these components individually is essential before assembling them into a graphical representation.

1

Minimum (Min)

The smallest observed value in the dataset. It defines the lower boundary of the data range and anchors the left whisker of the boxplot. In a schematic boxplot, if outliers are present, the whisker terminates at the smallest non-outlier value instead.
2

First Quartile (Q₁)

The value below which approximately 25% of the data fall. Q₁ is the median of the lower half of the sorted dataset. It forms the left edge of the box and, together with Q₃, defines the interquartile range (IQR).
3

Median (Q₂)

The middle value of the ordered data, dividing the distribution into two equal halves. The median is a robust measure of central tendency, resistant to the influence of outliers, and is marked by a vertical line inside the box.
4

Third Quartile (Q₃)

The value below which approximately 75% of the data fall. Q₃ is the median of the upper half of the sorted data. It defines the right edge of the box and serves as the upper boundary of the IQR.
5

Maximum (Max)

The largest observed value in the dataset. It defines the upper boundary of the range and anchors the right whisker. In schematic boxplots, the whisker extends only to the largest value within the 1.5 × IQR fence.
KEY TAKEAWAY
Think of the five-number summary as a topographic cross-section of your data landscape. The minimum and maximum mark the edges of the terrain, the two quartiles carve out the central plateau where half the data resides, and the median plants a flag at the exact midpoint of elevation. A boxplot simply translates this cross-section into a standardized picture, so you can instantly compare the 'terrain' of different datasets without reading every data point.

Anatomy of a Boxplot

The diagram below illustrates every structural element of a standard box-and-whisker plot. The central box spans from Q₁ to Q₃, capturing the interquartile range—the middle 50% of the data. A vertical line inside the box marks the median, while the whiskers extend outward to the most extreme data points within the 1.5 × IQR fences. Any observations beyond the fences are plotted individually as potential outliers.

A labeled boxplot showing all five summary statistics plus outliers. The box spans Q₁ to Q₃, the median line divides the box, whiskers extend to the most extreme non-outlier values, and outliers (open circles) lie beyond the 1.5 × IQR fences. *Max whisker ends at the largest value within the upper fence.

Several features of this diagram deserve emphasis. First, the position of the median line within the box reveals skewness: when the median is closer to Q₁, the distribution is right-skewed (a longer right whisker), and vice versa. Second, the total length of the box—the IQR—measures the spread of the middle half of the data, providing a robust alternative to the standard deviation. Third, the whiskers and outlier points together signal how much data lies in the distribution's tails. In the example above, the median sits slightly left of center within the box (closer to Q₁ = 25 than Q₃ = 47), suggesting a mild right skew, which is confirmed by the presence of outliers only on the upper end.

Mathematical Framework

Computing the five-number summary requires sorting the data and locating specific order statistics. Let x₍₁₎ ≤ x₍₂₎ ≤ … ≤ x₍ₙ₎ denote the sorted observations. The minimum and maximum are simply x₍₁₎ and x₍ₙ₎. The median and quartiles are located using the positions defined below. Note that different software packages use slightly different interpolation rules (Hyndman and Fan catalogued nine methods), but the inclusive method described here is the most widely taught and matches the approach used in most introductory statistics courses.

MEDIAN POSITION
Position of Q₂ = (n + 1) / 2
If n is odd, this yields an integer, and the median equals the observation at that position. If n is even, the median is the average of the observations at positions n/2 and (n/2) + 1.
QUARTILE POSITIONS (INCLUSIVE METHOD)
Q₁ = Median of {x₍₁₎, …, x₍⌊(n+1)/2⌋₎} Q₃ = Median of {x₍⌈(n+1)/2⌉₎, …, x₍ₙ₎}
When n is odd, the median observation is included in both halves. When n is even, the lower half consists of the first n/2 observations and the upper half consists of the last n/2 observations.
INTERQUARTILE RANGE
IQR = Q₃ − Q₁
The IQR captures the range of the middle 50% of the data. It is the primary measure of spread used in boxplot construction and is resistant to outliers.
OUTLIER FENCES
Lower fence = Q₁ − 1.5 × IQR Upper fence = Q₃ + 1.5 × IQR
Any observation below the lower fence or above the upper fence is classified as a potential outlier and plotted as an individual point. The whiskers extend only to the most extreme observations that fall within these fences. Some texts also define extreme outlier fences at Q₁ − 3 × IQR and Q₃ + 3 × IQR.
💡 Why 1.5 × IQR?
For a perfectly normal distribution, approximately 99.3% of observations fall within the 1.5 × IQR fences. This means that under normality, fewer than 1% of data points would be flagged as outliers—rare enough to warrant investigation but not so aggressive that the whiskers become meaningless. Tukey chose this multiplier as a practical compromise between sensitivity and specificity.

Interpreting Boxplots: Shape, Comparison, and Outliers

A boxplot encodes three layers of information simultaneously: center (location of the median), spread (width of the box and length of the whiskers), and shape (symmetry or skewness). Reading these layers becomes especially powerful when multiple boxplots are placed side by side to compare groups. The diagram below shows three distributions with distinct characteristics plotted on the same scale, demonstrating how shape differences become immediately visible.

Three side-by-side horizontal boxplots illustrating symmetric, right-skewed, and left-skewed distributions. Notice how the median position within the box and the relative whisker lengths reveal the direction of skewness.

When interpreting boxplots, begin with the median to assess center, then examine the IQR (box width) for spread, and finally inspect the whiskers and any isolated points for skewness and outliers. For the right-skewed distribution above, the median sits noticeably to the left within the box, the right whisker is substantially longer, and two outliers appear on the upper end. This pattern is characteristic of datasets like household income, where most values cluster at the lower end but a few very large values stretch the right tail.

  • Symmetric: Median is approximately centered in the box; whiskers are roughly equal in length.
  • Right-skewed (positively skewed): Median is closer to Q₁; the right whisker is longer; outliers, if any, appear on the right.
  • Left-skewed (negatively skewed): Median is closer to Q₃; the left whisker is longer; outliers, if any, appear on the left.

Worked Example

Consider the following dataset of 15 exam scores from a college statistics course: 42, 55, 58, 62, 65, 68, 70, 72, 75, 78, 82, 85, 88, 91, 97. We will compute the five-number summary, determine the IQR, identify fences, check for outliers, and describe the resulting boxplot.

Computing the Five-Number Summary and Constructing a Boxplot
1
Step 1 — Sort the Data and Identify Min/MaxThe data are already sorted in ascending order: 42, 55, 58, 62, 65, 68, 70, 72, 75, 78, 82, 85, 88, 91, 97. The minimum is the first value and the maximum is the last value.
Min = 42, Max = 97
2
Step 2 — Find the Median (Q₂)With n = 15 observations, the median is at position (15 + 1)/2 = 8. The 8th value in the sorted list is 72.
Q₂ (Median) = 72
3
Step 3 — Find Q₁The lower half consists of the first 7 values (positions 1–7): 42, 55, 58, 62, 65, 68, 70. Since n is odd, we include the median in both halves by convention, but here we use the exclusive method where the lower half has 7 values. The median of these 7 values is at position (7 + 1)/2 = 4, which is 62.
Q₁ = 62
4
Step 4 — Find Q₃The upper half consists of the last 7 values (positions 9–15): 75, 78, 82, 85, 88, 91, 97. The median of these 7 values is at position 4 within this subset, which is 85.
Q₃ = 85
5
Step 5 — Calculate the IQR and FencesIQR = Q₃ − Q₁ = 85 − 62 = 23. The lower fence is Q₁ − 1.5 × IQR = 62 − 1.5 × 23 = 62 − 34.5 = 27.5. The upper fence is Q₃ + 1.5 × IQR = 85 + 1.5 × 23 = 85 + 34.5 = 119.5.
IQR = 23, Lower fence = 27.5, Upper fence = 119.5
6
Step 6 — Identify Outliers and Describe the BoxplotAll 15 observations fall between 27.5 and 119.5, so there are no outliers. The whiskers extend from the minimum (42) to Q₁ (62) on the left and from Q₃ (85) to the maximum (97) on the right. The median (72) is slightly left of center within the box: the distance from Q₁ to the median is 10, while from the median to Q₃ is 13, suggesting a very mild right skew.
Five-number summary: {42, 62, 72, 85, 97}. No outliers. Approximately symmetric with slight right skew.

Strengths and Limitations

Like any statistical tool, boxplots come with trade-offs. They excel in certain contexts while obscuring information in others. Understanding these trade-offs helps you decide when a boxplot is the right choice and when supplementary or alternative displays are warranted.

Boxplot strengths and limitations
FeatureStrengthsLimitations
SummarizationCondenses an entire distribution into five statistics and a compact graphic; excellent for quick overviews of large datasets.Loses all information about the shape within quartile segments; two very different distributions can produce identical boxplots.
ComparisonMultiple groups can be compared on a single axis with aligned scales; ideal for spotting differences in center, spread, and outliers across categories.Cannot reveal multimodality; a bimodal distribution is indistinguishable from a unimodal one in a boxplot.
RobustnessThe median and IQR are resistant to extreme values, making boxplots reliable even with skewed data or outliers.The 1.5 × IQR rule is arbitrary; it may flag too many points in heavy-tailed distributions or too few in light-tailed ones.
Sample sizeWorks well even with moderately small samples (n ≥ 5) and scales effortlessly to very large datasets.Does not display sample size; a boxplot from n = 10 looks the same as one from n = 10,000 unless annotated.
DetailOutliers are individually visible, drawing attention to potentially interesting or erroneous data points.Individual data points within the box and whiskers are hidden; for small datasets, a dotplot or stripchart shows more.
WHEN TO CHOOSE ALTERNATIVES
If you suspect your data are bimodal or multimodal, consider layering a violin plot (a mirrored kernel density estimate) over the boxplot. For small samples (n < 20), a strip chart or beeswarm plot overlaid on the box can convey both individual observations and summary statistics. Think of the boxplot as the executive summary of a report—essential for busy readers, but the appendix (histogram, density plot) holds the full story.

Connection to Advanced Methods

The five-number summary and boxplot serve as a gateway to more sophisticated distributional analysis. At the introductory level, they provide a non-parametric portrait of the data; at more advanced levels, they connect to theoretical quantile functions, robust estimation, and modern data visualization methods. The table below maps each introductory concept to its advanced counterpart.

From introductory boxplots to advanced methods
Introductory ConceptAdvanced Extension
Five-number summary (Min, Q₁, Q₂, Q₃, Max)General quantile function F⁻¹(p); percentile bootstrap confidence intervals for quantiles
IQR as a spread measureMedian absolute deviation (MAD); Qn and Sn robust scale estimators
1.5 × IQR outlier ruleAdjusted boxplots for skewed data (Hubert & Vandervieren); Grubbs' test; Mahalanobis distance in multivariate settings
Side-by-side boxplots for group comparisonNotched boxplots; letter-value (LV) plots for large datasets; raincloud plots combining density, boxplot, and raw data
Skewness inferred from median positionFormal skewness coefficients (Pearson's, Fisher's); QQ-plots for distributional assessment

As you progress through inferential statistics, you will encounter QQ-plots that compare sample quantiles to theoretical quantiles, and you will use the logic of percentile-based intervals in bootstrap methods. The intuition built here—that a distribution is well characterized by its quantile structure—carries forward into non-parametric hypothesis testing (e.g., the Mann-Whitney U test, which effectively compares the locations of two distributions) and robust regression. Mastering the five-number summary and boxplot now gives you a conceptual scaffold for these more advanced techniques.

Practice Problems

PROBLEM 1CONCEPTUAL
Two datasets produce boxplots that look identical (same Q₁, Q₂, Q₃, whiskers, and no outliers), yet their histograms look very different. Explain how this is possible and name a specific distributional feature that boxplots cannot reveal.
PROBLEM 2BASIC CALCULATION
For the dataset {3, 7, 8, 12, 14, 18, 21, 25, 28}, compute the five-number summary and the IQR.
PROBLEM 3INTERMEDIATE
A dataset has Q₁ = 40, Q₃ = 60, minimum = 22, and maximum = 95. Determine the outlier fences and identify which of the extreme values, if any, would be classified as outliers.
PROBLEM 4APPLIED
A quality engineer measures the tensile strength (in MPa) of 20 steel rods and obtains the five-number summary {485, 510, 528, 545, 590}. She also observes one rod with a strength of 420 MPa. Should this observation be flagged as an outlier using the 1.5 × IQR rule? What practical action might the engineer take?
PROBLEM 5CRITICAL THINKING
Prove that for any dataset of n ≥ 4 observations drawn from a continuous distribution, the probability that a randomly selected observation falls inside the box (between Q₁ and Q₃) is exactly 0.5, and discuss why the actual proportion of sample points inside the box may differ from 0.5, especially for small n.

Summary

The five-number summaryminimum, Q₁, median, Q₃, and maximum—distills a dataset into five order statistics that together reveal center, spread, and the extent of the data. The interquartile range (IQR), computed as Q₃ − Q₁, measures the spread of the middle 50% and serves as the basis for the 1.5 × IQR outlier fence rule, which flags observations more than 1.5 IQRs beyond either quartile.

A boxplot maps these five statistics onto a geometric figure: a box from Q₁ to Q₃ with a median line, whiskers extending to the most extreme non-outlier values, and individual points for outliers. The position of the median within the box and the relative whisker lengths indicate skewness. Side-by-side boxplots are particularly powerful for comparing distributions across groups. While boxplots cannot show multimodality or sample size without annotation, they remain the most widely used non-parametric summary graphic in statistics and connect directly to quantile functions, robust estimation, and advanced visualization methods like violin plots and letter-value plots.

Varsity Tutors • College Statistics • Boxplots & Five-Number Summary