Skip to content

Methodology

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 rp,t=w⊤rtr_{p,t} = w^\top r_t and wealth evolves as Wt=Wt−1(1+rp,t)W_{t} = W_{t-1}(1 + r_{p,t}). 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: m=w⊤μ/Pm = w^\top\mu/P, v=w⊤Σw/Pv = w^\top\Sigma w/P. Moment matching gives

ln⁡(1+r)∼N(a,s2),s2=ln⁡ ⁣(1+v(1+m)2),a=ln⁡(1+m)−s22.\ln(1+r) \sim \mathcal N(a, s^2),\qquad s^2 = \ln\!\left(1 + \frac{v}{(1+m)^2}\right),\qquad a = \ln(1+m) - \tfrac{s^2}{2}.

Then E[WT]=W0(1+m)n\mathbb E[W_T] = W_0(1+m)^n and the median is W0enaW_0 e^{na} exactly; both are verified statistically in tests. The model has thin tails and no volatility clustering.

Historical bootstrap. Portfolio returns w⊤rtw^\top r_t 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 E[WT]=W0(1+rˉ)n\mathbb E[W_T] = W_0(1+\bar r)^n, which is tested.

Stationary block bootstrap (Politis & Romano, 1994). Blocks of consecutive historical returns with geometrically distributed lengths (mean LL, 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 AA is paid in (contributions, A>0A>0) or taken out (withdrawals, A<0A<0) in ff equal instalments per year (monthly, quarterly or annually) at the end of each interval, rising by gg per year: the flow at time tt (years) is Af(1+g)t−1/f\frac{A}{f}(1+g)^{t-1/f}. Wealth evolves as

Wt=Wt−1(1+rp,t)andWt←Wt+CFt on flow dates.W_{t} = W_{t-1}(1+r_{p,t}) \quad\text{and}\quad W_{t} \leftarrow W_{t} + CF_t \text{ on flow dates.}

With a constant annual growth factor GG and annual flows CC, this is the annuity formula Wn=W0Gn+C Gn−1G−1W_n = W_0 G^n + C\,\frac{G^n-1}{G-1}, which the test-suite checks exactly with zero-volatility returns (together with the expected-wealth identity E[Wn]=W0mn+C∑k<nmk\mathbb{E}[W_n] = W_0 m^n + C\sum_{k<n} m^k 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 μ\mu and Σ\Sigma 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.