Expand description
Heston (1993) stochastic volatility model.
Dynamics under the risk-neutral measure:
dS = (r - q) S dt + sqrt(v) S dW_s
dv = kappa (theta - v) dt + vol_of_vol * sqrt(v) dW_v, d<W_s, W_v> = rho dtSemi-analytic pricing uses the characteristic function in the
“little Heston trap” formulation (Albrecher et al. 2007), which is
branch-cut stable under the principal complex logarithm, integrated
with composite Simpson. Vanilla calls/puts and both binary types come
from the same two probabilities:
call = S e^{-qT} P1 - K e^{-rT} P2, cash-or-nothing = e^{-rT} P2,
asset-or-nothing = S e^{-qT} P1.
Monte Carlo simulation lives in the Monte Carlo engine (full-truncation Euler; the Andersen QE scheme is the planned upgrade).
Structs§
- Heston
Params - Heston parameters.
thetais the long-run variance,v0the initial variance,vol_of_volthe volatility of variance (often written xi or sigma),rhothe spot-variance correlation.
Functions§
- analytic_
delta - analytic_
gamma - analytic_
npv - analytic_
rho - analytic_
theta - analytic_
vega - Sensitivity to a parallel shift of the instantaneous and long-run vol.
- heston_
binary_ asset_ price - Semi-analytic Heston price of an asset-or-nothing binary
(
S e^{-qT} P1for a call). - heston_
binary_ cash_ price - Semi-analytic Heston price of a cash-or-nothing binary
(
cash * e^{-rT} * P(S_T beyond K)). - heston_
price - Semi-analytic Heston price of a European vanilla option.