Interactive model — experiment with these parameters in sItô

Standard Brownian motion reaches every level $b > 0$ almost surely, yet the first-passage time $\tau = \inf\{t \ge 0 : X_t \ge b\}$ has infinite expectation: its survival tail $\mathbb{P}(\tau > t) \approx b\sqrt{\frac{2}{\pi t}}$ decays too slowly to be integrable. Adding a strictly positive drift $\mu > 0$ changes the tail to exponential decay, giving $\tau$ an inverse Gaussian distribution with finite mean $\frac{b}{\mu}$.

Distribution of the first-passage time

Consider drifted Brownian motion started at $X_0 = 0$:

$$ dX_t = \mu\,dt + \sigma\,dW_t. $$

For $b > 0$, the cumulative distribution function of the hitting time $\tau$ is

$$ \mathbb{P}(\tau \le t) = \Phi\Bigl(\frac{\mu t - b}{\sigma\sqrt{t}}\Bigr) + e^{\frac{2\mu b}{\sigma^2}}\,\Phi\Bigl(\frac{-b - \mu t}{\sigma\sqrt{t}}\Bigr). $$

When $\mu = 0$ and $\sigma = 1$, this collapses via the reflection principle [1, 2] to $\mathbb{P}(\tau \le t) = 2\,\Phi\bigl(-\frac{b}{\sqrt{t}}\bigr)$, leaving a surviving fraction $2\Phi\bigl(\frac{b}{\sqrt{t}}\bigr) - 1 \sim b\sqrt{\frac{2}{\pi t}}$ at large $t$.

Inverse Gaussian hitting-time density with positive drift μ = 1 concentrated in [0, 1] with mean 0.52 and median 0.49 Inverse Gaussian hitting-time density with positive drift μ = 1 concentrated in [0, 1] with mean 0.52 and median 0.49
Hitting-time distribution with positive drift ($\mu = 1, b = 1, T = 1$): inverse Gaussian tail concentrates hits inside $[0, 1]$ with median $0.49$ and mean $0.52$. Open drifted run in sItô ↗
Driftless Brownian hitting-time density with heavy right tail extending to T = 40, median 1.88 and mean 4.96 Driftless Brownian hitting-time density with heavy right tail extending to T = 40, median 1.88 and mean 4.96
Hitting-time distribution without drift ($\mu = 0, b = 1, T = 40$): power-law survival stretches the 95% quantile to $22.3$ and pulls the truncated mean ($4.96$) far past the median ($1.88$), while $14.2\%$ of paths have still not hit. Open driftless run 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:

Regime ($b = 1, \sigma = 1$)Grid setupExact $\mathbb{P}(\tau \le T)$Simulated crossing share
$\mu = 1$, $T = 1$$100$ steps ($\Delta = 0.01$)0.668$\approx 0.65$ (reference grid: $0.642$; median $\approx 0.49$)
$\mu = 0$, $T = 40$$10^3$ steps ($\Delta = 0.04$)0.874$\approx 0.86$ ($142$ of $10^3$ paths still waiting)

Slow tail decay and grid lag

In both runs, discrete monitoring slightly understates the crossing probability because excursions above $b$ that reverse between grid points are missed. In the driftless case, doubling the horizon $T$ shrinks the waiting fraction only by a factor $\frac{1}{\sqrt{2}}$. Sample averages of observed hitting times therefore grow indefinitely with $T$, making an empirical “mean time to hit” uninformative, whereas the probability of hitting before a fixed horizon $T$ remains well defined—the basis for structural first-passage credit models. The simulation pipeline is described in Compiling parametric SDEs into fast Monte Carlo simulations.

Related notes: Default as a first passage, The reflection principle, The Brownian bridge as an SDE.