Sub topic 5
Measuring success and failure
This chapter assumes you know how a fixed real withdrawal works, what a real return is, and why the order of returns matters. It covers how to turn a pile of simulated retirements into one number, the success rate, and what that number leaves out.
Why you need a definition of failure
A withdrawal plan is a rule, such as "spend 4 percent of the starting balance, then adjust for inflation." To test the rule, you run it against a sequence of returns and check whether the money lasts. That check needs a precise test.
The standard test is simple. A retirement path fails if the portfolio runs out before the end of the planned horizon. Otherwise it succeeds. The success rate is the share of tested paths that succeed.
A success rate of 95 percent means that 95 of 100 tested paths lasted the full horizon. It does not mean you have a 95 percent chance of being fine in real life. The tested paths are only as good as the data or assumptions behind them.
The pass/fail test in code
This function applies the test to one list of yearly real returns. The first-year withdrawal is a percentage of the starting balance, and later withdrawals keep the same purchasing power. Because the returns are real, the withdrawal stays constant in real terms.
def survives(real_returns, withdrawal_rate=0.04, start=1_000_000):
balance = start
withdrawal = start * withdrawal_rate # constant in real terms
for r in real_returns:
balance -= withdrawal
if balance <= 0:
return False
balance *= 1 + r
return TrueEach year, the function withdraws first, then applies that year's return to what remains. Three details matter:
- Withdrawal timing. Withdrawing at the start of the year is slightly more conservative than withdrawing at the end, because the money you spend does not earn that year's return. Studies differ on this, so state your convention.
- The
<= 0boundary. A balance of exactly zero counts as failure. With a 0 percent real return and a 4 percent rate, the money lasts exactly 25 years. - Early exit. Once the balance reaches zero, the path stops. Without that exit, a negative balance could grow again under a positive return, which makes no sense.
You can check the boundary directly:
print(survives([0.0] * 24)) # True: balance is 40,000 after year 24
print(survives([0.0] * 25)) # False: year 25 withdraws the last 40,000From one path to a success rate
One path gives a yes or no. A success rate needs many paths. The process looks like this:
The paths can come from two sources. Historical backtests use actual past sequences, which later chapters cover in detail. Monte Carlo simulation generates random sequences from assumed averages and volatility. The scoring step is the same for both.
For historical data, a common method is rolling windows. You take a long list of yearly real returns and slide a fixed-length window along it. A 30-year retirement starting in each possible year is one window.
def rolling_windows(series, years):
return [series[i:i + years] for i in range(len(series) - years + 1)]
def historical_success_rate(series, years=30, withdrawal_rate=0.04):
windows = rolling_windows(series, years)
results = [survives(w, withdrawal_rate) for w in windows]
return sum(results) / len(results)A list of 100 yearly returns gives 71 windows of 30 years. The function returns a fraction between 0 and 1. Pass in your own series of real returns, because this chapter does not supply historical data.
Finding when and how a path fails
A bare pass/fail result hides useful detail. A path that dies in year 30 of 30 is very different from one that dies in year 12. This helper reports the year of depletion:
def depletion_year(real_returns, withdrawal_rate=0.04, start=1_000_000):
balance = start
withdrawal = start * withdrawal_rate
for year, r in enumerate(real_returns, start=1):
balance -= withdrawal
if balance <= 0:
return year
balance *= 1 + r
return None # never depleted
print(depletion_year([0.0] * 30)) # 25With 30 years of zero real return, the portfolio is depleted in year 25. A year-25 failure in a 30-year plan leaves five years of spending uncovered, which is a different problem from running out two months before the horizon ends.
Choosing a failure definition
"Runs out of money" is the usual definition, but it is not the only one. Your choice changes the result.
| Definition | Counts as failure when | What it emphasizes |
|---|---|---|
| Depletion | Balance reaches zero before the horizon | Worst-case outcome only |
| Preserve principal | Ending balance is below the starting real balance | Leaving an inheritance |
| Spending shortfall | You must cut spending below a floor | Lifestyle, not just solvency |
| Early depletion | Money runs out before a chosen age, such as 90 | A shorter or longer horizon than the study used |
The depletion definition gives the highest success rates. The preserve-principal definition gives much lower ones, because many paths that last 30 years still end with less real wealth than they started with. When you read a success rate, find out which definition produced it.
What a success rate does not tell you
It ignores how bad failures are
A 90 percent success rate does not say what happens in the other 10 percent. Failures could run out one year early or twenty years early. Report the depletion year alongside the rate, and look at the worst paths directly.
It also ignores how good successes are
Most successful historical paths end with large surpluses. The balance often grows well beyond the starting amount. A high success rate can therefore mean you are underspending in most scenarios. This is the main reason flexible strategies, covered later, exist.
Overlapping windows are not independent
Consecutive windows share most of their years. The window starting in 1950 and the one starting in 1951 differ by only two years of data. A 100-year history yields 71 rolling 30-year windows, but fewer than four non-overlapping ones. A statement like "worked in 98 percent of cases" can therefore rest on a handful of truly distinct market experiences. Treat these rates as estimates with real uncertainty, not as exact probabilities.
Small changes in the rate can move the result sharply
Success rates are not linear in the withdrawal rate. Moving from 4 percent to 4.5 percent might change a rate only slightly in some datasets and a lot in others. Test neighboring rates instead of a single one:
for rate in (0.035, 0.04, 0.045, 0.05):
print(rate, depletion_year([0.0] * 30, rate))With zero real returns, this prints depletion in year 29 for 3.5 percent, year 25 for 4 percent, year 23 for 4.5 percent, and year 20 for 5 percent. That is a simple lower bound, since real returns above zero extend those times.
Common errors
- Mixing nominal and real returns. If the returns are nominal, a constant withdrawal does not keep its purchasing power. Convert to real returns first.
- Reading the rate as a personal probability. The rate describes the tested paths, not your odds.
- Comparing rates with different definitions. A depletion-based 95 percent and a preserve-principal 95 percent describe different outcomes.
- Choosing the horizon to fit the result. Pick the horizon first, from your age and health, then test.
- Forgetting the boundary. If your code uses
< 0instead of<= 0, a path with exactly zero left counts as a success.
Exercise
A 25-year test of a 4 percent withdrawal on a $1,000,000 portfolio uses a path with a real return of 0 percent every year. Does the path pass or fail under the depletion definition? Then say what the 95 percent success rate from many such paths would and would not tell you.
Show answer
It fails. The withdrawal is $40,000 a year, so after 25 withdrawals the balance is exactly zero, and the rule counts a zero balance as failure. (Code that checks balance <= 0 after each withdrawal agrees.) A 95 percent success rate would tell you that 95 percent of the tested paths lasted the full horizon under the stated definition. It would not tell you how badly the other 5 percent failed, how much surplus the successes left, or your personal odds. Overlapping historical windows also mean the paths are far fewer than they look.