The Generalized Hyperbolic Distribution is defined as the normal variance-mean mixture with Generalized Inverse Gaussian distribution as the mixing distribution.
The “hyperbolic” characterization refers to the fact that the shape of the log-probability distribution can be described as a hyperbola. Hyperbolic distributions are sometime referred to as semi-fat tailed because their probability density decrease slower than “sub-hyperbolic” distributions (e.g. normal distribution, whose log-probability decreases quadratically), but faster than other “extreme value” distributions (e.g. pareto distribution, whose log-probability decreases logarithmically).
Functions
Different parameterizations exist in the literature; SciPy implements the “4th parametrization” in Prause (1999).
\begin{eqnarray*}
f(x, p, a, b) & = &
\frac{(a^2 - b^2)^{p/2}}
{\sqrt{2\pi}a^{p-0.5}
K_p\Big(\sqrt{a^2 - b^2}\Big)}
e^{bx} \times \frac{K_{p - 1/2}
(a \sqrt{1 + x^2})}
{(\sqrt{1 + x^2})^{1/2 - p}}
\end{eqnarray*}
for:
x,p∈(−∞;∞)
∣b∣<a if p≥0
∣b∣≤a if p<0
Kp(.) denotes the modified Bessel function of the second kind and order p (scipy.special.kn)
The probability density above is defined in the “standardized” form. To shift and/or scale the distribution use the loc and scale parameters. Specifically, f(x,p,a,b,loc,scale) is identically equivalent to scale1f(y,p,a,b) with y=scale1(x−loc).
This parameterization derives from the original (λ,α,β,δ,μ) parameterization in Barndorff (1978) by setting:
λ=p
α=δa=δα^
β=δb=δβ^
δ=scale
μ=location
Random variates for the scipy.stats.genhyperbolic can be efficiently sampled from the above-mentioned normal variance-mean mixture where scipy.stats.geninvgauss is parametrized as GIG(p=p,b=α^2−β^2,loc=location,scale=α^2−β^21) so that: GH(p,α^,β^)=β^⋅GIG+GIG⋅N(0,1)
The “generalized” characterization suggests the fact that this distribution is a superclass of several other probability distribution, for instance:
f(p=−ν/2,a=0,b=0,loc=0,scale=ν) has a Student’s t-distribution (scipy.stats.t) with ν degrees of freedom.
f(p=1,a=α^,b=β^,loc=μ,scale=δ) has a Hyperbolic Distribution.
f(p=−1/2,a=α^,b=β^,loc=μ,scale=δ) has a Normal Inverse Gaussian Distribution ().
f(p=1,a=δ,b=0,loc=μ,scale=δ) has a Laplace Distribution () for
Examples
It is useful to understand how the parameters affect the shape of the distribution. While it is fairly straightforward to interpret the meaning of b as the skewness, understanding the difference between a and p is not as obvious, as both affect the kurtosis of the distribution. a can be interpreted as the speed of the decay of the probability density (where a>1 the asymptotic decay is faster than loge and vice versa) or - equivalently - as the slope of the log-probability hyperbola asymptote (where a>1 decay is faster than ∣1∣ and vice versa). p can be seen as the width of the shoulders of the probability density distribution (where p<1 results in narrow shoulders and vice versa) or - equivalently - as the shape of the log-probability hyperbola, which is convex for p<1 and concave otherwise.
O. Barndorff-Nielsen, “Hyperbolic Distributions and Distributions
on Hyperbolae”, Scandinavian Journal of Statistics, Vol. 5(3),
pp. 151-157, 1978. https://www.jstor.org/stable/4615705
Eberlein E., Prause K. (2002) The Generalized Hyperbolic Model:
Financial Derivatives and Risk Measures. In: Geman H., Madan D.,
Pliska S.R., Vorst T. (eds) Mathematical Finance - Bachelier
Congress 2000. Springer Finance. Springer, Berlin, Heidelberg.
DOI:10.1007/978-3-662-12429-1_12.
Scott, David J, Würtz, Diethelm, Dong, Christine and Tran,
Thanh Tam, (2009), Moments of the generalized hyperbolic
distribution, MPRA Paper, University Library of Munich, Germany,
https://EconPapers.repec.org/RePEc:pra:mprapa:19081.