AP STATISTICS • EXPLORING ONE-VARIABLE DATA

Comparing Distributions of a Quantitative Variable

Learn to systematically contrast shape, center, spread, and unusual features across groups using graphical and numerical evidence.

Historical Context & Motivation

Statistics as a discipline has always been driven by the need to make meaningful comparisons—between treatments and controls, between populations and samples, between one era and another. The ability to compare distributions of a quantitative variable lies at the heart of data analysis, because isolated descriptions of a single group rarely answer the questions that motivate data collection in the first place. Whether a public health researcher wants to know if a new medication lowers blood pressure more effectively than an existing one, or an economist asks whether income distributions differ across regions, the analytical challenge is the same: how do we move beyond describing one group to making rigorous, structured comparisons between two or more groups?

1786
Playfair's Bar Charts
William Playfair published The Commercial and Political Atlas, introducing bar charts and line graphs to visually compare economic data across nations and time periods.
1900
Pearson's Chi-Square & Formal Testing
Karl Pearson developed the chi-square goodness-of-fit test, formalizing the idea that comparing observed distributions to expected ones could be done with mathematical rigor.
1969
Tukey's Stem-and-Leaf & Boxplot
John Tukey introduced exploratory data analysis (EDA) techniques including boxplots and stem-and-leaf displays, making side-by-side distribution comparison practical and intuitive.
1977
Tukey's EDA Published
Tukey's landmark book Exploratory Data Analysis codified the philosophy that graphical comparison of distributions should precede any formal inference, cementing EDA as standard practice.

The fundamental question this topic addresses is deceptively simple: How do these groups differ, and how are they alike? Answering it well requires a systematic framework—one that considers shape, center, spread, and outliers in tandem, always in context. The AP Statistics curriculum places this skill early because every subsequent inferential procedure (two-sample t-tests, ANOVA, regression) builds on the ability to describe and compare distributions thoughtfully.

Core Principles of Distribution Comparison

When comparing distributions of a quantitative variable across two or more groups, the AP Statistics framework asks you to address four key features in every comparison. These features form the mnemonic SOCS—Shape, Outliers (and other unusual features), Center, and Spread—and each must be discussed using comparative language rather than in isolated descriptions. Stating that "Group A is right-skewed" and "Group B is roughly symmetric" is good, but the comparative framing—"Group A is right-skewed while Group B is roughly symmetric"—is what earns full credit on the AP exam.

1

Shape

Describe each distribution's shape (symmetric, left-skewed, right-skewed, uniform, bimodal) and explicitly compare. Shape determines whether the mean or median is the more appropriate measure of center.
2

Outliers & Unusual Features

Identify gaps, clusters, or individual outliers in each group. Note whether outliers appear in one group but not the other, and consider their potential impact on summary statistics.
3

Center

Compare the typical values using the mean (for roughly symmetric distributions) or median (for skewed distributions). Use specific numerical values when available: "The median for Group A (72) is higher than for Group B (64)."
4

Spread

Compare variability using standard deviation, IQR, or range. Greater spread means more variability within a group. Spread differences are often just as important as center differences for understanding group behavior.
KEY TAKEAWAY
Think of comparing distributions like comparing two cities' weather. Saying "City A averages 75°F" tells you something, but saying "City A averages 75°F while City B averages 60°F, and City A's temperatures vary much less from day to day" paints a complete, comparative picture. On the AP exam, an isolated description of each group—without explicit comparative language connecting them—will not earn full credit.
📝 AP Exam Tip
Always use comparative words such as "higher than," "more spread out than," "similar to," "whereas," or "in contrast." Writing two separate descriptions without linking them is one of the most common scoring errors on free-response questions involving distribution comparison.

Visual Explanation: Side-by-Side Comparison

The most effective way to compare distributions is through parallel graphical displays that share a common axis. When histograms, dotplots, or boxplots are placed side by side on the same scale, differences in shape, center, and spread become immediately visible. The following diagram illustrates side-by-side boxplots for test scores from two classes, allowing you to compare all four SOCS features at a glance.

Side-by-side boxplots for two classes sharing a common horizontal axis. Class A (violet) has a lower median (66) compared to Class B (cyan, median 74). Class A shows greater spread (IQR = 20 vs. IQR = 16 for Class B). Both distributions appear roughly symmetric with no outliers. The dashed vertical lines highlight the difference in medians.

Notice how placing both boxplots on the same scale (40 to 90) makes the comparison immediate. You can see at a glance that Class B's scores are generally higher (the entire box is shifted to the right), while Class A's scores are more spread out (the box and whiskers span a wider range). This kind of visual evidence is exactly what you should reference when writing a comparison on the AP exam. When reading boxplots, remember that the box represents the middle 50% of data (the IQR), the line inside the box marks the median, and the whiskers extend to the smallest and largest non-outlier values.

Numerical Measures for Comparison

While graphical displays provide an intuitive comparison, numerical summary statistics allow you to make precise, quantitative statements about how distributions differ. The choice of which statistics to report depends on the shape of the distributions being compared. For roughly symmetric distributions without strong outliers, the mean and standard deviation are the preferred measures of center and spread. For skewed distributions or those with outliers, the median and interquartile range (IQR) are more robust choices because they resist the pull of extreme values.

SAMPLE MEAN
x̄ = (1/n) × Σxᵢ
Where n is the sample size and xᵢ represents each observation. The mean is the arithmetic average—sensitive to every data value, including outliers.
SAMPLE STANDARD DEVIATION
s = √[ Σ(xᵢ − x̄)² / (n − 1) ]
The standard deviation measures the typical distance of observations from the mean. A larger s indicates more variability. Like the mean, it is sensitive to outliers.
INTERQUARTILE RANGE
IQR = Q₃ − Q₁
Where Q₁ is the 25th percentile and Q₃ is the 75th percentile. The IQR captures the spread of the middle 50% of observations and is resistant to outliers.
OUTLIER IDENTIFICATION (1.5 × IQR RULE)
Outlier if x < Q₁ − 1.5 × IQR or x > Q₃ + 1.5 × IQR
This criterion defines the "fences" beyond which observations are flagged as potential outliers. On boxplots, outliers appear as individual dots beyond the whiskers.
⚠️ Matching Statistics to Shape
When comparing distributions, use the same type of statistic for both groups to ensure a fair comparison. If either distribution is skewed or has outliers, report the median and IQR for both groups—even if one group happens to be roughly symmetric. Consistency is essential for a valid comparison.

Types of Comparative Displays

Several graphical displays are commonly used for comparing distributions, and each has its own strengths. The choice depends on the number of groups, the sample sizes, and the level of detail required. On the AP exam, you should be comfortable reading and interpreting all of the following display types, and you should be prepared to construct boxplots and dotplots by hand.

Three common comparative displays (back-to-back stemplot, parallel dotplots, and parallel boxplots) with guidance on when to use each type. Each display has trade-offs between detail and efficiency.

The back-to-back stemplot places two groups' leaves on opposite sides of a shared stem column, preserving every individual data value while facilitating direct comparison. It works best when you have exactly two groups with relatively small sample sizes. Parallel dotplots stack separate dotplots vertically on a shared horizontal axis, making it easy to see the overall shape and individual data points. Parallel boxplots are the most commonly used display for AP Statistics because they efficiently summarize and compare the five-number summary across any number of groups. However, remember that boxplots sacrifice detail—they do not reveal bimodality, clusters, or gaps within the middle 50% of the data.

Worked Example: Comparing Two Groups

A researcher collected data on the number of hours of sleep per night for two groups: 12 college students during finals week and 12 college students during a regular (non-exam) week. The data are summarized below.

Five-number summaries and descriptive statistics for hours of sleep per night
StatisticFinals WeekRegular Week
Minimum3.56.0
Q₁4.56.8
Median5.57.5
Q₃6.28.0
Maximum7.09.0
Mean5.37.4
Std. Dev.1.10.9
Writing a Complete Comparison (SOCS)
1
Step 1 — Compare ShapeFor the finals week group, the mean (5.3) is slightly less than the median (5.5), suggesting a slight left skew—some students may have gotten very little sleep. For the regular week group, the mean (7.4) and median (7.5) are nearly equal, suggesting a roughly symmetric distribution. Both distributions are approximately symmetric to slightly skewed.
Both distributions are roughly symmetric; the finals week group may be slightly left-skewed.
2
Step 2 — Note Outliers / Unusual FeaturesUsing the 1.5 × IQR rule for the finals group: IQR = 6.2 − 4.5 = 1.7, so fences are at 4.5 − 1.5(1.7) = 1.95 and 6.2 + 1.5(1.7) = 8.75. The minimum (3.5) and maximum (7.0) both fall within these fences, so there are no outliers. For the regular week group: IQR = 8.0 − 6.8 = 1.2, fences at 6.8 − 1.8 = 5.0 and 8.0 + 1.8 = 9.8. Again, no outliers.
Neither distribution appears to have outliers by the 1.5 × IQR criterion.
3
Step 3 — Compare CenterThe median sleep during finals week (5.5 hours) is substantially lower than the median sleep during a regular week (7.5 hours)—a difference of 2.0 hours. This indicates that college students typically get about 2 fewer hours of sleep per night during finals compared to a normal week.
Center: Regular week median (7.5 hrs) is 2.0 hours higher than finals week median (5.5 hrs).
4
Step 4 — Compare SpreadThe IQR for the finals week group (1.7 hours) is greater than the IQR for the regular week group (1.2 hours), and the standard deviations tell the same story (1.1 vs. 0.9). The range of sleep hours during finals (3.5 hours) also exceeds that of a regular week (3.0 hours). This suggests that there is more variability in sleep during finals week—some students cut sleep dramatically while others maintain closer-to-normal patterns.
Spread: Finals week (IQR = 1.7, s = 1.1) is more variable than regular week (IQR = 1.2, s = 0.9).
5
Step 5 — Context & ConclusionIn the context of this study, college students during finals week get substantially less sleep and show more variability in sleep hours than students during a regular week. The distributions have similar shapes (both roughly symmetric) and neither contains outliers, but they differ meaningfully in center and spread.
Complete comparison: Both distributions are roughly symmetric with no outliers, but finals-week sleep is centered about 2 hours lower and is more variable than regular-week sleep.

Common Strengths & Pitfalls

Even students who understand the SOCS framework often lose points on AP free-response questions because of avoidable errors. The table below contrasts effective comparison strategies with common mistakes, drawn from released AP scoring guidelines.

Scoring strategies vs. common errors on AP distribution comparison questions
Effective Strategy ✓Common Pitfall ✗
Use explicit comparative language: "Group A's median is higher than Group B's."Describe each group in isolation without connecting them: "Group A's median is 72. Group B's median is 65."
Address all four SOCS features (shape, outliers, center, spread).Mention only center, ignoring shape and/or spread.
Include specific numerical evidence: "The IQR for finals week (1.7 hrs) exceeds that of the regular week (1.2 hrs)."Make vague claims: "One group is more spread out."
Use consistent statistics: if one distribution is skewed, report median and IQR for both.Mix statistics: report the mean for one group and the median for the other.
Provide context: relate your comparison to the variable and groups being studied.Write a generic comparison with no reference to the variables or real-world meaning.
THE COMPARISON PRINCIPLE
Think of each SOCS feature as a dimension. Describing one group's center without comparing it to the other group's center is like reporting only the latitude of a city and expecting someone to know where it is—you need both coordinates. Every feature you describe for one group must be explicitly compared to the same feature in the other group, with numerical support and context.

Connection to Inference

Descriptive comparison of distributions is the essential first step, but it does not by itself establish whether observed differences are statistically significant. Later in the AP Statistics curriculum, you will encounter inferential methods—particularly the two-sample t-test and the two-sample t-interval—that allow you to determine whether a difference in means could plausibly be due to chance alone. Understanding how to compare distributions descriptively prepares you for those procedures in two critical ways: (1) checking conditions such as approximate normality or identifying outliers that might violate assumptions, and (2) developing intuition about whether a difference in centers is large relative to the spread within each group.

Descriptive vs. inferential comparison of distributions
Descriptive Comparison (Unit 1)Inferential Comparison (Units 7–8)
Describes the observed dataGeneralizes from sample data to populations
Uses graphs and summary statistics (SOCS)Uses test statistics, p-values, and confidence intervals
Answers: "How do these samples differ?"Answers: "Is the difference likely real, or due to chance?"
No assumptions about random sampling requiredRequires random sampling/assignment and normality conditions
Checks shape and outliers to choose appropriate statisticsChecks shape and outliers to verify inference conditions

A useful heuristic: if the boxplots for two groups show substantial overlap (the boxes themselves are at similar positions on the axis), then a formal test may reveal no statistically significant difference. Conversely, if the boxes barely overlap or are entirely separated, there is strong visual evidence that the population centers differ. While this heuristic is not a substitute for a formal test, it builds the kind of statistical intuition that will serve you throughout the course and in professional data analysis.

Practice Problems

1
When comparing the distributions of test scores for two classes using side-by-side boxplots, a student writes: "The median for Class A is 78 and the median for Class B is 72. The IQR for Class A is 15 and the IQR for Class B is 10." Which of the following best describes what is missing from this comparison for a complete SOCS response?
2
A dataset for Group X has Q₁ = 20, median = 28, and Q₃ = 36. A dataset for Group Y has Q₁ = 25, median = 30, and Q₃ = 35. Which of the following statements correctly compares the spread of the middle 50% of these two groups?
3
Side-by-side boxplots show the distribution of commute times (in minutes) for employees at two offices. Office A's boxplot has its median line at 25 minutes, and the box extends from 18 to 35, with whiskers from 10 to 50 and one outlier plotted at 65. Office B's boxplot has its median line at 32 minutes, and the box extends from 27 to 40, with whiskers from 20 to 52 and no outliers. Which of the following is the best comparative statement?
PROBLEM 4APPLIED
A nutritionist recorded the daily calorie intake for two groups of adults: 15 individuals following a Mediterranean diet and 15 individuals following a typical Western diet. The five-number summaries are shown below. Mediterranean diet: Min = 1450, Q₁ = 1650, Median = 1820, Q₃ = 1950, Max = 2100 Western diet: Min = 1600, Q₁ = 2050, Median = 2350, Q₃ = 2700, Max = 3400 The mean and standard deviation for the Mediterranean diet group are 1810 and 185, respectively. For the Western diet group, the mean and standard deviation are 2380 and 480. (a) Construct a complete comparison of the two distributions using the SOCS framework. Use comparative language and reference specific numerical values. (b) A colleague suggests reporting the mean and standard deviation for both groups. Explain whether this is appropriate given the information provided.
PROBLEM 5CRITICAL THINKING
Two AP Statistics classes take the same exam. Class 1 (n = 30) has a mean score of 74 with a standard deviation of 8, and the distribution is approximately symmetric. Class 2 (n = 30) has a mean score of 74 with a standard deviation of 18, and the distribution is approximately symmetric. (a) Both classes have the same mean. Explain what the difference in standard deviations tells us about how students performed differently in the two classes. (b) Suppose a student scored 82 on the exam. Describe and compare this student's relative standing in each class. Use standardized scores (z-scores) to support your answer. (c) A school administrator says, "Both classes did equally well because they have the same average." Write a response explaining why this conclusion is incomplete and what additional information the comparison of distributions reveals.

Lesson Summary

Comparing distributions of a quantitative variable requires a systematic examination of four features, remembered by the acronym SOCS: Shape, Outliers, Center, and Spread. Every comparison must use explicit comparative language ("higher than," "more variable than," "whereas") rather than isolated descriptions of each group. Use side-by-side boxplots, parallel dotplots, or back-to-back stemplots on a shared axis for visual comparison, and support your observations with specific numerical evidence (medians, IQRs, means, standard deviations).

Choose your summary statistics to match the shape of the distributions: use median and IQR for skewed distributions and mean and standard deviation for symmetric distributions, and always use the same pair of statistics for both groups. Remember that this descriptive comparison lays the groundwork for later inferential procedures (two-sample t-tests and confidence intervals) that will let you determine whether observed differences are statistically significant.

Varsity Tutors • AP Statistics • Comparing Distributions of a Quantitative Variable