bundles / scipy latest / scipy / stats / _continuous_distns / norminvgauss_gen
class
scipy.stats._continuous_distns:norminvgauss_gen
Signature
class norminvgauss_gen ( momtype = 1 , a = None , b = None , xtol = 1e-14 , badvalue = None , name = None , longname = None , shapes = None , seed = None ) Members
Summary
A Normal Inverse Gaussian continuous random variable.
Extended Summary
%(before_notes)s
Notes
The probability density function for norminvgauss is:
where is a real number, the parameter is the tail heaviness and is the asymmetry parameter satisfying and . is the modified Bessel function of second kind (scipy.special.k1).
%(after_notes)s
A normal inverse Gaussian random variable Y with parameters a and b can be expressed as a normal mean-variance mixture: Y = b * V + sqrt(V) * X where X is norm(0,1) and V is invgauss(mu=1/sqrt(a**2 - b**2)). This representation is used to generate random variates.
Another common parametrization of the distribution (see Equation 2.1 in [2]) is given by the following expression of the pdf:
In SciPy, this corresponds to .
Aliases
-
scipy.stats._continuous_distns.norminvgauss_gen