Sub topic 3
Volatility: how much returns vary
This chapter assumes you can compute a simple return from two prices, which the previous chapter covered, and that you know what a mean is. You do not need statistics beyond that. We build the standard deviation step by step.
What volatility is
Volatility is the standard deviation of an investment's returns over some period. It measures how widely returns spread around their average. A fund that returns about 1% every month has low volatility. A fund that alternates between +8% and -6% has high volatility, even if both average the same return.
Volatility is a statement about variation, not about direction. A +8% month adds to volatility just as much as a -8% month does. This is the main reason it is an incomplete measure of risk. Later chapters show what it misses.
Computing it by hand
Take five periodic returns: +2%, -1%, +3%, -2%, +1%. Follow these steps.
- Compute the mean. The sum is 3%, so the mean is 0.6%.
- Subtract the mean from each return to get deviations: +1.4, -1.6, +2.4, -2.6, +0.4 (in percentage points). They sum to zero.
- Square each deviation: 1.96, 2.56, 5.76, 6.76, 0.16. Squaring removes the signs and penalizes large misses more than small ones.
- Add the squares: 17.2.
- Divide by n - 1 = 4 to get the variance, 4.3.
- Take the square root to get the standard deviation, about 2.07%.
The square root in the last step returns the result to the same units as the returns. Variance is in "percent squared", which has no intuitive meaning. The standard deviation is in percent, so you can compare it directly with returns.
Sample versus population
Dividing by n - 1 gives the sample standard deviation. Dividing by n gives the population standard deviation. When your data is a sample of a longer process, which is almost always true for market returns, use n - 1. The n - 1 version corrects for the fact that deviations measured from the sample's own mean come out slightly too small.
With long series the two numbers are nearly identical. With five data points they are visibly different, as the code shows.
import statistics
calm = [0.02, -0.01, 0.03, -0.02, 0.01]
wild = [0.06, -0.05, 0.08, -0.07, 0.01]
for name, returns in (("calm", calm), ("wild", wild)):
mean = statistics.mean(returns)
sample_sd = statistics.stdev(returns) # divides by n - 1
pop_sd = statistics.pstdev(returns) # divides by n
print(f"{name}: mean {mean:.2%}, sample sd {sample_sd:.2%}, population sd {pop_sd:.2%}")The output is:
calm: mean 0.60%, sample sd 2.07%, population sd 1.85%
wild: mean 0.60%, sample sd 6.58%, population sd 5.89%Both series have the same mean return of 0.6% per period. The second one is about three times as volatile. Average return alone cannot tell them apart.
Reading the number
If returns were roughly bell-shaped (normally distributed), a standard deviation would give a usable rule of thumb:
| Range | Share of periods inside it |
|---|---|
| Mean ± 1 standard deviation | about 68% |
| Mean ± 2 standard deviations | about 95% |
| Mean ± 3 standard deviations | about 99.7% |
For the calm series, the mean is 0.6% and the standard deviation is 2.07%. Roughly two periods in three would then land between -1.47% and +2.67%. About one period in twenty would fall outside ±2 standard deviations, which is -3.54% to +4.74%.
Real returns do not follow this rule well. Large moves occur far more often than the bell curve predicts. The tail risk chapter covers this. Treat the table as a sketch of typical behavior, not a guarantee about the worst case.
What volatility depends on
Three choices change the number you get, so always state them when you quote a volatility.
- Return frequency. Daily, weekly, and monthly returns give different standard deviations because variation accumulates over time. You cannot compare a daily figure with a monthly one. The next chapter shows how to scale them to a common yearly basis.
- Window length. A one-year window and a ten-year window cover different market conditions. A calm year gives a low number that says little about the next crisis.
- Return type. Use returns, not prices. The standard deviation of prices mostly reflects the trend and the price level, not how risky the holding is.
Rough long-run annual volatilities show how asset classes differ. Treat these as ballpark figures that shift with the period measured.
| Asset class | Typical annual volatility |
|---|---|
| Cash and short-term government bills | near 0–1% |
| High-quality bonds | about 4–7% |
| Broad stock index | about 15–20% |
| Single stock | often 25–50% or more |
A single stock is usually much more volatile than the index that contains it. Part of this gap is the effect of diversification, which a later chapter explains.
Common errors
Computing volatility on prices. A price series that rises steadily has a large standard deviation even if every daily return is nearly identical. Convert to returns first.
Mixing frequencies. Comparing a fund's monthly volatility with a stock's daily volatility makes the stock look calmer than it is.
Trusting a short sample. The estimate is noisy. With 12 monthly returns, the standard deviation can easily be off by 20% or more in either direction. Use as much history as is relevant.
Assuming volatility stays constant. Volatility clusters. Calm periods tend to follow calm periods, and turbulent periods follow turbulent ones. A low reading today does not promise a low reading next quarter.
Treating upside as risk. Standard deviation counts a surprise gain as variation. An investor who only fears losses may care more about downside measures, such as the drawdowns in the next chapters.
Why volatility still matters
Volatility has limits, but it is useful for three reasons. It is easy to compute from any price history. It allows consistent comparison across assets measured the same way. It also feeds other tools, including risk-adjusted return measures such as the Sharpe ratio.
Volatility also drags on compounded growth. For the same average return, a more volatile path ends lower. Suppose an asset gains 10% and then loses 10%. It does not return to its start: 1.10 × 0.90 = 0.99, a 1% net loss. The more the returns swing, the larger this gap between the average return and the compounded return. That gap links this chapter to the loss and recovery chapter.
Exercise
A fund has these five monthly returns: +4%, -2%, +1%, -3%, +5%. Compute the mean and the sample standard deviation by hand. Then say what range about 68% of months would fall in if returns were bell-shaped.
Show answer
The sum is 5%, so the mean is 1%. The deviations are +3, -3, 0, -4, +4. The squares are 9, 9, 0, 16, 16, which total 50. Divide by n - 1 = 4 to get a variance of 12.5. The square root is about 3.54%. About 68% of months would fall within 1% ± 3.54%, which is -2.54% to +4.54%. Note that with only five observations this range is a rough guide.
Exercise
An analyst computes the standard deviation of a stock's daily closing prices and reports it as the stock's volatility. Name the mistake and the fix.
Show answer
The analyst used prices instead of returns. Prices include the trend and the price level, so the standard deviation of prices does not measure how much returns vary. The fix is to convert the prices into periodic returns, price[t] / price[t - 1] - 1, and take the sample standard deviation of those.