Closed joe-from-mtl closed 2 years ago
numpy.random.randn
returns a sample from the standard normal distribution N(0,1)
. To convert this to any normal distribution N(mu, sigma^2) => sigma * N(0,1) + mu
. For mu=0
and var=sigma^2=2D dt
, we indeed need to change the multiplicative factor in the free (Brownian) equation from sqrt(D dt)
to sqrt(2 D dt)
.
Reviewer 1 comment :