Poisson process¶
quantflow.sp.poisson.PoissonBase
pydantic-model
¶
Bases: StochasticProcess1D
sample_jumps
abstractmethod
¶
arrivals
abstractmethod
¶
Generate a list of jump arrivals times up to time time_horizon
| PARAMETER | DESCRIPTION |
|---|---|
time_horizon
|
Time horizon
TYPE:
|
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
sample_from_draws
¶
domain_range
¶
characteristic_exponent
abstractmethod
¶
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_mean
¶
analytical_variance
¶
analytical_pdf
¶
analytical_cdf
¶
marginal
¶
frequency_range
¶
Maximum frequency when calculating characteristic functions
Source code in quantflow/sp/base.py
support
¶
Support of the process at time t
Source code in quantflow/sp/base.py
quantflow.sp.poisson.PoissonProcess
pydantic-model
¶
Bases: PoissonBase
A Poisson process is a pure jump process where the number of jumps in a time interval follows a Poisson distribution and the jump sizes are always 1.
The expected number of jumps and the variance in a unit of time
is given by the non-negative intensity parameter \(\lambda\).
Fields:
-
intensity(float)
marginal
¶
characteristic_exponent
¶
arrivals
¶
Generate a list of jump arrivals times up to time time_horizon
| PARAMETER | DESCRIPTION |
|---|---|
time_horizon
|
Time horizon
TYPE:
|
sample_jumps
¶
frequency_range
¶
support
¶
analytical_mean
¶
analytical_variance
¶
analytical_cdf
¶
CDF of the number of events at time t.
It's given by
where \(\Gamma\) is the upper incomplete gamma function.
Source code in quantflow/sp/poisson.py
analytical_pdf
¶
Probability density function of the number of events at time t.
It's given by
Source code in quantflow/sp/poisson.py
cdf_jacobian
¶
Jacobian of the CDF
It's given by
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