Sub topic 2
Risk and return: volatility, drawdown and time horizon
This chapter defines the three measures of risk used for the rest of the tutorial: volatility, drawdown and time horizon. It assumes you know what stocks, bonds and compound growth are, and you can read a short Python snippet. It builds on the previous chapter's definition of an ETF. The next chapter uses these ideas to explain how diversification lowers risk.
Return is the reward, risk is the price
Return is the percentage change in an investment's value over a period, including dividends or interest. Risk is the chance that the return differs from what you expected, especially on the downside. The two are linked. Investors accept a possible loss only if the expected reward is higher than the reward on a safe alternative, such as a short-term government bill.
Two points follow.
- Higher expected return is not guaranteed. It is the reward investors have historically received for bearing risk, and in any given period it can be negative.
- Risk has several definitions. Volatility and drawdown measure the path an investment takes. Time horizon describes you: how long before you need the money. A sound plan uses all three.
Volatility: how widely returns scatter
Volatility is the standard deviation of an investment's returns. It measures how far returns typically fall from their average. A fund with 4% annual volatility moves in a narrow band. A fund with 20% volatility swings widely.
Volatility is usually quoted per year. If you measure returns monthly, scale the monthly figure by the square root of 12. For daily data, use the square root of about 252 trading days. This scaling assumes returns in each period are independent of the others.
If returns are roughly bell-shaped, about two-thirds of annual outcomes land within one standard deviation of the average, and about 95% within two. The numbers below are illustrative, not forecasts.
| Asset mix (illustrative) | Assumed average return | Assumed volatility | Rough 2-in-3 range for one year |
|---|---|---|---|
| Short-term bonds | 3% | 2% | +1% to +5% |
| Broad bond fund | 4% | 6% | -2% to +10% |
| Broad stock fund | 7% | 16% | -9% to +23% |
Volatility has real limits.
- Fat tails. Real market returns produce extreme months more often than a bell curve predicts. A "two-standard-deviation" bad year can happen more often than 1 in 20.
- It treats gains and losses alike. A fund that jumps up unexpectedly looks as "risky" as one that crashes.
- It changes over time. Volatility clusters. Calm periods and turbulent periods each tend to last for a while, so a past figure is a rough guide, not a constant.
Drawdown: the loss you actually live through
A drawdown is the decline from a previous peak to a later low, before a new peak is reached. The maximum drawdown is the worst such decline in a period. Investors often find it easier to relate to than volatility, because it matches the experience of opening an account statement and seeing a smaller number.
Some reference points from US stocks: the broad market fell more than 50% from late 2007 to early 2009, and about 34% in a few weeks in early 2020. The 2020 fall recovered within months. The 2007–2009 fall took years.
Why recovery is harder than the loss
Gains and losses are asymmetric. After a loss, the gain needed to get back to even is larger than the loss.
| Loss from peak | Gain needed to recover |
|---|---|
| 10% | 11.1% |
| 25% | 33.3% |
| 50% | 100% |
| 70% | 233% |
The formula is 1 / (1 - loss) - 1. This is why limiting large losses matters more than the gentle-looking volatility figure suggests.
Measuring both in code
The snippet below computes annualized volatility from monthly returns and the maximum drawdown from a price series. It uses only the standard library.
import statistics
prices = [100, 110, 95, 105, 120, 90, 100] # month-end values
returns = [b / a - 1 for a, b in zip(prices, prices[1:])]
def annualized_volatility(periodic_returns, periods_per_year):
"""Sample standard deviation scaled to a one-year figure."""
return statistics.stdev(periodic_returns) * periods_per_year ** 0.5
def max_drawdown(values):
"""Largest fall from a running peak, as a negative fraction."""
peak = values[0]
worst = 0.0
for value in values:
peak = max(peak, value)
worst = min(worst, value / peak - 1)
return worst
print(round(annualized_volatility(returns, 12), 3))
print(round(max_drawdown(prices), 3))The second line prints -0.25. The series peaks at 120 and falls to 90, and 90 / 120 - 1 = -0.25. The series then recovers only to 100, so it is still in a drawdown at the end. The tiny sample here is for illustration. Real estimates need years of data.
Time horizon: the same asset, different risk
Time horizon is the time between investing the money and needing to spend it. It changes how risky an asset is for you, even though the asset itself does not change.
Over one year, a stock fund can easily lose 20% or more. Over 20 years, broad stock markets have historically produced positive total returns in most rolling periods, because short-term swings partly average out. That is a historical pattern, not a guarantee. Some markets have gone a decade or more without a gain, and Japan's main index took over 30 years to regain its 1989 peak.
Time horizon matters for a second reason: forced selling. A long horizon lets you wait out a drawdown. A short horizon may force you to sell at the low to pay a bill.
| Goal | Typical horizon | Implication |
|---|---|---|
| Emergency fund | Any time, unpredictable | Keep in cash or very short-term bonds |
| Home deposit in 3 years | Short | Little in stocks, because a drawdown may not recover in time |
| Retirement in 30 years | Long | Stocks can carry most of the portfolio |
| Spending during retirement | Long, but withdrawals begin | Consider sequence risk, below |
Sequence-of-returns risk
When you add money regularly, a market fall early on is not harmful, because you buy cheaply. When you withdraw money, the order of returns matters. A large fall just as withdrawals begin forces you to sell more units at low prices, and those units cannot share in the recovery. Two portfolios with the same average return can end with very different balances because of the order of the good and bad years. This is a main reason retirees hold more bonds and cash than younger savers.
Risk capacity versus risk tolerance
Two ideas are often confused.
- Risk capacity is how much loss your finances can absorb. It depends on your income stability, savings, debts and horizon. It is mostly objective.
- Risk tolerance is how much loss you can sit through without panic-selling. It is psychological, and people tend to overestimate it until they live through a real decline.
Base the plan on the lower of the two. A 25-year-old with high capacity who would sell everything after a 30% fall should not hold a portfolio that can fall 50%. The cost of panic selling is locking in the loss and missing the recovery.
Common errors
- Equating low volatility with safety. A fund with low volatility can still suffer a permanent loss from inflation or credit problems, covered in the bond chapter.
- Quoting an average return without its scatter. A 7% average with 16% volatility means many individual years are negative.
- Mixing time scales. Comparing a monthly standard deviation with an annual one is a frequent mistake. Convert both to the same period first.
- Ignoring the starting point. Maximum drawdown depends on the period measured. A calm five-year sample can hide a severe event.
- Judging risk after a rally. Tolerance feels higher after gains. Decide your allocation when markets are calm, and write it down.
Exercise
A stock fund falls 40% from its peak. What percentage gain is needed to return to the previous peak? Then compute the maximum drawdown of the price series [50, 60, 45, 55, 70, 56, 63] by hand.
Show answer
Recovery needed is 1 / (1 - 0.40) - 1 = 1 / 0.60 - 1 = 0.667, so about 66.7%. For the series, the running peak reaches 60 and then falls to 45, a drawdown of 45 / 60 - 1 = -25%. The series then peaks at 70 and falls to 56, a drawdown of 56 / 70 - 1 = -20%. The maximum drawdown is -25%.
Exercise
Two investors each hold the same stock-heavy portfolio, which has a historical worst drawdown of about 50%. Investor A is 30 and adds money every month. Investor B is 66 and has just begun withdrawing from the portfolio. Explain why the same portfolio is riskier for B, and name the effect.
Show answer
B is exposed to sequence-of-returns risk. If a large fall occurs just after withdrawals begin, B must sell more units at low prices to raise the same cash, and those units are no longer invested when the market recovers. A has a long horizon and is buying during the decline, so the fall lowers the price of future purchases and can help long-run results. A also has more time to wait out a slow recovery.