Interactive model — experiment with these parameters in sItô

The standard error of a Monte Carlo sample mean over $N$ independent paths is $\frac{s}{\sqrt{N}}$, where $s$ is the pathwise standard deviation of the target functional. Cutting the sampling error in half therefore requires four times as many paths, and cutting it tenfold requires $100$ times as many.

Sizing a run from a target error

To achieve a $95\%$ confidence interval of half-width $\varepsilon$, choose

$$ N = \Bigl(\frac{1.96\,s}{\varepsilon}\Bigr)^2, $$

estimating $s$ from a short pilot run when no analytical bound is known. For terminal geometric Brownian motion $X_1$ with $X_0 = 1$, $\mu = 5\%$, and $\sigma = 20\%$, the exact mean is $e^{0.05} = 1.0513$ and the exact standard deviation is $s = e^{\mu}\sqrt{e^{\sigma^2} - 1} = 0.2116$:

Paths $N$Standard error ($\frac{s}{\sqrt{N}}$)$95\%$ half-width ($1.96\,\mathrm{SE}$)
$250$$1.34 \times 10^{-2}$$2.6 \times 10^{-2}$
$10^3$$6.7 \times 10^{-3}$$1.3 \times 10^{-2}$
$10^4$$2.1 \times 10^{-3}$$4.1 \times 10^{-3}$

Reaching a half-width of $10^{-3}$ demands $(1.96 \times 0.2116 \times 10^3)^2 \approx 1.72 \times 10^5$ paths—well above interactive demo limits, which is why sizing $N$ beforehand saves wasted runs.

250-path GBM fan showing ragged empirical density patches and wobbly 5%–95% quantile bands 250-path GBM fan showing ragged empirical density patches and wobbly 5%–95% quantile bands
Empirical path distribution with $N = 250$ paths ($\mu = 5\%, \sigma = 20\%$): finite-sample granularity leaves visible density clusters and wobbly quantile boundaries ($\mathrm{SE} \approx 0.013$). Open $250$-path fan in sItô ↗
10,000-path GBM fan showing smooth empirical density and steady quantile curves 10,000-path GBM fan showing smooth empirical density and steady quantile curves
Same model with $N = 10^4$ paths ($40\times$ larger sample): standard error drops by $\sqrt{40} \approx 6.3\times$ to $0.0021$ and the quantile bands smooth out across the horizon. Open $10^4$-path fan in sItô ↗

Run this in sItô

Open sItô with this model pre-loaded to inspect the path distribution, summary statistics, and parameter sensitivities—or change any setting and rerun (changing the seed shifts the sample mean by roughly one standard error):

When normal intervals break down

The confidence interval $\bar{x} \pm 1.96\,\frac{s}{\sqrt{N}}$ relies on the central limit theorem [1, 2]. Across $2 \times 10^4$ repeated experiments of $250$ paths on this mildly skewed variable, empirical coverage is $95.0\%$. Under heavy tails, finite-sample skewness ruins normal coverage (see The sample mean of a log-normal), and for rare events the relative error—not the absolute half-width—governs sample size (see Estimating small probabilities by Monte Carlo). The underlying simulation pipeline is described in Compiling parametric SDEs into fast Monte Carlo simulations.

Related notes: Monte Carlo error versus discretization error, Variance reduction, How to read a fan chart.