Let's consider \(B_t \) a standard Brownian motion in \([0,1]\). We can think of the process \[B_t-tB_1 \text{ for } t\in[0,1],\] which is called a Brownian bridge, as a Brownian motion conditioned to be \(1\) at time \(t=1\). As one can imagine, if we are able to simulate Brownian motion (which we are), then a Brownian bridge is simple to simulate.
What happens if we further want to condition a Brownian motion to stay positive in \([0,1]\)?
This new process, called a Brownian excursion is not so simple to simulate. Here we show one possible way, sometimes called the Vervaat Transform, to transform a Brownian bridge into a Brownian excursion.
To get a Brownian excursion from a given Brownian bridge,
This transformation is useful, for example, to easily see that the range (max-min) of a Brownian bridge has the same distribution as the maximum of a Brownian excursion.