Retirement drawdown simulation
retirement_drawdownMonte Carlo retirement drawdown simulation: given a portfolio, annual spending, horizon and equity allocation, returns the probability the money lasts, end-balance percentiles and the assumptions used (real returns, annual steps). The output is an educational illustration with its assumptions and a disclaimer attached; it is not personal financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | optional seed for reproducible output | |
| years | Yes | horizon in years, 1-80 | |
| equityPct | Yes | equity share of portfolio, 0-1 | |
| portfolio | Yes | starting balance (> 0) | |
| iterations | No | optional, 100-20000, default 5000 | |
| annualSpend | Yes | withdrawal per year (>= 0) |