Comparisons of the Distributionsfor One Quantitative Variable
Compare two groups with clear graphs and evidence. Learn to explain differences in typical values and variability, then use z-scores to understand where an individual value stands within its own group.
By the end of this lesson, you should be able to:
- Compare distributions of the same quantitative variable using appropriate graphs and summaries.
- Write a direct comparison of center, variability, shape and unusual features in context.
- Support or challenge a claim using evidence from more than one distribution.
- Calculate and interpret z-scores, including negative values.
- Distinguish a higher raw value from a higher relative position.
Before you start: Know how to describe a distribution, find numerical summaries and read a boxplot. Review Topic 1.8 if boxplots are still unfamiliar.
First time learning this? Begin with the two-school example, then work through the comparison checklist and z-score number line.
Here to revise? Use the quick checklist, then try the practice questions before opening the solutions.
The concept in 60 seconds
A comparison connects two or more groups using the same quantitative variable. Instead of writing separate descriptions and leaving the reader to work out the difference, say how the groups are similar or different and give evidence.
Compare whole distributions
Ask: which group has a higher typical value? Which has more variability? How do their shapes and unusual features compare?
Example: “Birch High has a higher median travel time than Cedar High: versus .”
Compare individual positions
Ask: how far is this value from its own group’s mean, measured in standard deviations? A z-score answers that question.
Example: a score standard deviations above its test mean has a higher standardized position than one only standard deviation above its test mean.
Keep the two tasks distinct: a boxplot comparison describes groups. A z-score describes an individual value relative to a reference distribution.
Higher is not always preferable. A higher test score may be desirable; a shorter race time may be desirable. Explain what “better” means in the context before making a judgment.
Compare school travel times
record students’ one-way home-to-school travel time on the Tuesday being studied, rounded to the nearest minute. We use the same Cedar High observations from earlier lessons and a new sample of Birch High observations.
See the recorded values
Cedar High, : , , , , , , , , , , , , , , , , , , , .
Birch High, : , , , , , , , , , , , .
dot represents student · stacks show repeated times
On a small screen, scroll the plot sideways to read the full scale.
The Cedar observations extend farther toward the low end and have a longer upper tail. Birch’s observations are arranged symmetrically around . The groups overlap: a higher typical time at Birch does not mean every Birch student travels longer than every Cedar student.
Modified boxplots · actual non-outlier whisker endpoints · rule
On a small screen, scroll the plot sideways to read the full scale.
| Summary | Cedar High | Birch High |
|---|---|---|
| Sample size | ||
| Median | ||
| to | to | to |
| Minimum to maximum | to | to |
| Range | ||
| Mean | ||
| Sample standard deviation, |
Predict: which school has longer typical travel times, and which has more variability in its middle half?
Check your prediction
Birch has longer typical travel times, using its median of versus Cedar’s . Cedar has more variability in the middle half, because its is versus Birch’s . These are two different comparisons: a higher center does not automatically mean greater spread.
Quartiles here use the median of each half of the ordered data. For odd sample sizes, exclude the overall median from the halves. Modified boxplots use the outlier rule. Neither school sample has a flagged observation under that rule.
Choose a graph and compare the important features
SOCS—shape, outliers, center and spread—is a useful reminder. Also look for clusters or gaps when the graph displays them. Let the question and available evidence determine what your answer needs; the mnemonic is not an instruction to invent missing information.
What can each graph tell you?
| Display | Useful for | Limitation to remember |
|---|---|---|
| Aligned dotplots | Seeing individual values, repeated observations, clusters, gaps and overall patterns in small samples. | Large samples can become crowded. Use a common numerical scale. |
| Histograms | Comparing overall shape and variability, especially with larger samples. | Bins hide exact values. Match bin boundaries and consider relative frequencies when sample sizes differ. |
| Back-to-back stem-and-leaf plot | Comparing two small datasets while retaining every recorded value. | Read the two sides using the key; leaves on the left are usually listed in descending order. |
| Parallel boxplots | Quick comparisons of medians, IQRs, endpoints and flagged outliers. Asymmetry can suggest skewness. | Standard boxes hide peaks, clusters, gaps, exact means and sample sizes. Use fuller graphs for detailed shape claims. |
Read a back-to-back stem-and-leaf plot
Here is a separate teaching example of travel times from . Stems are tens and leaves are ones. .
Key: on the left, leaf beside stem means for Group A; on the right, stem beside leaf means for Group B.
Group A has observations in the teens, while Group B . Group B’s values generally sit higher on the common minute scale. Its observations in the thirties are , and .
Check: what are the medians of ?
Group A’s are and , so its median is . Group B’s and , so its median is . Group B’s median is higher. These values belong to this stem-and-leaf example, rather than to the Cedar–Birch samples.
Compare numerical summaries and graph scales fairly
Use the same feature on both sides
Compare a median with a median, an with an , and a standard deviation with a standard deviation. A statement such as “Cedar’s range is greater than Birch’s ” mixes two different summaries and does not directly compare their variability using one measure.
Median and are often informative when a distribution is skewed or contains outliers because they are resistant to extreme values. Mean and standard deviation describe the average and variation around it and are often useful for relatively symmetric distributions without strong outliers. If a question asks for a specific summary, use it and explain any relevant limitation.
The school table supports a comparison of means and standard deviations as well as medians and IQRs. These numbers were calculated from the observations; they were not read directly from the standard boxplots.
Common axes and bins keep the visual comparison honest
Graphs of the same variable should use compatible units and numerical scales. Histograms should use the same bin boundaries when comparing shapes. Check the labels before judging which distribution looks wider.
Top: frequencies · bottom: percentages · matching -minute bins
On a small screen, scroll the plot sideways to read the full scale.
In this separate fictional example, Group B has as Group A. Every frequency bar is , but the percentage in each matching bin is the same: , , and . Taller count bars alone do not show greater variability or a higher center.
Group A’s minute bin: .
Group B’s matching bin: .
The frequency panels share one count scale; the relative-frequency panels share one percentage scale. Matching bins use , , and .
Compare a claim with the feature it actually concerns
“More consistent” concerns variability, so use an appropriate spread measure. “Typically longer” concerns center. “Every observation is larger” concerns the actual ordering and overlap, so medians alone cannot establish it. “Caused by the school” needs information about how the study was designed; the graphs alone do not show causation.
Understand and calculate z-scores
A z-score tells you how many standard deviations a value lies above or below its distribution’s mean. Start with the difference from the mean, then divide by the standard deviation to put that difference on a common scale.
Population parameters:
Using sample summaries:
| Symbol | Meaning |
|---|---|
| The individual value being standardized. | |
| , pronounced “mu” | The population mean. |
| , pronounced “sigma” | The population standard deviation. |
| and | The sample mean and sample standard deviation, used when appropriate population parameters are unknown. |
Use a positive standard deviation. If all observations are identical, the and the formula involves , so a z-score is undefined.
Reference population: ·
On a small screen, scroll the plot sideways to read the full scale.
Calculate first, then interpret
- Identify the reference group: make sure the mean and standard deviation belong to the distribution containing the value.
- Subtract the mean: here, above the mean.
- Divide by the standard deviation: .
- Interpret: this -point score is standard deviations above the reference population mean.
Points divided by points cancel, so a z-score has no original measurement units. You report its meaning in standard deviations, rather than saying “.”
A z-score does not automatically give a percentile
You can standardize a value even when its distribution is not Normal. But does not automatically mean a particular percentage lies below it. A percentile or probability requires information about the distribution’s shape or its actual observations.
Can we work backward from a z-score?
Yes. Rearranging gives . If , and , then . Check: is below the mean, so its negative z-score makes sense.
Worked examples
Example 1: compare two complete distributions
Task: compare the Cedar and Birch travel-time samples using the two graphs and numerical summaries above.
- Center: Birch’s median is versus Cedar’s , so Birch has longer typical travel times by this measure.
- Variability: Cedar’s is versus Birch’s ; Cedar’s range is also larger, versus .
- Shape: Cedar shows a longer upper tail, while Birch’s recorded times are symmetric around . Use the dotplots for the detailed pattern.
- Outliers: neither sample contains observations beyond its fences.
- Scope: describe these recorded samples. The displays alone do not establish a difference for all students or explain its cause.
Model response: “For these samples, Birch students have longer typical one-way travel times than Cedar students, with medians of and , respectively. Cedar’s times vary more in the middle half, with an of compared with at Birch. Cedar has a longer upper tail, while Birch’s sample is symmetric. Neither sample has a flagged outlier under the rule.”
Example 2: a lower raw score can have a higher relative position
Task: Aria scores on Test A, where the reference population has and . Ben scores on Test B, where and . Who has the higher standardized position?
Aria: .
Ben: .
Test A: , · Test B: ,
On a small screen, scroll the plot sideways to read the full scale.
Answer: Ben has the higher standardized position because . His score is standard deviations above Test B’s mean, whereas Aria’s is standard deviations above Test A’s mean. Aria has the higher raw score, versus .
This compares positions relative to different reference groups. It does not prove that one student has greater overall ability, and without distribution information it does not establish their percentile ranks.
Example 3: lower values can be desirable
Task: in , Casey finishes in and Drew in . Casey’s reference population has and ; Drew’s has and . Compare their positions.
Casey: .
Drew: .
Answer: Casey is standard deviations below the category mean, while Drew is below. Since shorter times are desirable, Casey’s result is farther below the category mean on the standardized scale. Drew still has the shorter actual time, versus .
Do not turn into when ranking positions: is the lower standardized position. Its absolute value, , tells us its distance from the mean.
Example 4: recover the original value
Task: a package’s mass has relative to a population with mean and standard deviation . Find the package’s mass.
.
Check: . The mass is positive even though the z-score is negative; the minus sign tells us the mass is below the mean.
Write a comparison and justify a claim
Use three ingredients: name both groups, state a comparative relationship, and support it with the relevant feature or calculation. Add the variable and units so the meaning is clear.
“Group ___ has a [higher/lower/similar] ___ than Group ___, with ___ versus ___ [units].”
“The claim is [supported/not supported] for these data because ___.”
Improve a vague statement
Vague: “Birch is higher and Cedar is bigger.”
Clear: “Birch’s median one-way travel time is higher than Cedar’s, while Cedar has the larger , versus .”
“Bigger” could refer to sample size, center or variability. Naming the measure removes the ambiguity.
Evaluate the claim the question actually makes
Claim: “Birch students usually travel longer, but their travel times are more consistent.”
The samples support “longer” using the medians: versus . They support “more consistent” in the middle half using Birch’s smaller : versus . The range comparison also points to less overall spread at Birch in these samples.
What changes if the claim says “every Birch student travels longer”?
That stronger claim is not supported. Birch has an -minute observation, while Cedar has a -minute observation. The groups overlap. A comparison of medians describes typical values rather than proving a statement about every observation.
Describe what you observed: “These samples differ” is supported by the displayed data. Generalizing to populations requires information about data collection. Calling a difference “statistically significant” requires an appropriate inferential analysis.
There may be many possible explanations for a difference in school travel times. Suggesting a cause without study-design evidence would go beyond these graphs. For now, connect the claim to the measurements you can actually compare.
Common mistakes and how to fix them
| Mistake | Why it fails | Better approach |
|---|---|---|
| Describe each group without comparing them. | The reader has to infer the relationship. | Use “higher than,” “less variable than” or “similar to,” with both group names. |
| Treat taller frequency bars as greater spread. | Bar height may reflect a larger sample rather than a wider distribution. | Check sample sizes, numerical scales, bin boundaries and relative frequencies. |
| Read a mean or peaks from standard boxplots. | Those details are not normally displayed. | Use supplied summaries for means, and dotplots or histograms for detailed shape features. |
| Call one group “more spread out” without naming a measure. | Range, and standard deviation measure different aspects of variation. | Identify the measure and compare its values for both groups. |
| Use or . | The first omits the mean; the second reverses the intended sign. | Use , then check above or below the mean. |
| Say means a negative measurement. | The sign describes a difference from the mean, rather than the original value. | Say “ standard deviations below the reference mean.” |
| Convert every z-score to a percentile using a Normal table. | The distribution may not be Normal. | Interpret the standardized distance. Use a percentile model only when justified. |
| Claim a sample difference proves causation or a population difference. | Graphical differences alone do not establish those conclusions. | Keep the claim within the data and study design provided. |
Find the error: “A value with has a higher standardized position than a value with because is larger.”
Reveal the correction
The first value is farther from its own mean, because . But its standardized position is lower, because . Signed compares position; absolute compares distance.
Practice questions with hints and solutions
Write a sentence with each numerical answer. You may use a calculator for arithmetic; you still need to choose the correct comparison and explain its meaning.
1. Compare center and variability
For samples of daily reading time, Group A has median and . Group B has median and . Which group has the higher typical time, and which varies more in the middle half?
Hint
Use the median for the first question and the for the second.
Solution and explanation
Group B has the higher median, by . Group A has more variability in the middle half, with versus . A higher center does not imply greater variability.
2. When two spread measures disagree
Route A’s recorded waits have and range , including a flagged high outlier. Route B’s have and range , with no flagged outliers. A student says, “Route A is more variable in every way.” Assess the statement.
Hint
Compare with and range with range. What can the outlier do to the range?
Solution and explanation
The statement is too broad. Route A has the larger range, versus , but Route B has the larger , versus . Route B varies more in the middle half, while Route A spans a larger full interval. Route A’s high outlier helps explain why its range can be large despite a compact middle half.
3. Compare unequal sample sizes
Matching histogram bins contain of Group A’s observations and of Group B’s observations. Does Group B have a greater proportion in that bin?
Hint
Divide each bin count by its own group’s total.
Solution and explanation
No. Both proportions are . Group A: . Group B: . Group B has more observations in the bin because its sample is larger; its proportion is the same.
4. Calculate and interpret a negative z-score
A -point score belongs to a reference population with and . Find and interpret its z-score.
Hint
The score is below the mean, so expect a negative answer.
Solution and explanation
. The score is standard deviations below the reference population mean. The score itself is positive: .
5. Higher position or farther away?
Observation P has and observation Q has in their respective reference distributions. Which has the higher standardized position? Which is farther from its own mean?
Hint
Use the signed scores for position, then their absolute values for distance.
Solution and explanation
Q has the higher standardized position, because . P is farther from its reference mean, because in standard-deviation units. These answers address different questions.
6. Compare scores from different tests
Lina scores on a test with population mean and standard deviation . Omar scores on another test with population mean and standard deviation . Who has the higher raw score? Who has the higher standardized position?
Hint
Calculate a separate z-score using each test’s own mean and standard deviation.
Solution and explanation
Omar has the higher raw score, versus . Lina’s ; Omar’s . Lina has the higher standardized position: standard deviations above her test’s mean compared with Omar’s . These scores alone do not identify either student’s exact percentile.
7. Read the two sides of a stem-and-leaf plot
Use the back-to-back travel-time plot in Section 3. How many students in each group have times of at least ? What proportion is that within each group?
Hint
Count leaves on stems and on each side. Both samples have observations.
Solution and explanation
Group A has students on stem and on stem : . Group B has on stem and on stem : . Group B has the greater proportion with recorded travel times of at least .
8. What does a z-score actually establish?
A shop’s delivery-time distribution is strongly right-skewed. A delivery has . A student says, “This delivery is at the median, so exactly of deliveries take less time.” Is that conclusion justified?
Hint
Which center appears in the z-score formula?
Solution and explanation
No. means the delivery time equals the reference mean. It does not establish that the time equals the median or that exactly half of the deliveries are shorter. In a right-skewed distribution, the mean is typically above the median. The actual observations or an appropriate distribution model are needed to determine a percentile.
Quick revision
Quick questions students often ask
Must I mention every SOCS feature in every answer?
Answer the question asked. For a full distribution comparison, address the important features the evidence supports. For a question only about center and variability, focus on those. Do not invent peaks or outliers to fill a checklist.
Do overlapping boxplots mean the groups have the same center?
No. Boxes or whiskers can overlap while median lines differ. Describe the actual medians and IQRs. Overlap by itself also does not settle a question about statistical significance.
Can I calculate for a distribution that is not Normal?
Yes, provided the needed mean and positive standard deviation are defined. The score still measures standardized distance. Normal probability or percentile calculations require a justified Normal model.
Does always mean an outlier?
No universal outlier rule follows from that number alone. It means the value is standard deviations above the mean. If the question asks for the rule, use quartiles and fences. The word “unusual” should be tied to a stated rule or distribution model.
Final understanding check
record customer waits, in minutes. Each sample has observations:
Store A: , , , , , , , , ,
Store B: , , , , , , , , ,
- Calculate the medians and IQRs, then assess: “Store A has longer typical waits and greater variability in the middle half.”
- Apply the rule. Explain how a modified boxplot would show each sample.
- For a separate reference population with mean wait and standard deviation , interpret a wait of using a z-score. Does it automatically identify a percentile?
Reveal the full solution and completed boxplots
1. Center and variability: both sample medians are . Store A has , and . Store B has , and . The claim’s “longer typical waits” part is not supported using medians; its “greater variability in the middle half” part is supported by Store A’s larger .
2. Outliers and boxplots: Store A’s fences are and . Its -minute wait is flagged. Its modified whiskers end at and , and the -minute wait appears as a separate point. Store B’s fences are and , so no observations are flagged; whiskers end at and .
Modified boxplots · actual non-outlier whisker endpoints · rule
On a small screen, scroll the plot sideways to read the full scale.
The full ranges are for Store A and for Store B. Store A’s outlier stays in the data and in its full range even though it is plotted beyond the whisker.
3. Standardized position: . This wait is standard deviation below the separate reference population’s mean. Its percentile cannot be determined from alone without more distribution information.
Check your understanding: did you name the measure of center, compare IQRs directly, preserve the outlier and interpret the sign of ?
Continue learning
You can now compare group patterns and individual relative positions. Next, return to the investigative question and plan what data are needed to answer it.
The Investigative Question Revisited and Data Collection →
Connect what you want to learn to the variables, groups and data-collection plan you need.
Previous: Topic 1.8 — Boxplots · Review z-scores · Back to the lesson overview