sim.expOU.sv | R Documentation |
Simulate an exp-OU stoch volatility model with 1 or 2 vol factors
sim.expOU.sv(x0, model, dt = model$dt, useEuler = FALSE)
x0 |
should have 2 or 3 columns |
model |
a list containing all the other parameters, including volatility |
dt |
is the step size in time. Defaults to |
useEuler |
flag, whether to use the exact transition for the StochVol factor, or its Euler approximation |
: Need the following fields in model: svMean
(mean-reversion level),
svAlpha
(mean-reversion strength), svEpsY
(fast scaling parameter),
svVol
(volatility of volatility), svRho
(correlation with asset S).
For 2-factor also need: svMeanZ
(slow scale mean-reversion level), svAlphaZ
(mean-reversion strength), svDeltaZ
(slow scaling parameter),
svVolZ
(Z volatility), svRhoZ
(correlation between Z and S), svRhoYZ
( correlation between the fast and slow SV factors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.