Monte Carlo simulation
How Ardentum simulates the range of future portfolio values, and what the simulation assumes.
Portfolio dynamics
The portfolio is rebalanced to its target weights every data period (constant mix), so its one-period return is and wealth evolves as . Simulation runs at the data frequency (for daily data, 252 steps per year); values are recorded monthly for charts. Maximum drawdown is tracked on every step.
Methods
Parametric (lognormal). Per-period gross returns are i.i.d. lognormal with the same mean and variance as the portfolio's estimated arithmetic moments, taken from the same annualised estimates the optimiser uses: , . Moment matching gives
Then and the median is exactly; both are verified statistically in tests. The model has thin tails and no volatility clustering.
Historical bootstrap. Portfolio returns from the history are resampled independently with replacement. This keeps the empirical distribution (fat tails, skew) and the cross-asset dependence on each date, but destroys serial dependence. For i.i.d. resampling , which is tested.
Stationary block bootstrap (Politis & Romano, 1994). Blocks of consecutive historical returns with geometrically distributed lengths (mean , default one month) are concatenated, wrapping around the sample. This additionally preserves short-range dependence such as volatility clustering (tested on an autocorrelated series).
Contributions and withdrawals
Optionally, a fixed annual amount is paid in (contributions, ) or taken out (withdrawals, ) in equal instalments per year (monthly, quarterly or annually) at the end of each interval, rising by per year: the flow at time (years) is . Wealth evolves as
With a constant annual growth factor and annual flows , this is the annuity formula , which the test-suite checks exactly with zero-volatility returns (together with the expected-wealth identity for i.i.d. returns).
A path whose wealth cannot cover a withdrawal is depleted: its wealth is set to zero and stays there. The result reports the probability of running out before the horizon and the 10th/50th/90th percentiles of the time of depletion among depleted paths.
With cash flows, "probability of loss" means ending below the initial value plus net contributions. Growth rates, drawdowns and terminal VaR/CVaR describe the portfolio's time-weighted return, which cash flows do not change.
Reproducibility
All randomness comes from one PCG64 generator seeded with an explicit seed. The seed is shown with every result; the same inputs and seed produce bit-identical outputs. Leaving the seed empty draws a random one, which is still reported so the run can be reproduced.
Outputs
Percentile paths (5th, 10th, 25th, 50th, 75th, 90th, 95th), mean path, sample paths, the distribution of final values, probability of loss and of reaching a target, VaR and CVaR of the terminal return, and percentiles of annualised growth and of maximum drawdown.
Limits
To keep requests interactive, paths × simulated periods may not exceed 100 million (for example 10,000 daily paths over 39 years); the API returns a clear error beyond that.
Limitations
- Parameters are treated as known; estimation error in and is not simulated, so the spread of outcomes is understated.
- The inputs come from the same historical window the results describe: a strong or weak window carries into every path.
- Values are nominal, in the currency of the prices: nothing is adjusted for inflation.
- History-based methods cannot produce scenarios worse than the worst periods in the sample.
- Cash flows are fixed in advance (no dynamic spending rules); no fees, taxes or transaction costs.
- A simulation shows the consequences of its assumptions. It makes no forecast.