Retirement
Run a Monte Carlo retirement projection
Simulates many market paths to estimate the probability that a plan's money lasts to the planning horizon, plus the distribution of ending balances. Deterministic: the same inputs and seed always return the same result and result_id.
post/v1/retirement/monte-carlo
Request
- Base URL: https://api.numeratica.com
- URL: https://api.numeratica.com/v1/retirement/monte-carlo
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Request body
Example request
{
"current_age": 40,
"retirement_age": 65,
"end_age": 95,
"current_balance": 250000,
"annual_contribution": 20000,
"annual_spending": 70000,
"expected_return": 0.06,
"return_volatility": 0.12,
"inflation": 0.025,
"num_simulations": 10000,
"annual_fee_rate": 0.01,
"seed": 12345,
"glide_path": [
{
"age": 40,
"expected_return": 0.09,
"return_volatility": 0.18
}
],
"assets": [
{
"class": "us-equity",
"weight": 0.6,
"expected_return": 0.08,
"return_volatility": 0.18
}
],
"correlations": [
[
1,
0.2
],
[
0.2,
1
]
],
"guaranteed_income": [
{
"annual_amount": 40000,
"start_age": 67
}
]
}Response
Projection result
Example response
{
"result_id": "mc_1a2b3c4d5e6f7a8b",
"engine_version": "montecarlo-1.0.0",
"seed": 12345,
"inputs": {
"current_age": 40,
"retirement_age": 65,
"end_age": 95,
"current_balance": 250000,
"annual_contribution": 20000,
"annual_spending": 70000,
"expected_return": 0.06,
"return_volatility": 0.12,
"inflation": 0.025,
"num_simulations": 10000,
"annual_fee_rate": 0.01,
"seed": 12345,
"glide_path": [
{
"age": 40,
"expected_return": 0.09,
"return_volatility": 0.18
}
],
"assets": [
{
"class": "us-equity",
"weight": 0.6,
"expected_return": 0.08,
"return_volatility": 0.18
}
],
"correlations": [
[
1,
0.2
],
[
0.2,
1
]
],
"guaranteed_income": [
{
"annual_amount": 40000,
"start_age": 67
}
]
},
"result": {
"success_probability": 0.89,
"median_ending_balance": 13100000,
"num_simulations": 10000
}
}Changes
No recorded changes to this operation across all 1 revision of this API.