First-Passage Time
The first-passage time of a stochastic process to a threshold is defined as the first time the process reaches or exceeds :
Numerical Method
To estimate the mean first-passage time numerically:
- Run an Euler-Maruyama scheme simulation of the process (e.g. the Ornstein-Uhlenbeck process).
- At each time step, check whether .
- When the condition is met, record the elapsed time as for that walker.
- Average over many independent simulations (walkers) to obtain the mean first-passage time .
Python
Python
Output
Euler-Maruyama scheme | Ornstein-Uhlenbeck process | Langevin equation | Wiener process | Stochastic differential equation