simOUJ | R Documentation |
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
)
nsims |
number of simulations. Defaults to 2. |
S0 |
S at t=0. |
mu |
Mean reversion level. |
theta |
Mean reversion speed. |
sigma |
Standard deviation. |
jump_prob |
Probability of jumps. |
jump_avesize |
Average size of jumps. |
jump_stdv |
Standard deviation of jump average size. |
T2M |
Maturity in years. |
dt |
Time step size e.g. 1/250 = 1 business day. |
Simulated values. tibble
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.