Doubly Stochastic Poisson process¶
quantflow.sp.dsp.DSP
pydantic-model
¶
Bases: PoissonBase
Doubly Stochastic Poisson process.
It's a process where the inter-arrival time is exponentially distributed with rate \(\lambda_t\)
Fields:
marginal
¶
frequency_range
¶
support
¶
characteristic_exponent
¶
Source code in quantflow/sp/dsp.py
arrivals
¶
sample_jumps
¶
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