You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _continuous_distns / norminvgauss_gen

class

scipy.stats._continuous_distns:norminvgauss_gen

source: /scipy/stats/_continuous_distns.py:5468

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