AP · Statistics · Describing Distributions

Comparing Distributions

13 min readUpdated November 30, 2026FreeAP Statistics, Exploring One-Variable Data

To compare distributions of a quantitative variable, set the groups side by side on shape, center, variability and outliers, using comparative words such as "greater than" and specific values, in context. Back-to-back stemplots, parallel boxplots and histograms on the same scale let you see the groups together.

Quick check

  1. A boxplot has Q1=30Q_1 = 30 and Q3=46Q_3 = 46. What is the IQR?Show answerHide answer

    46−30=1646 - 30 = 16.

  2. Group A has median 52 points and Group B has median 47 points. Which group has the greater center?Show answerHide answer

    Group A. Its median, 52 points, is greater than Group B's, 47 points.

Know these already? Jump to the practice questions

What you'll be able to do

  • Compare two or more distributions on shape, center, variability and outliers, in context.
  • Interpret back-to-back stemplots and parallel boxplots.
  • Explain why histograms must share a scale before you compare them.

Key terms

Parallel boxplots

Boxplots of two or more groups drawn against one shared, scaled axis.

In plain English
Boxplots lined up so you can compare them by eye.
Don't write
A comparison of boxplots drawn on different scales; the lengths are not comparable.

Back-to-back stemplot

A stemplot with one column of shared stems, one group's leaves to the left and the other's to the right.

In plain English
Two stemplots sharing a spine.
Don't write
A left-side value with its digits reversed; the stem is still the tens digit.

What does a complete comparison include?

A complete comparison covers shape, center, variability and outliers. For each one, use a comparative word, values from both groups and the context:

  • Shape: "Both distributions of scores are roughly symmetric" counts as a comparison.
  • Center: median with median, or mean with mean.
  • Variability: IQR with IQR, standard deviation with standard deviation, or range with range.
  • Outliers: which group has them, or that neither does.

Use the median and IQR if either distribution is skewed or has outliers. "A: median 67. B: median 77." is two descriptions; "The median score in Section B (77) is 10 points greater than in Section A (67)" is a comparison.

Key idea

For each feature, write one sentence that names both groups, uses a comparative word and quotes both values.

Check yourself

Is "Group 1 has an IQR of 8 cm and Group 2 has an IQR of 12 cm" a complete comparison of variability?
Show answerHide answer

No. It needs a comparative word: "Heights in Group 2 are more variable than in Group 1 (IQR 12 cm compared with 8 cm)."

How do you read a back-to-back stemplot?

The stems run down the middle. Right-side leaves read as usual. Left-side leaves increase outward, away from the stem, but each value is still stem then leaf: a left leaf 3 next to stem 5 is 53, not 35.

To find a median, count from each group's smallest value; for the left group, that is the leaf next to the stem in the top row. Then compare which side sits lower on the stems and which is spread over more rows.

Check yourself

With key "2 | 6 | 1 means 62 on the left and 61 on the right", what values does the row "8 2 | 6 | 1 4" show for the left group?
Show answerHide answer

62 and 68.

How do you compare with parallel boxplots?

Read the same five-number summaries for each group and compare:

  • Center: the median lines.
  • Variability: the box lengths (IQRs) and the overall spreads (ranges).
  • Shape: where the median sits in the box and which whisker is longer.
  • Outliers: the separate points.

Overlap tells you more. If Group B's Q1Q_1 is above Group A's median, then about three-quarters or more of B's values exceed the middle value of A.

Check yourself

Group A's Q3Q_3 is 40 and Group B's median is 42. What can you say?
Show answerHide answer

About half of Group B's values exceed Group A's Q3Q_3, so they are greater than about 75% of Group A's values.

Why must histograms share a scale?

Two histograms can be compared by eye only when they share the same intervals and the same vertical scale; otherwise a more spread-out group can look narrower. When the group sizes differ, use relative frequency histograms, so a group of 40 and a group of 160 sit on the same 0-to-1 scale.

Check yourself

A class of 25 and a grade of 300 are to be compared with histograms. Frequency or relative frequency?
Show answerHide answer

Relative frequency, because the group sizes differ so much.

Worked example 1: A back-to-back stemplot

Question: Hypothetical test scores for two sections of 11 students are shown in this back-to-back stemplot, with key "2 | 5 | 8 means 52 for Section A and 58 for Section B". Find each median and range, and compare the distributions.

Section AStemSection B
8 25
7 5 4 160 6
8 3 2 071 4 5 7 9
582 4 6
95

What tells you the method

Two groups on shared stems call for a four-part comparison.

  1. Step 1: Find each median and range.

    With 11 values, the median is the 6th: 67 for A and 77 for B. The ranges are 85−52=3385 - 52 = 33 and 95−60=3595 - 60 = 35 points.

    Why

    Count from each group's smallest value.

  2. Step 2: Check for outliers and shape.

    The fences are 43 and 91 for A and 51.5 and 103.5 for B, so neither has outliers, and both are roughly symmetric.

    Why

    A complete comparison mentions outliers even when there are none.

  3. Step 3: Write the comparison.

    The median score in Section B (77) is 10 points greater than in Section A (67). The variability is similar (ranges 35 and 33 points; IQRs 13 and 12 points). Both are roughly symmetric with no outliers.

    Why

    Each sentence names both sections.

Check it

In each section, 5 values lie below the median and 5 above, as they should for n=11n = 11.

Answer

The medians are 67 for A and 77 for B, and the ranges are 33 and 35 points; B is higher by 10 points at the median, with similar variability.

Worked example 2: Parallel boxplots

Question: Hypothetical battery lives, in hours, of 25 Model X phones and 25 Model Y phones are shown in the figures "Boxplot of battery life for 25 hypothetical Model X phones" and "Boxplot of battery life for 25 hypothetical Model Y phones", on the same scale. Model X: minimum 8.2, Q1=9.5Q_1 = 9.5, median 10.4, Q3=11.0Q_3 = 11.0, maximum 11.8. Model Y: minimum 7.0, Q1=8.6Q_1 = 8.6, median 9.3, Q3=10.9Q_3 = 10.9, maximum 16.5, with 12.8 the largest value that is not an outlier. (a) Calculate each IQR and show that Model Y has a high outlier. (b) Compare the distributions.

What tells you the method

"Compare" means all four features, read from the boxes and whiskers.

  1. Step 1: Calculate the IQRs.

    X: 11.0−9.5=1.511.0 - 9.5 = 1.5 hours. Y: 10.9−8.6=2.310.9 - 8.6 = 2.3 hours.

    Why

    The box length is the IQR, a resistant measure of variability.

  2. Step 2: Test Model Y's maximum.

    The upper fence is 10.9+1.5×2.3=14.3510.9 + 1.5 \times 2.3 = 14.35 hours, and 16.5 is above it.

    Why

    Model X's fences, 7.25 and 13.25, contain all its values, so only Y has an outlier.

  3. Step 3: Write the comparison.

    Model X has the greater median battery life (10.4 hours compared with 9.3 hours). Model Y is more variable (IQR 2.3 hours compared with 1.5 hours). Model X is skewed left, with a longer left whisker, while Model Y is skewed right. Only Model Y has an outlier, a phone lasting 16.5 hours.

    Why

    All four features, with both values and the units.

Check it

X's median, 10.4, lies inside Y's box, so the groups overlap.

Answer

(a) The IQRs are 1.5 hours for X and 2.3 hours for Y, and Model Y's upper fence is 14.35, so 16.5 is an outlier. (b) The comparison is in Step 3.

Your turn

Question: In a hypothetical company, commute times by bus have mean 34.2 minutes and standard deviation 4.1 minutes; by car they have mean 27.5 minutes and standard deviation 8.9 minutes. Both distributions are roughly symmetric with no outliers. Compare the centers and variability, giving the difference in means.

  1. Step 1:

    Both are roughly symmetric without outliers, so the mean and standard deviation are suitable.

  2. Step 2: Your go: compare the means, with the difference, then compare the standard deviations.

Show the full solutionHide the solution

The mean bus commute is 34.2−27.5=6.734.2 - 27.5 = 6.7 minutes longer than the mean car commute. Car commute times are more variable, with standard deviation 8.9 minutes compared with 4.1 minutes for the bus.

Answer: The mean bus commute is 6.7 minutes longer, and car commutes are more variable (8.9 compared with 4.1 minutes).

Traps

Trap

Writing two separate descriptions and calling it a comparison.

It seems right because every value is given. But a comparison needs a comparative word linking the groups, such as "greater than" or "similar to", in each sentence.

Check yourself

Turn "A: median 12 s. B: median 15 s." into a comparison of reaction times.
Show answerHide answer

"The median reaction time for B (15 s) is greater than for A (12 s)."

Trap

Comparing counts of two groups from boxplots.

It seems right because one box looks bigger. But boxplots do not show sample sizes, so you can only compare percents of each group, such as "about 75% of A".

Check yourself

Box A is longer than Box B. Does Group A have more values?
Show answerHide answer

Not necessarily. A longer box means a greater IQR, not more data.

What's examined

Comparing distributions is tested on the AP® Statistics exam, in both the multiple-choice and free-response sections. A Compare question may show back-to-back stemplots, parallel boxplots or histograms; a strong answer covers all four features with comparative words, values for both groups and context.

Practice questions

  1. Recall Which sentence is a complete comparison of center?
    • A) "The median of A is 45 and the median of B is 52."
    • B) "B is bigger than A."
    • C) "Group B has a higher median, so it is more spread out."
    • D) "The median salary at Company B (52 thousand dollars) is greater than at Company A (45 thousand dollars)."
Show answer

Answer: D) "The median salary at Company B (52 thousand dollars) is greater than at Company A (45 thousand dollars)."

Marking points:

  • D names the statistic and context, uses a comparative word and quotes both values.
  • A has no comparative word. B has no statistic or values. C confuses center with variability.
  1. Recall A back-to-back stemplot has key "4 | 6 | 2 means 64 for Group L and 62 for Group R". Which values does the row "7 4 | 6 | 1 8" show for Group L?
    • A) 61 and 68
    • B) 46 and 76
    • C) 64 and 67
    • D) 6.4 and 6.7
Show answer

Answer: C) 64 and 67

Marking points:

  • Each left leaf joins the stem as its units digit: 64 and 67.
  • A reads the right side. B swaps stem and leaf. D ignores the key's place value.
  1. Apply Parallel boxplots of a hypothetical variable show Group A with Q1=20Q_1 = 20, median 28 and Q3=35Q_3 = 35, and Group B with Q1=30Q_1 = 30, median 38 and Q3=47Q_3 = 47. Which statement is supported?
    • A) About three-quarters or more of Group B's values are greater than Group A's median.
    • B) Group A has the greater IQR.
    • C) Group B has more values above 35 than Group A.
    • D) Every value in Group B is greater than every value in Group A.
Show answer

Answer: A) About three-quarters or more of Group B's values are greater than Group A's median.

Marking points:

  • B's Q1Q_1, 30, is above A's median, 28, and about 75% of B lies at or above Q1Q_1.
  • B is false: the IQRs are 15 and 17. C compares counts, which boxplots do not show. D ignores the overlapping boxes.
  1. Apply Group A has Q1=12Q_1 = 12 and Q3=21Q_3 = 21; Group B has Q1=15Q_1 = 15 and Q3=19Q_3 = 19. Calculate both IQRs and state which group is more variable.
Show answer

Answer: The IQRs are 9 for A and 4 for B, so Group A is more variable.

Marking points:

  • A: 21−12=921 - 12 = 9. B: 19−15=419 - 15 = 4.
  • The greater IQR means a more spread-out middle half.
  1. Exam-style A hypothetical study compares hours of sleep for 40 students at one school and 160 students at another. Which display allows a fair comparison of the two distributions?
    • A) Frequency histograms, each with its own vertical scale
    • B) Relative frequency histograms with the same intervals and scales
    • C) Frequency histograms with the same intervals and scales
    • D) One histogram of all 200 students combined
Show answer

Answer: B) Relative frequency histograms with the same intervals and scales.

Marking points:

  • Relative frequencies put groups of different sizes on the same scale, and shared axes make the bars comparable.
  • A makes the axes incomparable. C lets the larger school's bars tower over the smaller one's. D removes the comparison.
  1. Exam-style Hypothetical daily screen time, in hours, for 30 teens in Town P has five-number summary 1.0, 2.5, 3.5, 4.5 and 6.0; for 30 teens in Town Q it is 1.5, 3.0, 4.5, 5.0 and 9.5. (a) Show that Town Q has a high outlier. (b) Compare the centers.
Show answer

Answer: (a) Town Q's upper fence is 8.0 hours, and 9.5 is above it. (b) The median screen time in Town Q (4.5 hours) is 1 hour greater than in Town P (3.5 hours).

Marking points:

  • Town Q: IQR=5.0−3.0=2.0\text{IQR} = 5.0 - 3.0 = 2.0, so the upper fence is 5.0+3.0=8.05.0 + 3.0 = 8.0, and 9.5>8.09.5 > 8.0.
  • The medians are compared with a comparative word, both values and context; the median suits Q, which has an outlier.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Compare shape, center, variability and outliers, naming both groups in each sentence.
  • Use comparative words and quote values from both groups, with units and context.
  • On a back-to-back stemplot, left leaves grow outward but still read stem then leaf.
  • Parallel boxplots and histograms need one shared scale; use relative frequencies for groups of different sizes.

Figures

Boxplot on a battery life scale from 6 to 18 hours. The box runs from 9.5 to 11.0 hours with the median at 10.4. The whiskers reach 8.2 and 11.8 hours, the left whisker longer. There are no outliers. (open full size in a new tab)
Boxplot of battery life for 25 hypothetical Model X phones
Boxplot on a battery life scale from 6 to 18 hours. The box runs from 8.6 to 10.9 hours with the median at 9.3. The whiskers reach 7.0 and 12.8 hours, the right whisker longer, and a separate point marks an outlier at 16.5 hours. (open full size in a new tab)
Boxplot of battery life for 25 hypothetical Model Y phones

Keep learning

Prerequisites: Boxplots and Outliers

Explore AP Statistics tutoring →

View the full Statistics syllabus →

More in this unit

Exploring One-Variable Data

All Describing Distributions notes

Part of Novark's AP Statistics notes