Tutorials › AP Statistics › Side-by-Side Boxplots Compared

Comparing distributions · Tutorial 129 of 1000

Side-by-Side Boxplots Compared

Compare the medians, IQRs, and ranges shown by side-by-side boxplots, and describe what those differences mean in context.

Beginner 8 min read

What You'll Learn

  • Identify the median, quartiles, and endpoints represented in a boxplot.
  • Compare medians, IQRs, and ranges using consistent measures.
  • Describe numerical differences between groups in the variable’s units.
  • Check axes and boxplot conventions before reading endpoints.
  • Explain what overlapping boxes do and do not establish.

What Side-by-Side Boxplots Make Easy to Compare

In Comparing Two Histograms on the Same Scale, you practiced checking whether displays use matching scales before comparing distributions. Side-by-side boxplots also make comparisons easier by placing groups on a shared numerical axis. They emphasize a distribution’s center and spread rather than showing how many observations fall in each interval.

A boxplot displays the median and quartiles. The line inside the box marks the median. The box extends from the first quartile, \(Q_1\), to the third quartile, \(Q_3\); its length represents the interquartile range, or IQR. The whiskers and any plotted points show additional information about the data’s endpoints or unusual observations, depending on the boxplot convention.

Definition: The five-number summary consists of the minimum, \(Q_1\), median, \(Q_3\), and maximum. The IQR is \(Q_3-Q_1\), the width of the middle half of the observations. The range is the maximum minus the minimum, the full span of the observations.

As in Comparing Centers Using Medians and Means and Comparing Spread Using IQR and Standard Deviation, compare like with like: median with median, IQR with IQR, and range with range. State the size and direction of a difference in the original units. For instance, if one group’s median is 5 minutes greater, say which group has the greater median and what variable those minutes measure.

The IQR focuses on the middle half of a group’s observations. The range includes the two extremes, so a single unusually high or low value can affect it substantially. Tutorial 89, Choosing IQR or Standard Deviation to Describe Spread, explains why the IQR is often more useful for skewed data or data with outliers. When a question asks you to compare range as well, report it, but distinguish it from the IQR rather than treating the two measures as interchangeable.

A Careful Reading Routine

Before comparing features, check that both plots display the same quantitative variable in the same units and use a common axis. A horizontal distance should represent the same amount in both plots. If the scales differ, apparent distances between medians or box widths are not directly comparable. Read the axis labels and tick marks rather than estimating from the physical size of the plot alone.

Then read each group’s median and quartiles. The median is the line inside the box; the box edges are \(Q_1\) and \(Q_3\). Subtract \(Q_1\) from \(Q_3\) to obtain the IQR. To compare ranges, identify the actual minimum and maximum for each group and subtract. In a standard boxplot the whiskers may mark those extremes. In a modified boxplot, whiskers may stop at the most extreme values that are not flagged as outliers, with outliers plotted separately. Check the display’s key or description: if outlier points are present, include them when finding the true minimum or maximum.

1
Check the display.
Confirm the variable, units, shared scale, group labels, and how whiskers and outlier points are defined.
2
Read each center.
Locate each median line and compare the medians using the variable’s units.
3
Compare the spreads.
Read \(Q_1\) and \(Q_3\), calculate each IQR, then compare the actual minimum-to-maximum ranges when the plot provides them.
4
Write a supported comparison.
Name both groups and the variable, state which summary is greater or whether they are similar, and give the difference with units when useful.

A boxplot summarizes a distribution; it does not show every observation. If the plots are drawn from samples, describe the groups represented by those samples. Do not claim that the displays prove a difference for all members of a larger population.

Worked Example: Comparing Two Groups’ Centers and Spreads

Worked Example: Comparing Two Groups’ Centers and Spreads

A fictional school records students’ one-way travel times to school, in minutes. The two side-by-side boxplots use a shared axis and show standard five-number summaries.

GroupMinimum\(Q_1\)Median\(Q_3\)Maximum
East812162234
West1015212530

Compare the medians. East’s median travel time is 16 minutes, and West’s is 21 minutes. The difference is \(21-16=5\) minutes. The sample median is 5 minutes greater for West than for East.

Compare the IQRs. East’s IQR is \(22-12=10\) minutes. West’s IQR is \(25-15=10\) minutes. The middle half of travel times has the same width in both groups: 10 minutes.

Compare the ranges. East’s range is \(34-8=26\) minutes. West’s range is \(30-10=20\) minutes. East’s full span is \(26-20=6\) minutes wider than West’s. Thus, the IQRs match even though East has the greater overall range.

Conclude in context. “For these students, the median one-way travel time is 5 minutes greater in West than in East. The middle half of travel times spans 10 minutes in each group, while East’s full range is 6 minutes wider than West’s.”

This comparison does not say that every West student travels longer than every East student. A median summarizes the center; the boxplot does not pair individual students across groups.

Worked Example: When IQR and Range Tell Different Stories

Worked Example: When IQR and Range Tell Different Stories

A fictional repair shop compares the number of hours customers wait for a repair to be completed at two locations. Both plots use the same scale, and the listed endpoints are the actual minimums and maximums.

LocationMinimum (hours)\(Q_1\)Median\(Q_3\)Maximum (hours)
North1218243152
South1520273548

Compare the medians. North’s median wait is 24 hours, and South’s is 27 hours. South’s median is \(27-24=3\) hours greater.

Compare the IQRs. North’s IQR is \(31-18=13\) hours. South’s IQR is \(35-20=15\) hours. The middle half of South’s wait times spans 2 hours more than the middle half of North’s: \(15-13=2\).

Compare the ranges. North’s range is \(52-12=40\) hours. South’s range is \(48-15=33\) hours. North’s full span is \(40-33=7\) hours wider. The measures point in different directions: South has the larger IQR, but North has the larger range.

Conclude in context. “The median repair wait is 3 hours greater at the South location. The middle half of waits spans 2 hours more at South, but the full range is 7 hours wider at North. Therefore, the two spread summaries do not support a single claim that one location is more variable in every sense.”

The range reflects only the endpoints, while the IQR describes the middle half. As discussed in What Outliers Mean in Context, an extreme observation can help explain why a range differs from an IQR. A boxplot may show a plotted outlier, but do not call an endpoint an outlier unless the display or an appropriate rule supports that description.

Worked Example: Same Median, Different Spreads

Worked Example: Same Median, Different Spreads

A fictional recreation center compares weekly hours of screen use for participants in two voluntary programs. The boxplots use a shared axis, and their five-number summaries are shown below.

ProgramMinimum (hours)\(Q_1\)Median\(Q_3\)Maximum (hours)
Program A2581120
Program B1681014

Compare the medians. Both programs have a median of 8 hours per week. Based on the displayed summaries, neither group has a greater median.

Compare the IQRs. Program A’s IQR is \(11-5=6\) hours. Program B’s IQR is \(10-6=4\) hours. The width of the middle half is 2 hours greater for Program A.

Compare the ranges. Program A’s range is \(20-2=18\) hours. Program B’s range is \(14-1=13\) hours. Program A’s full span is 5 hours greater. Both measures of spread are larger for Program A, although the difference is more pronounced for the range.

Conclude in context. “The two programs have the same median weekly screen-use time, 8 hours. Program A has a wider middle half by 2 hours and a wider full range by 5 hours. Thus, the observed screen-use values are more spread out for Program A according to both the IQR and range.”

A boxplot’s scale can help you see whether the boxes or endpoints overlap, but overlap is not a substitute for comparing the summaries. Here the boxes overlap from 6 to 10 hours, yet their widths differ. Overlapping boxes do not show that the groups have identical observations or tell you how many values the groups share.

What Boxplot Overlap Can—and Cannot—Tell You

The box is the interval from \(Q_1\) to \(Q_3\), so comparing box locations and widths gives a quick visual comparison of the middle halves. If two boxes overlap, both groups’ middle-half intervals include some of the same numerical values. This does not mean the same people, objects, or observations occur in both groups. Nor does it reveal exactly how the observations are distributed inside the boxes.

Likewise, overlapping whiskers or overall spans do not mean the distributions are identical. Groups can have similar ranges but different medians or IQRs. They can also have similar IQRs but different ranges, as in the first worked example. Report the specific features the plot supports instead of saying only that the groups are “similar” or “different.”

Boxplots emphasize selected summaries, so they do not show all distribution features equally well. They can suggest differences in center and spread, but they may hide clusters or gaps that would be visible in a dotplot. As in Comparing Two Dotplots, use a display that reveals the feature relevant to the question, and avoid claiming a boxplot shows details it does not display.

Common Mistakes and AP Exam Tips

  • Comparing the wrong parts. Compare median with median, IQR with IQR, and range with range. Do not compare one group’s median to another group’s \(Q_1\).
  • Calling the box width the range. The box runs from \(Q_1\) to \(Q_3\), so its width is the IQR. The range uses the actual minimum and maximum.
  • Ignoring plot conventions. In a modified boxplot, whisker ends may not be the data minimum and maximum. Check for plotted outlier points and the display’s definition before calculating a range.
  • Using a vague comparison. “Group A is more spread out” is incomplete if the question asks for numerical evidence. Give the IQRs or ranges and state their difference in context.
  • Forgetting units and direction. Say which group has the greater median or spread, and include the variable’s units. A difference in travel-time medians should be reported in minutes, not as an unexplained number.
  • Overstating what overlap means. Overlapping boxes do not establish identical data, and separated medians do not by themselves establish a population-level difference.

A full-credit comparison names the variable and groups, reports the relevant summaries accurately, and interprets their differences with units. If the IQR and range point in different directions, state that clearly instead of forcing them into one broad conclusion.

Key takeaway: On side-by-side boxplots with a shared scale, compare medians for center, box widths (IQRs) for the spread of the middle half, and actual minimum-to-maximum ranges for the full span. Give differences in context and check how whiskers and outliers are displayed.

Check Your Understanding

Use the five-number summaries and display details in each question to make a supported comparison.

  1. Group A has \(Q_1=14\), median \(=20\), and \(Q_3=29\). Group B has \(Q_1=16\), median \(=23\), and \(Q_3=30\). Find each IQR and compare the medians and IQRs in context if the variable is measured in minutes.
  2. Two groups have ranges of 18 and 25 kilometers and IQRs of 9 and 7 kilometers, respectively. Which group has the greater range? Which has the greater IQR?
  3. A modified boxplot has whiskers ending at 4 and 17, with a plotted outlier at 22. What are the actual minimum and maximum? What is the range?
  4. Two boxes overlap on a side-by-side plot. What can you say about the intervals from \(Q_1\) to \(Q_3\), and what can you not conclude about individual observations?
  5. Two groups have the same median, but one has a larger IQR. Write one careful sentence describing the comparison without claiming that every value in that group is larger.