Python, Physics, Math, Statistics, Computer Science.
(source: author) Lambda denotes a tridiagonal matrix andp_t, q_t are vectors. Applying the Euler-Maruyama scheme with a backwards difference approximation, we can get a direct expression for p_t : Using this expression we can finally simulate the time evolution of the particle following a Brownian