powered by
Simulates a Ornstein–Uhlenbeck process with Jumps
simOUJ( nsims = 2, S0 = 5, mu = 5, theta = 10, sigma = 0.2, jump_prob = 0.05, jump_avesize = 2, jump_stdv = 0.05, T2M = 1, dt = 1/250 )
Simulated values. tibble
tibble
number of simulations. Defaults to 2. numeric
numeric
S at t=0. numeric
Mean reversion level. numeric
Mean reversion speed. numeric
Standard deviation. numeric
Probability of jumps. numeric
Average size of jumps. numeric
Standard deviation of jump average size. numeric
Maturity in years. numeric
Time step size e.g. 1/250 = 1 business day. numeric
Philippe Cote
simOUJ(nsims = 2, S0 = 5, mu = 5, theta = .5, sigma = 0.2, jump_prob = 0.05, jump_avesize = 3, jump_stdv = 0.05, T2M = 1, dt = 1 / 12)
Run the code above in your browser using DataLab