diff --git a/_modules/pfhedge/stochastic/merton_jump.html b/_modules/pfhedge/stochastic/merton_jump.html index 64bf133c..cfc43e30 100644 --- a/_modules/pfhedge/stochastic/merton_jump.html +++ b/_modules/pfhedge/stochastic/merton_jump.html @@ -434,7 +434,11 @@
randn = engine(*(n_paths, n_steps), dtype=dtype, device=device) randn[:, 0] = 0.0 drift = ( - (mu - (sigma ** 2) / 2 - jump_per_year * (jump_mean + jump_std ** 2 / 2)) + ( + mu + - (sigma ** 2) / 2 + - jump_per_year * (math.exp(jump_mean + jump_std ** 2 / 2) - 1) + ) * dt * torch.arange(n_steps).to(randn) )