Compound Poisson¶
quantflow.sp.poisson.CompoundPoissonProcess
pydantic-model
¶
Bases: PoissonBase, Generic[D]
A generic Compound Poisson process.
Fields:
characteristic_exponent
¶
The characteristic exponent of the Compound Poisson process, given by
where \(\Phi_{j,u}\) is the characteristic function of the jump distribution
Source code in quantflow/sp/poisson.py
arrivals
¶
Generate a list of jump arrivals times up to time time_horizon
| PARAMETER | DESCRIPTION |
|---|---|
time_horizon
|
Time horizon
TYPE:
|
sample_jumps
¶
analytical_mean
¶
analytical_variance
¶
create
classmethod
¶
Create a Compound Poisson process with a given jump distribution, volatility, jump intensity and jump asymmetry.
| PARAMETER | DESCRIPTION |
|---|---|
jump_distribution
|
The distribution of jump size (currently only Normal and DoubleExponential are supported)
TYPE:
|
vol
|
Annualized standard deviation
TYPE:
|
jump_intensity
|
The average number of jumps per year
TYPE:
|
jump_asymmetry
|
The asymmetry of the jump distribution (0 for symmetric, only used by distributions with asymmetry)
TYPE:
|
Source code in quantflow/sp/poisson.py
sample_from_draws
¶
sample
¶
Sample a number of paths of the process up to a given time horizon and with a given number of time steps.
| PARAMETER | DESCRIPTION |
|---|---|
n
|
Number of paths
TYPE:
|
time_horizon
|
Time horizon
TYPE:
|
time_steps
|
Number of time steps
TYPE:
|
Source code in quantflow/sp/poisson.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