Understand range, variance, and standard deviation
A laptop displaying analytics charts and data visualizations for measuring variability in datasets
Credit: Photo by Carlos Muza on Unsplash
Measures of spread tell us how much variability or dispersion exists in a dataset.
The simplest measure of spread:
Example: Dataset: 3, 5, 8, 12, 15 → Range = 15 - 3 = 12
Limitation: Only uses two values; very sensitive to outliers.
Variance measures the average squared distance from the mean.
We divide by (called Bessel's correction) in the sample variance to get an unbiased estimate.
Dataset: 4, 7, 3, 9, 2
3 quick checks in this lesson
Check 1 of 3
Find the sample variance of the data 2, 4, 6.
The standard deviation is the square root of the variance:
From our example:
Check 2 of 3
Dataset A is 48, 50, 52 and dataset B is 40, 50, 60. How do their sample standard deviations compare?
Where is the 25th percentile and is the 75th percentile.
The IQR measures the spread of the middle 50% of data. It is robust to outliers.
Used to compare variability between datasets with different scales:
Example: If heights have inches and inches:
Check 3 of 3
Lab mice weigh a mean of 25 g with SD 2.5 g. Elephants weigh a mean of 4000 kg with SD 200 kg. Which group's weights vary more RELATIVE to their mean?
| Measure | Best For | Limitations |
|---|---|---|
| Range | Quick overview | Very sensitive to outliers |
| Variance / SD | Symmetric data, inferential statistics | Sensitive to outliers |
| IQR | Skewed data, outliers present | Ignores tails |
| CV | Comparing groups with different units | Meaningless if mean ≈ 0 |