01 / 20

Comparing Data Sets
Center & Spread

Use the right statistics to compare the center and spread of two or more distributions, choosing measures that fit the shape of the data.

Statistics & Probability

Why Compare Two Sets?

A single data set tells one story. But the real power of statistics comes from comparison: Which class scored higher? Which machine is more consistent? To answer fairly, we summarize each set with two ideas.

Center
A typical value: the mean or the median. Where is the data "centered"?
Spread
How scattered the data is: the IQR or standard deviation. Are values tightly packed or spread wide?

Measures of Center

Mean \( \bar{x} \)
The average: $$\bar{x}=\frac{\sum x_i}{n}$$ Pulled toward outliers and skew.
Median
The middle value when data is ordered. Resistant to outliers and skew.

Measures of Spread

IQR
Interquartile range: $$\text{IQR}=Q_3-Q_1$$ The range of the middle 50%. Resistant to outliers.
Std. Deviation \( s \)
Typical distance from the mean: $$s=\sqrt{\frac{\sum (x_i-\bar{x})^2}{n-1}}$$ Sensitive to outliers.

Shape Drives the Choice

Symmetric mean = median Right-Skewed median mean With Outlier use median + IQR

The Comparison Rule

If roughly symmetric
Compare with mean and standard deviation \( s \).
If skewed / outliers
Compare with median and IQR.

Resistant vs. Sensitive

A statistic is resistant if a single extreme value barely changes it. Resistant measures shine when data is messy.

Resistant Sensitive
CenterMedianMean \( \bar{x} \)
SpreadIQRStd. dev. \( s \)
Affected by outliers?NoYes

How to Compare Step by Step

1
Look at the shape. Symmetric, or skewed with outliers? This decides which statistics to use.
2
Pick matching measures. Mean & \( s \) for symmetric; median & IQR for skewed.
3
Compare centers. Which set is typically higher or lower?
4
Compare spreads. Which set is more consistent (smaller spread)?
5
State a conclusion in context. Use real units and the situation's meaning.

Example 1: Two Quiz Sets

Class A: 7, 8, 8, 9, 9, 9, 10    Class B: 5, 6, 8, 9, 10, 10, 12. Both roughly symmetric. Compare center and spread.

Class AClass B
Mean \( \bar{x} \)\( 8.6 \)\( 8.6 \)
Std. dev. \( s \)\( 0.98 \)\( 2.44 \)

Example 2: Skewed Salaries

Firm X salaries ($1000s): 38, 40, 42, 44, 250. The outlier $250k pulls the mean far up. Which center is fair?

MeanMedian
Value ($1000s)\( 82.8 \)\( 42 \)

Example 3: Comparing Boxplots

0 25 50 75 100 P Q

Reading the Five Numbers

Min Q1 Median Q3 Max
\( \text{IQR} = Q_3 - Q_1 \)

Common Mistakes

✕ Mixing measures
Comparing one set's mean to another's median. Always use the same statistic for both sets.
✕ Ignoring shape
Using the mean on skewed data with outliers gives a misleading center.
✕ Center only
Two sets can share a mean but differ wildly in spread. Always report both.
✕ Range as spread
Range uses only the two extremes. IQR and \( s \) describe the bulk of the data better.

Summary: What to Use

SymmetricSkewed / Outliers
CenterMean \( \bar{x} \)Median
SpreadStd. dev. \( s \)IQR
Best displayHistogram / dot plotBoxplot
WhyMean & \( s \) accurateResistant to extremes

Center and Spread Together

same mean A: small spread B: large spread

Question 1 of 5

A data set is strongly right-skewed with a high outlier. Which pair of statistics best describes its center and spread?

Question 2 of 5

Set A and Set B have the same mean, but Set A has \( s = 2 \) and Set B has \( s = 6 \). Which is true?

Question 3 of 5

For the data 4, 6, 7, 8, 10, the values \( Q_1 = 5 \) and \( Q_3 = 9 \). What is the IQR?

Question 4 of 5

When comparing two boxplots, you notice Team Q's median is higher and its box is narrower than Team P's. What can you conclude?

Question 5 of 5

A student compares Set 1's mean to Set 2's median. Why is this comparison flawed?