distributions.VarianceGamma
The variance gamma law VG(sigma, nu, theta) with a location mu
Usage
distributions.VarianceGamma()for invert_chf (Madan, Carr and Chang, 1998).
Its characteristic function is exp(i mu s) (1 - i theta nu s + sigma**2 nu s**2 / 2) ** (-1 / nu); at theta = 0, nu = 1 it is the Laplace law with scale sigma / sqrt(2). A large nu decays slowly in frequency and needs a small step.
Parameters
sigma: float-
Volatility, positive.
nu: float-
Variance rate, positive.
theta: float = 0-
Drift.
mu: float = 0- Location.
Raises
ValueError- If a parameter is out of range.
Examples
>>> from prospicio.distributions import VarianceGamma
>>> round(VarianceGamma(0.2, 0.5, -0.1).variance, 12)0.045
Attributes
| Name | Description |
|---|---|
| mean | The mean. |
| mu | mu. |
| nu | nu. |
| sigma | sigma. |
| skewness | The skewness. |
| theta | theta. |
| variance | The variance. |
mean
The mean.
mean: float
mu
mu.
mu: float
nu
nu.
nu: float
sigma
sigma: float
skewness
The skewness.
skewness: float
theta
theta: float
variance
The variance.
variance: float