Skip to main content

distributions.TemperedStable

The CGMY tempered stable law with a location mu for invert_chf

Usage

Source

distributions.TemperedStable()

(Carr, Geman, Madan and Yor, 2002).

Its cumulant generating function is mu s + C Gamma(-Y) ((M - s)**Y - M**Y + (G + s)**Y - G**Y) for -G < s < M.

Parameters

C: float

Activity, positive.

G: float

Left tempering, positive.

M: float

Right tempering, positive.

Y: float

Index, below 2 and not 0 or 1.

mu: float = 0
Location.

Raises

ValueError
If a parameter is out of range.

Examples

>>> from prospicio.distributions import TemperedStable
>>> round(TemperedStable(1.0, 5.0, 10.0, 0.5).mean, 6)

-0.232166

Attributes

Name Description
C C.
G G.
M M.
Y Y.
mean The mean.
mu mu.
skewness The skewness.
variance The variance.

C

C.

C: float


G

G.

G: float


M

M.

M: float


Y

Y.

Y: float


mean

The mean.

mean: float


mu

mu.

mu: float


skewness

The skewness.

skewness: float


variance

The variance.

variance: float