Interactive model — experiment with these parameters in sItô

An indicator Monte Carlo estimate $\hat{p}$ of a rare probability $p$ from $N$ independent paths carries relative standard error

$$ \frac{\mathrm{SE}(\hat{p})}{p} = \sqrt{\frac{1 - p}{N p}} \approx \frac{1}{\sqrt{N p}}. $$

Over $N = 10^4$ paths, the relative error is $6.6\%$ when $p = 2.3\%$ but climbs to $27\%$ when $p = 1.35 \times 10^{-3}$: precision is governed by the expected hit count $Np$, not by $N$ alone [1, 2].

Path counts for a target relative error

Because the hit count follows a $\operatorname{Binomial}(N, p)$ distribution with mean $Np$ and standard deviation $\sqrt{Np(1 - p)}$, achieving a $10\%$ relative standard error ($\frac{1}{\sqrt{Np}} = 0.1$) requires roughly $Np = 100$ observed events:

Target probability $p$Paths $N$ for $10\%$ relative error
$2.3 \times 10^{-2}$$4.3 \times 10^3$
$1.35 \times 10^{-3}$$7.4 \times 10^4$
$10^{-4}$$10^6$
$10^{-6}$$10^8$
Standard normal terminal density showing dashed 5% cutoff at -1.61 and rare left-tail mass beyond -2 and -3 Standard normal terminal density showing dashed 5% cutoff at -1.61 and rare left-tail mass beyond -2 and -3
Terminal standard normal density $W_1 \sim \mathcal{N}(0, 1)$ ($10^4$ paths): almost all samples sit inside $[-1.61, 1.69]$, leaving barely $2.2\%$ below $-2$ and $0.14\%$ below $-3$. Open rare-tail run in sItô ↗
Empirical tail probability curve Mean(Indicator(x < -2)) staying zero until t ≈ 0.30 then rising in discrete noisy steps to 0.0219 Empirical tail probability curve Mean(Indicator(x < -2)) staying zero until t ≈ 0.30 then rising in discrete noisy steps to 0.0219
Running tail-hit fraction $\mathbb{P}(W_t < -2)$ across time: zero paths cross $-2$ before $t \approx 0.30$, after which individual hit counts step up visibly noisily toward $2.19\%$. Inspect empirical hit curve 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 (simulating standard Brownian motion $W_1 \sim \mathcal{N}(0, 1)$ over $10^4$ paths, where $\Phi(-2) = 2.275 \times 10^{-2}$ and $\Phi(-3) = 1.35 \times 10^{-3}$):

Zero hits and rare-event remedies

When $p = 10^{-4}$ and $N = 10^4$, the chance of observing zero events is $(1 - p)^N \approx 37\%$ (and $90\%$ at $p = 10^{-5}$). Observing zero hits does not justify $\hat{p} = 0$: by the rule of three, zero events in $N$ trials yields a $95\%$ upper confidence bound of $\frac{3}{N}$ ($3 \times 10^{-4}$ at $N = 10^4$). Overcoming the $\frac{1}{\sqrt{Np}}$ barrier requires changing the sampling measure—via importance sampling or multilevel splitting—so the target event becomes frequent; under plain Monte Carlo, always report the raw hit count alongside $\hat{p}$. The underlying simulation pipeline is described in Compiling parametric SDEs into fast Monte Carlo simulations.

Related notes: Value at risk and expected shortfall by simulation, First-passage times of Brownian motion, The sample mean of a log-normal.