Sub topic 10
Testing a Rate with Monte Carlo Simulation
This chapter assumes you understand stocks, bonds, inflation-adjusted returns, and basic percentages. You should also know that a sustainable withdrawal rate is a starting withdrawal divided by the portfolio value. Monte Carlo simulation adds another way to test that rate.
What Monte Carlo simulation does
A Monte Carlo simulation creates many possible retirement paths. For each path, it generates a sequence of annual returns, applies withdrawals, and records whether the portfolio survives the chosen period.
The simulation then reports a success rate:
\[ \text{success rate} = \frac{\text{paths that do not run out of money}}{\text{total paths}} \]
For example, if 9,400 of 10,000 paths survive, the estimated success rate is 94%.
A simulation does not predict which path will occur. It shows how often a plan works under a selected model of possible returns.
A simple simulation
The example below uses real returns, so the withdrawal stays constant in purchasing power. The mean and standard deviation are illustrative assumptions. Mean is the average annual return used by the model. Standard deviation measures how widely returns vary around that average.
import random
def survives(real_returns, withdrawal_rate=0.04, start=1_000_000):
balance = start
withdrawal = start * withdrawal_rate
for rate in real_returns:
balance -= withdrawal
if balance <= 0:
return False
balance *= 1 + rate
return True
def success_rate(
withdrawal_rate,
years=30,
mean=0.05,
stdev=0.12,
trials=10_000,
seed=1,
):
rng = random.Random(seed)
successes = 0
for _ in range(trials):
returns = [rng.gauss(mean, stdev) for _ in range(years)]
if survives(returns, withdrawal_rate):
successes += 1
return successes / trials
for rate in (0.03, 0.04, 0.05):
result = success_rate(rate)
print(f"{rate:.0%} withdrawal rate: {result:.1%} success")The gauss function draws returns from a normal distribution. This distribution is convenient for teaching, but real returns do not follow it perfectly. They can have unusually large losses, changing volatility, and relationships between stocks and bonds.
Reading the result
A higher withdrawal rate normally produces a lower success rate because each path has less room for losses. A longer retirement also usually lowers success because the portfolio must fund more withdrawals.
| Result | What it means |
|---|---|
| 98% success | The plan survived most modeled paths, but failures remain possible |
| 90% success | The plan failed in about one path out of ten under this model |
| 70% success | The assumptions or withdrawal rate need serious review |
A “failure” usually means the balance reached zero before the end of the modeled period. It does not necessarily mean the retiree would have had no income, because Social Security, a pension, reduced spending, or part-time work might change the outcome.
Improving the test
Run alternative scenarios instead of relying on one percentage. Change the withdrawal rate, retirement length, stock-bond mix, fees, and spending pattern. Include poor early returns to test sequence risk.
Compare the model with historical backtesting. Historical tests use actual sequences of past returns. Monte Carlo tests many invented sequences. Each method reveals different weaknesses, and neither can represent every future market.
Exercise
A 30-year simulation reports a 92% success rate. What does that mean, and what does it not mean?
Show answer
About 92% of the modeled paths finished without the portfolio reaching zero. It does not mean the retiree has a 92% personal guarantee of success, because the model's assumptions may differ from future returns, inflation, fees, taxes, and spending.