You are reading the 2026 curriculum (exams up to November 2026). Sitting in February 2027 or later? Go to the 2027 Quantitative Methods guide.
Range, mean absolute deviation, variance and standard deviation
Range is the maximum minus the minimum. Mean absolute deviation is the average distance from the mean. Sample variance averages the squared deviations using n − 1, and the standard deviation is its square root, in the same units as the returns. Standard deviation is the exam's default measure of risk.
Before this: Mean, median, mode and what outliers do to them
On the exam
- Calculate, interpret, and evaluate measures of dispersion to address an investment problem
Calculate, interpret and evaluate the range, mean absolute deviation, sample variance and sample standard deviation. Expect a short data set where dividing by n instead of n − 1 is an answer option.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
What does dispersion measure?
The mean says where returns are centered. Dispersion says how far they stray from it, and for an investor that is the starting point for risk. The measures below are absolute dispersion : they are expressed in the units of the data, either percent or percent squared.
- Range Use it max − min, units: %
- Weakness uses only two values
-
- Mean absolute deviation Use it average of |X − mean|, units: %
- Weakness absolute values are awkward in later maths
-
- Variance Memorize Σ(X − mean)² ÷ (n − 1), units: %²
- Weakness squared units, hard to read
-
- Standard deviation Memorize √variance, units: %
- Weakness treats up and down moves alike
-
How do the range and the mean absolute deviation work?
The range is the largest value minus the smallest. It is quick, but it ignores every observation in between.
The mean absolute deviation (MAD) is the average distance of the observations from the mean, ignoring direction.
How do you calculate sample variance and standard deviation?
Square each deviation from the mean, add them up and divide by n − 1. That is the sample variance . Its square root is the sample standard deviation .
Why n − 1? The deviations are measured from a sample mean that was itself estimated from the same data. That uses up one of the degrees of freedom : once n − 1 deviations are known, the last is fixed. Dividing by n − 1 makes the sample variance an unbiased estimate of the population variance.
The squared deviations of 5 returns from their mean add up to 144 (in %²). The sample standard deviation is closest to:
√(144 ÷ 4) = √36 = 6.00%
Sample standard deviation, s6.00%
- 144÷(5−1)=the sample variance
- √xthe standard deviation
√x square root
- 144ENTER5ENTER1−÷the sample variance
- g√xthe standard deviation
ENTER enter (on the HP, puts the number on the stack) · g blue shift key · √x square root
Try this 0 of 3
- Switch the divisor to n and compare the standard deviation
- Keep the range at 16 but move the standard deviation 0.5 or more away from 6%
- Push the standard deviation to 10% or more while the range stays 20 or less
Drag the top of a bar, or focus it and use the arrow keys. The dashed orange line is the mean (5.00%); purple brackets are the deviations from it.
A square on each deviation: its area is the squared deviation
The dashed square has area Σ ÷ 4 = the variance, so its side is the standard deviation.
Divide the sum of squares by
Mean 5.00%. Big misses count more: the largest deviation (−9) contributes 56% of the sum of squares.
Show working
Mean = (8 − 4 + 12 + 3 + 6) ÷ 5 = 5.00%.
Range = 12 − (−4) = 16 percentage points.
Deviations X − X̄: +3, −9, +7, −2, +1. MAD = (3 + 9 + 7 + 2 + 1) ÷ 5 = 4.40%.
Squared deviations: 9 + 81 + 49 + 4 + 1 = 144.
Variance = 144 ÷ (5 − 1) = 36.00 (%²). Standard deviation = √36.00 = 6.00%.
MAD (4.40) is never above s (6.00): squaring gives the large deviations more weight.
- 2NDDATA2NDCLR WORKclear old data
- 8ENTER↓↓X01
- 4+|-ENTER↓↓X02
- 12ENTER↓↓X03
- 3ENTER↓↓X04
- 6ENTER↓↓X05
- 2NDSTAT2NDSETrepeat [2ND] [SET] until 1-V shows
- ↓n = 5
- ↓X̄ = 5.00
- ↓Sx = 6.00, the sample standard deviation (n − 1)
- ↓σx = 5.37, divides by n
- ↑x²back to Sx and square it: 36.00, the sample variance
- 2NDQUIT
2ND second function (the shifted label above a key) · DATA data worksheet · CLR WORK clear the worksheet · ENTER enter (on the HP, puts the number on the stack) · +|- change sign · STAT statistics worksheet · SET change the setting · x² square · QUIT leave the worksheet
- fCLEAR Σ
- 8Σ+display 1
- 4CHSΣ+display 2
- 12Σ+display 3
- 3Σ+display 4
- 6Σ+display 5
- gx̄5.00, the mean
- gs6.00, the sample standard deviation (n − 1)
- ENTER×36.00, the sample variance
f gold shift key · CLEAR Σ clear the statistics registers · Σ+ add a data point · CHS change sign · g blue shift key · x̄ mean · s standard deviation · ENTER enter (on the HP, puts the number on the stack)
The HP 12C gives only the sample s. For the n version multiply by √((n − 1) ÷ n).
Switch between n and n − 1 and watch the standard deviation change. The smaller the sample, the bigger the gap between them.
Exam tip On the BA II Plus, read Sx, not σx. On the HP 12C, [g] [s] is already the sample figure.
Which measure should you use?
| Measure | Uses all the data | Units | Weakness |
|---|---|---|---|
| Range | No (two values) | % | Driven by extremes |
| MAD | Yes | % | Absolute values are awkward in later maths |
| Variance | Yes | %² | Squared units, hard to read |
| Standard deviation | Yes | % | Treats up and down moves alike |
Squaring gives large deviations more weight, which is why the standard deviation is never smaller than the MAD. The standard deviation is the exam’s default measure of risk, and it feeds portfolio variance and the Sharpe ratio later on.
Go deeper Population versus sample formulas
If you have every member of the group (a “population”), the mean is known rather than estimated and you divide by n. Returns over a few years are nearly always a sample of a longer process, so the exam uses n − 1 unless it says it is working with the whole population. As n grows the two answers converge: with 100 observations the difference is only about 0.5%.
Go deeper Chebyshev's inequality
For any distribution, at least of the observations lie within k standard deviations of the mean (for k above 1). With k = 2 that is at least 75%, and with k = 3 at least 89%. It is a distribution-free bound: it holds for skewed and fat-tailed data alike, but it is loose for bell-shaped data, where about 95% lie within two standard deviations.
Memorize this
MemorizeSample dispersion formulas
| Measure | Formula | Units |
|---|---|---|
| Range | max − min | % |
| MAD | Σ|X − X̄| ÷ n | % |
| Variance | Σ(X − X̄)² ÷ (n − 1) | %² |
| Std. deviation | √variance | % |
Memory hook Only the variance and standard deviation divide by n − 1. MAD ≤ standard deviation always.
Know it cold Sample: divide by n − 1 (one degree of freedom is used up estimating the mean).
- Range Use it max − min, units: %
- Weakness uses only two values
-
- Mean absolute deviation Use it average of |X − mean|, units: %
- Weakness absolute values are awkward in later maths
-
- Variance Memorize Σ(X − mean)² ÷ (n − 1), units: %²
- Weakness squared units, hard to read
-
- Standard deviation Memorize √variance, units: %
- Weakness treats up and down moves alike
-
Quick example
Returns of 4%, −2%, 9% and 1%. Range = 9 − (−2) = 11 percentage points.
- 9−2+|-= 11
+|- change sign
- 9ENTER2CHS− 11
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Returns of 5%, −3%, 9% and 1% have mean 3. Distances 2, 6, 6, 2 add to 16, and 16 ÷ 4 = 4.0%.
- 2+6+6+2=÷4= 4
- 2ENTER6+6+2+4÷ 4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Squared deviations of 4 returns add to 80. 80 ÷ (4 − 1) = 26.67 (%²).
- 80÷(4−1)= 26.67
- 80ENTER4ENTER1−÷ 26.67
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 26.67 (%²). √26.67 = 5.16%.
- 26.67√x 5.16
√x square root
- 26.67g√x 5.16
g blue shift key · √x square root
How it is asked
-
Sample standard deviation of a few returns
Returns 5%, −3%, 9%, 1%. Sample standard deviation?
Mean 3, squares 4 + 36 + 36 + 4 = 80, 80 ÷ 3 = 26.67, √ = 5.16%. Traps: 4.47% (÷ n), 4.00% (MAD).
-
Variance or standard deviation?
The question asks for the standard deviation and an option shows the variance.
Take the square root. Variance is in %², so a bare variance is the trap.
-
Drawback of the range
Main drawback of the range as a measure of dispersion?
It uses only the two most extreme values.
Exam traps
- Dividing by n for a sample. Use n − 1 for the sample variance and standard deviation.
- Reporting the variance when the question asks for the standard deviation (the units are %²).
- Dropping the absolute value signs in MAD, so that deviations cancel to zero.
- Using the population formula (÷ n) because the calculator shows two standard deviations. Read Sx, not σx.
Checkpoint
4 exam-style questions. About 90 seconds each.
1Four monthly returns are 5%, −3%, 9% and 1%. The sample standard deviation is closest to:
2Compared with the standard deviation of the same data, the mean absolute deviation is most likely:
3The main drawback of the range as a measure of dispersion is that it:
4The squared deviations of seven monthly returns from their sample mean add up to 96 (%²). The sample standard deviation is closest to:
Key takeaways
- s² = Σ(X − X̄)² ÷ (n − 1) and s = √s².
- MAD averages absolute deviations and is never above s.
- The standard deviation is in the same units as the returns, so it is the one to quote.
- Range uses only two observations, so it says little about the rest.
Quick example
Returns of 4%, −2%, 9% and 1%. Range = 9 − (−2) = 11 percentage points.
- 9−2+|-= 11
+|- change sign
- 9ENTER2CHS− 11
ENTER enter (on the HP, puts the number on the stack) · CHS change sign
Quick example
Returns of 5%, −3%, 9% and 1% have mean 3. Distances 2, 6, 6, 2 add to 16, and 16 ÷ 4 = 4.0%.
- 2+6+6+2=÷4= 4
- 2ENTER6+6+2+4÷ 4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Squared deviations of 4 returns add to 80. 80 ÷ (4 − 1) = 26.67 (%²).
- 80÷(4−1)= 26.67
- 80ENTER4ENTER1−÷ 26.67
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 26.67 (%²). √26.67 = 5.16%.
- 26.67√x 5.16
√x square root
- 26.67g√x 5.16
g blue shift key · √x square root
Questions about this lesson?
Where this comes back
- Downside deviation and coefficient of variation Statistical Measures of Asset Returns
- Portfolio Mathematics Quantitative Methods
- Portfolio Risk and Return: Part I Portfolio Construction
Questions candidates ask
Why do we divide by n − 1 for sample variance?
The deviations are measured from the sample mean, which was itself estimated from the same data. That uses up one degree of freedom, and the deviations from the sample mean come out slightly too small. Dividing by n − 1 corrects this, making the sample variance an unbiased estimate of the population variance.
What is the difference between variance and standard deviation?
The standard deviation is the square root of the variance. Variance is in squared units (%²), which are hard to interpret. The standard deviation is in the same units as the returns, so a 6% standard deviation reads directly as a typical distance from the mean.
What is mean absolute deviation?
The average of the distances between each observation and the mean, ignoring sign: Σ|X − X̄| ÷ n. It is easy to read, but absolute values are awkward in later formulas, so the standard deviation is used instead. The MAD is never larger than the standard deviation.
Spotted an error? Tell us and we will fix it.