Measures of
Spread
Understand how data varies with Range, IQR, Variance, and Standard Deviation: the essential tools for describing data variability.
Why Measure Spread?
Two datasets can share the same mean yet look completely different. Measures of center (mean, median) tell you where data clusters, but measures of spread tell you how far values stray from that center.
Four Measures of Variability
The Range
The range uses only two data points: the largest and smallest. It's quick to compute but a single outlier can inflate it dramatically.
Interquartile Range: IQR
The IQR ignores the extreme 25% on each end, making it resistant to outliers. It's the basis for identifying outliers via the 1.5 × IQR rule.
Variance: The Core Formula
Each deviation \((x_i - \bar{x})\) is squared so that positive and negative deviations don't cancel out. We divide by \(n - 1\) for a sample (Bessel's correction) to produce an unbiased estimator of the population variance.
Standard Deviation
Taking the square root of the variance returns the measure to the original units of the data. If your data is in kilograms, \(s^2\) is in \(\text{kg}^2\), but \(s\) is back in kg.
Population vs Sample
| Population | Sample | |
|---|---|---|
| Symbol (Mean) | \(\mu\) | \(\bar{x}\) |
| Symbol (Variance) | \(\sigma^2\) | \(s^2\) |
| Symbol (Std Dev) | \(\sigma\) | \(s\) |
| Divisor | \(N\) | \(n - 1\) |
| When to use | Entire group known | Subset of the population |
How to Calculate Step by Step
Worked Example: Range & IQR
Worked Example: Variance & \(s\)
| \(x_i\) | \(x_i - \bar{x}\) | \((x_i - \bar{x})^2\) |
|---|---|---|
| 4 | \(-2\) | 4 |
| 8 | \(+2\) | 4 |
| 6 | \(0\) | 0 |
| 5 | \(-1\) | 1 |
| 7 | \(+1\) | 1 |
Example: Outlier Impact
Compare two datasets that differ by a single outlier:
Range = 4, \(s \approx\) 1.58
Range = 40, \(s \approx\) 17.25
Visualizing Standard Deviation
Resistant vs Non-Resistant Measures
| Property | Resistant | Non-Resistant |
|---|---|---|
| Measures | IQR, Median | Range, Variance, Std Dev, Mean |
| Outlier effect | Minimal | Large |
| Best for | Skewed data | Symmetric data |
| Pairing | Median + IQR | Mean + Std Dev |
Common Mistakes
Summary of Spread Measures
| Measure | Formula | Pros | Cons |
|---|---|---|---|
| Range | \(x_{\max} - x_{\min}\) | Simple, fast | Sensitive to outliers |
| IQR | \(Q_3 - Q_1\) | Resistant | Ignores tails |
| Variance | \(\frac{\sum(x_i-\bar{x})^2}{n-1}\) | Uses all data | Squared units |
| Std Dev | \(\sqrt{s^2}\) | Original units | Sensitive to outliers |
Question 1 of 5
For the dataset \(\{2, 5, 7, 10, 15\}\), what is the range?
Question 2 of 5
When computing the sample variance, we divide by:
Question 3 of 5
A sample has a variance of \(s^2 = 16\). What is the standard deviation?
Question 4 of 5
Which measure of spread is most resistant to outliers?
Question 5 of 5
For a bell-shaped distribution, approximately what percentage of data falls within one standard deviation of the mean?