CJDCharacteristicFunction
- class quantmetrics.price_calculators.cjd_pricing.cjd_characteristic_function.CJDCharacteristicFunction(model: LevyModel, option: Option)[source]
Bases:
object
Implements the characteristic function for a constant jump-diffusion (CJD) model.
Parameters
- modelLevyModel
A LevyModel object specifying the underlying asset’s model and its parameters.
- optionOption
An Option object specifying the option parameters: interest rate, strike price, time to maturity, dividend yield and the equivalent martingale measure.
- calculate(u: ndarray) ndarray [source]
Calculate the characteristic function for the CJD model.
Parameters
- unp.ndarray
Input array for the characteristic function.
Returns
- np.ndarray
The characteristic function values.
Notes
The characteristic function of the CJD under the risk-neutral measure is defined as follows:
If
emm = "mean-correcting"
:
\[\Phi^{\mathbb{Q}}(u) = \exp\left\{T \left[i u b^\mathbb{Q} -\frac{u^2}{2}c + \lambda \left( e^{iu \gamma } - 1 \right) \right]\right\},\]where
\[b^\mathbb{Q}= r - \frac{\sigma^2}{2} -\lambda \kappa \quad c = \sigma^2\]\[\kappa = e^\gamma - 1\]If
emm = "Esscher"
:
\[\Phi^{\mathbb{Q}}(u) = \exp\left\{T \left[i u b^\mathbb{Q} -\frac{u^2}{2}c + \lambda^\mathbb{Q} \left( e^{iu\gamma} - 1 \right) \right]\right\},\]where
\[b^\mathbb{Q}= r - \frac{\sigma^2}{2} -\lambda \kappa + \theta \sigma^2 \quad c = \sigma^2\]\[\lambda^\mathbb{Q} = \lambda \exp \left(\theta \gamma+ \psi \gamma^2 \right)\]The first-order Esscher parameter \(\theta\) is the risk premium (market price of risk) and which is the unique solution to the martingale equation for each \(\psi\) which is the second-order Esscher parameter. See the documentation of the
RiskPremium
class for the martingale equation and refer to [1] for more details.\(\mathbb{Q}\) is the risk-neutral measure.
\(T\) is the time to maturity.
\(i\) is the imaginary unit.
\(u\) is the input variable.
\(r\) is the risk-free interest rate.
\(\sigma\) is the volatility of the underlying asset.
\(\gamma\) is the constant jump size.
\(\lambda\) is the jump intensity rate.
References