Measuring Variability
Compute and interpret range, IQR, variance and standard deviation, compare spread with the coefficient of variation, and see why planning on averages fails.
Welcome back!
Step 1 of 12Learn
Same average, different experience
Two delivery companies both advertise an average delivery time of 3 days. With FastPath, almost every parcel arrives in 2.8 to 3.2 days. With QuickShip, parcels arrive anywhere from 1 to 7 days. If you are sending a birthday present that must arrive by Friday, the averages tell you nothing useful. The variability tells you everything.
Variability, also called spread or dispersion, describes how much values differ from each other and from the center. Two datasets with the same mean can behave completely differently, and many business decisions depend more on spread than on the average:
- Inventory: how much safety stock to hold depends on how much demand swings.
- Staffing: a call center sized for the average hour will be overwhelmed in busy hours.
- Risk: two investments with the same average return differ in how badly they can fall.
- Quality: a machine that fills bottles with exactly 500 ml on average is useless if half the bottles hold 480 ml.
Variability also matters for statistics itself. The more values vary, the harder it is to detect a real difference between groups, and the larger the sample you need. Almost every formula in the rest of this course has a measure of spread in it.
Step 2 of 12Practice · Chart
Same 3-day average, very different spread
With QuickShip, tap the delivery time that is most common.
Tap the bar that answers the question, then press Check.
Step 3 of 12Learn
Range, IQR, variance and standard deviation
The range is the maximum minus the minimum. It's simple but depends entirely on the two most extreme values, so one outlier can double it.
The interquartile range (IQR) is Q3 − Q1, the width of the middle 50% of the data. It ignores the extremes, which makes it a good partner for the median in skewed data.
The variance measures the average squared distance from the mean. For a sample:
s² = Σ(x − x̄)² / (n − 1)
Squaring makes all distances positive and gives extra weight to large deviations. Dividing by n − 1 rather than n corrects for the fact that a sample's own mean sits closer to its values than the true population mean does; without the correction, sample variance would be too small on average.
The standard deviation (SD) is the square root of the variance: s = √s². Taking the root brings the units back to the original scale, so an SD of delivery times is measured in days, not days squared.
A worked example: weekly sales of 4, 8, 6, 5 and 7 units. The mean is 6. Deviations are −2, 2, 0, −1 and 1; squared, 4, 4, 0, 1, 1, summing to 10. Divide by n − 1 = 4 to get a variance of 2.5, and the SD is √2.5 ≈ 1.58 units.
Step 4 of 12Practice · Work it out
Daily support tickets over eight days were 2, 4, 4, 4, 5, 5, 7 and 9. What is the sample standard deviation? Round to two decimal places.
Step 5 of 12Learn
Comparing spread on different scales
An SD of 50 means different things for different data. For daily sales averaging 200 units, it is a lot; for annual revenue averaging $10 million, it is nothing. To compare variability across measures with different scales, analysts use the coefficient of variation (CV):
CV = SD / mean
usually written as a percentage. Store A sells a mean of 200 units a day with SD 50, a CV of 25%. Store B sells 40 units with SD 16, a CV of 40%. In absolute terms Store A swings more, but relative to its size Store B is far less predictable, and it needs proportionally more safety stock.
The CV only makes sense for data measured on a scale with a true zero and positive values, such as sales, weights or durations. It is meaningless for temperatures in Celsius, where zero is arbitrary, and it explodes when the mean is close to zero.
For a rough sense of an SD in bell-shaped data, use the 68–95–99.7 rule: about 68% of values fall within one SD of the mean, about 95% within two and about 99.7% within three. For skewed data the rule does not hold, which is another reason to look at the distribution, not just the summary numbers.
Step 6 of 12Practice · Work it out
Store B sells a mean of 40 units a day with a standard deviation of 16 units. What is its coefficient of variation, as a percentage?
Step 7 of 12Compare
Measures of spread
| Aspect | Range | IQR | Standard deviation | Coefficient of variation |
|---|---|---|---|---|
| What it measures | Distance between the two extremes | Width of the middle 50% of values | Typical distance from the mean | SD relative to the mean |
| Sensitive to outliers? | Extremely | No | Yes, because deviations are squared | Yes, inherits from SD and mean |
| Best for | Quick sanity checks | Skewed data, paired with the median | Symmetric data and statistical formulas | Comparing variability across different scales |
| Units | Same as data | Same as data | Same as data | None (a ratio or %) |
Step 8 of 12Learn
The flaw of averages
Plans built on averages fail in a predictable way. A bakery sells an average of 100 croissants a day, so it bakes 100. On days with demand above 100, it runs out and loses sales; on days below 100, it throws croissants away. If demand is roughly symmetric, it runs out on about half of all days. The plan was "correct on average" and wrong almost every day.
This is sometimes called the flaw of averages: a plan based on average conditions does not deliver average results when conditions vary. A highway designed for average traffic jams every rush hour. A project plan that adds up the average duration of each task will usually finish late, because delays in some tasks hold up others while early finishes rarely help.
The fix is to plan for the spread, not just the center. Inventory planners hold safety stock based on the SD of demand: holding about 1.65 SDs above average demand covers roughly 95% of days if demand is close to normal. Call centers staff for the busy-hour percentile, not the daily mean. Finance teams look at ranges and worst cases, not just expected values.
When you present a forecast, give a range along with the point estimate. "We expect 100 croissants a day, and on 9 days out of 10 demand falls between 80 and 120" supports a far better decision than "100".
Step 9 of 12Practice · Chart
Baking 100 every day when demand varies
Tap the day with the biggest shortfall.
Tap the point that answers the question, then press Check.
| Item | Croissants demanded | Croissants baked |
|---|---|---|
| Mon | 82 | 100 |
| Tue | 95 | 100 |
| Wed | 104 | 100 |
| Thu | 91 | 100 |
| Fri | 118 | 100 |
| Sat | 131 | 100 |
| Sun | 79 | 100 |
Step 10 of 12Note
Step 11 of 12Practice · Choose one
House prices in a city are strongly right-skewed with several very expensive properties. Which measure of spread best describes the variation in typical homes?
Step 12 of 12Practice · Select all that apply
Which statements about the standard deviation are true? Select all that apply.
Select all that apply.
Lesson complete!