Two datasets can share the same mean but look completely different — one tightly clustered, one wildly spread. Dispersion measures that spread, and it's as important as the average: it tells you how reliable the "typical" value is.
The measures
| Measure | Meaning |
|---|---|
| Range | Max − min (simple, outlier-sensitive) |
| Variance | Average squared distance from the mean |
| Standard deviation | Square root of variance — in the data's units |
| IQR | Interquartile range (Q3 − Q1) — robust spread |
import numpy as npa = [10, 10, 10, 10] # np.std → 0 (no spread)b = [2, 8, 12, 18] # np.std → 5.7 (spread out)# same-ish mean, very different consistency
Standard deviation
Key takeaways
- 01Dispersion measures how spread out data is — as important as the average.
- 02Range = max − min; variance = mean squared distance from the mean.
- 03Standard deviation (√variance) is in the data's units and most interpretable.
- 04The IQR (Q3 − Q1) is a robust spread measure for skewed data.
