Brownian-bridge crossing probability (source code)

= Brownian-bridge crossing probability
{c}
{title2=$\mathbb P(\min_{0\leq s\leq h}X_s\leq0\mid X_0=x,X_h=y)=e^{-xy/(Dh)}$}

For a <Brownian motion> with constant <diffusion coefficient> $D>0$, conditioned to start at $x>0$ and end at $y>0$ after time $h>0$, its <Brownian bridge> hits zero during the interval with probability
$$
\exp\!\left(-\frac{xy}{Dh}\right).
$$
The <Brownian reflection principle> gives the transition density killed at zero as $p_h(x,y)-p_h(x,-y)$. Divide by $p_h(x,y)$ to obtain the conditional survival probability, and use $p_h(x,-y)/p_h(x,y)=e^{-xy/(Dh)}$. A constant <drift> cancels upon conditioning on both endpoints. The formula does not apply unchanged to an arbitrary state-dependent <Itô diffusion>.

This supplies the missing absorption test between two positive endpoints in a numerical approximation of a <stochastic differential equation>; checking the endpoints alone can miss a barrier crossing.