Sub topic 12
Comparing Two Boxplots
Assume you can find a median, quartiles, range, and interquartile range (IQR), and that you can read a labeled number line. This chapter uses those ideas to compare two distributions, or sets of data, shown as boxplots.
Use the Same Comparison Order
A boxplot summarizes a distribution with five key locations:
- The minimum, or lowest displayed value
- The first quartile, \(Q_1\)
- The median, \(Q_2\)
- The third quartile, \(Q_3\)
- The maximum, or highest displayed value
The box extends from \(Q1\) to \(Q3\). Its length is the IQR:
\[ \text{IQR}=Q3-Q1 \]
The line inside the box marks the median. The whiskers extend toward the lower and higher values. Some boxplots show outliers as separate points.
When comparing two boxplots, use this order:
- Compare the medians to compare typical values.
- Compare the IQRs to compare the spread of the middle half.
- Compare the overall ranges to compare the total spread.
- Look for outliers and unusual skew.
For example, suppose two boxplots have these summaries:
| Distribution | Minimum | \(Q_1\) | Median | \(Q_3\) | Maximum |
|---|---|---|---|---|---|
| A | 10 | 14 | 18 | 22 | 30 |
| B | 12 | 16 | 20 | 25 | 27 |
Distribution B has the higher median, so its typical value is higher. Its IQR is \(25-16=9\), while A's IQR is \(22-14=8\). Therefore, B has slightly more spread in its middle half. A has range \(30-10=20\), while B has range \(27-12=15\), so A has the greater overall spread.
Read the Scale Before Comparing
A boxplot comparison is meaningful only when both plots use the same scale. If one number line runs from 0 to 100 and another runs from 0 to 10, the visual lengths cannot be compared directly without adjusting for the scale.
Also compare locations, not just lengths. A box can be longer because its data are more spread out, but a box shifted to the right represents larger values.
Do Not Assume Equal Counts in Each Section
Quartiles divide ordered data by position. They do not usually divide the number line into equal lengths. Each section between the five summary values contains roughly the same number of data values, but the sections can have very different numerical lengths.
For example, the intervals from 10 to 20 and from 20 to 21 could each represent about one-fourth of the data. The second interval is much shorter, which suggests that the data are more concentrated near 20.
A boxplot also does not show the mean unless it marks it separately. Do not claim that one distribution has a larger mean based only on its median.
Detect Skew and Outliers
If the median is near the center of the box and the whiskers have similar lengths, the distribution may be fairly balanced. If the median is close to \(Q1\) and the upper whisker is longer, the distribution may have a longer upper tail. If the median is close to \(Q3\) and the lower whisker is longer, it may have a longer lower tail.
An outlier is a value unusually far from the rest of the data. Under the common \(1.5\text{ IQR}\) rule, values below
\[ Q_1-1.5(\text{IQR}) \]
or above
\[ Q_3+1.5(\text{IQR}) \]
are flagged. A problem may show these values as separate dots.
GRE Strategies and Common Pitfalls
Translate each conclusion precisely:
- “A has a higher median” means A's middle value is higher.
- “B is more consistent” usually means B has a smaller spread, but identify whether the question means IQR or range.
- “A has a greater IQR” means the middle 50% of A is more spread out.
- “A has a greater range” means its lowest-to-highest distance is larger.
If the boxes overlap, that does not automatically mean the medians are equal. Read the median lines. If one boxplot has an outlier, distinguish the full data range from the whisker-to-whisker span.
Exercise
Distribution A has median 40 and IQR 6. Distribution B has median 35 and IQR 10. Which distribution has the higher typical value, and which has the greater middle spread?
Show answer
A has the higher typical value because its median is 40. B has the greater middle spread because its IQR is 10, compared with A's IQR of 6.