Jump diffusions¶
Jump-diffusions models are a class of stochastic processes that combine a diffusion process with a jump process. The jump process is a Poisson process that generates jumps in the value of the underlying asset. The jump-diffusion model is a generalization of the Black-Scholes model that allows for the possibility of large, discontinuous jumps in the value of the underlying asset.
The most famous jump-diffusion model is the Merton model, which was introduced by Robert Merton in 1976. The Merton model assumes that the underlying asset follows a geometric Brownian motion with jumps that are normally distributed.
quantflow.sp.jump_diffusion.JumpDiffusion
pydantic-model
¶
Bases: StochasticProcess1D, Generic[D]
A generic jump-diffusion model
where \(w_t\) is a WienerProcess process with standard deviation \(\sigma\) and \(N_t\) is a CompoundPoissonProcess with intensity \(\lambda\) and generic jump distribution \(D\)
Fields:
characteristic_exponent
¶
sample
¶
sample_from_draws
¶
Source code in quantflow/sp/jump_diffusion.py
analytical_mean
¶
analytical_variance
¶
create
classmethod
¶
Create a jump-diffusion model with a given jump distribution, volatility and jump fraction.
| PARAMETER | DESCRIPTION |
|---|---|
jump_distribution
|
The distribution of jump sizes. Currently Normal and DoubleExponential are supported. If the jump distribution is set to the Normal distribution, the model reduces to a Merton jump-diffusion.
TYPE:
|
vol
|
total standard deviation per unit time
TYPE:
|
jump_intensity
|
The expected number of jumps per unit time
TYPE:
|
jump_fraction
|
The fraction of variance due to jumps (between 0 and 1)
TYPE:
|
jump_asymmetry
|
The asymmetry of the jump distribution (0 for symmetric, only used by distributions with asymmetry)
TYPE:
|
Source code in quantflow/sp/jump_diffusion.py
characteristic
¶
Characteristic function at time t for a given input parameter u
The characteristic function represents the Fourier transform of the probability density function
where \(\phi\) is the characteristic exponent, which can be more easily computed for many processes.
| PARAMETER | DESCRIPTION |
|---|---|
t
|
Time horizon
TYPE:
|
u
|
Characteristic function input parameter
TYPE:
|
Source code in quantflow/sp/base.py
convexity_correction
¶
analytical_std
¶
Analytical standard deviation of the process at time t
This has a closed form solution if the process has an analytical variance
analytical_pdf
¶
analytical_cdf
¶
marginal
¶
domain_range
¶
frequency_range
¶
Maximum frequency when calculating characteristic functions
Source code in quantflow/sp/base.py
support
¶
Support of the process at time t