
Last chance! 50% off unlimited learning
Sale ends in
simOUJ
Simulates a Ornstein<U+2013>Uhlenbeck process with Jumps
simOUJ(
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
)
S at t=0
Mean reversion level
Mean reversion speed
Standard deviation
Probability of jumps
Average size of jumps
Standard deviation of jump average size
Maturity in years
Time step size e.g. 1/250 = 1 business day.
A numeric vector of simulated values
# NOT RUN {
simOUJ(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