The generalized inverse Gaussian (GIG) distribution supplies the positive mixing variable for the GH family. Its normalizing integral also gives the posterior moments used by EM. A standard reference is Bent Jørgensen, Statistical Properties of the Generalized Inverse Gaussian Distribution (1982; electronic edition 2012).
Definition and normalizing integral¶
Write , where and . The density on is
Here is the modified Bessel function of the second kind. Its integral representations, NIST DLMF §10.32 give the identity
We use the open interior unless a boundary is named explicitly. A normalized boundary law also exists for (inverse gamma), or (gamma). Formula (1) must then be interpreted by its limit, not by substituting zero into its Bessel ratio.
The symbol denotes a mixing variable here. In conditioning a mixture, it is called ; it is independent of the standard normal noise in that construction.
Scale and concentration parameters¶
Set and , so and . The source calls the latter parameter ; here is reserved for expectation coordinates. Then
Indeed , which verifies the power . More generally, for ,
This scaling identity is central to GH identifiability.
Moment generating function and moments¶
Multiplication by changes to in the normalizing integral. For this gives
At the integral is finite only if ; for it diverges. For every real , multiplication by instead changes the Bessel order:
Thus and , where . Differentiating at also yields an exact special-function expression for the logarithmic moment:
This is a derivative with respect to the order, not the argument of . Numerical evaluation may require quadrature or order derivatives; the absence of an elementary formula does not make the identity approximate.
Tails and moment boundaries¶
With , the two endpoint asymptotics are
The exponential cutoffs make every real power moment finite for . The right tail is exponential rather than a power law; the origin is suppressed faster than any power. At the boundaries the moment domains change:
| Boundary law | Density kernel | Finite power moments |
|---|---|---|
| , | iff | |
| , | iff |
Gamma uses a shape and a rate; inverse gamma uses a shape and the coefficient of in its exponent. See the family tour for their normal mixtures.
Skewness and kurtosis¶
Writing , the central moments are
The standardized skewness and excess kurtosis are
They are finite in the interior. At the inverse-gamma boundary with shape , the excess kurtosis is
It diverges as and is undefined for . It does not diverge for every inverse-gamma boundary: shapes above four retain a finite fourth moment.
Exponential-family coordinates¶
Use the same statistic order throughout this batch:
The natural parameters and their inverse map are
The interior is , and the log-partition is
Differentiation yields
The exponential-family core relates and to Fisher information. The IG entry states the regularity and minimality assumptions behind these identities.
Maximum likelihood and numerical limits¶
For independent positive observations , set . Up to a term independent of the candidate parameters, the average log likelihood is
The MLE, when attained in the interior, is
It matches the three moments in (15). Strict convexity in natural coordinates gives uniqueness of an interior optimum, but does not guarantee that one exists for every empirical moment vector. At fixed , only the inverse and first moments are matched. Near boundaries, Bessel ratios and nearly dependent statistics can make inversion ill-conditioned. A numerical failure or a large parameter error alone does not prove that an MLE is nonexistent; see why not gradient descent.
Hellinger distance¶
For densities , use the convention . Let bars denote arithmetic means of the two GIG parameter triples. Applying (2) to the geometric mean of the densities gives
Equivalently, the affinity is . This compares distributions even when individual parameter coordinates are poorly conditioned. The upstream note attributes this application to Shi (2016), Generalized Hyperbolic Distributions and Related Topics.
Special cases and implementation¶
The inverse Gaussian with mean and shape is exactly . Gamma and inverse gamma are the boundary cases above. Their induced marginals are described in the GH family tour.
Executable examples remain in the upstream GIG tutorial; implementation details remain in the package API and Bessel and solver design.
Source and adaptation¶
Adapted from xshi19/normix, docs/theory/gig.md, at revision
763bb3608920661a012cf089888d349fbf680aad (2026-09-13 import).
Copyright (c) 2020 xshi19. Licensed under MIT.
The pinned source
records the original version. Notation, mathematical qualifications, and links
were adapted for this site; API recipes, executable package cells, and notebook
plots are omitted. No upstream benchmark execution or formal-proof verification
is claimed for this adaptation.
MIT permission notice
MIT License
Copyright (c) 2020 xshi19
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Jørgensen, B. (1982). Statistical Properties of the Generalized Inverse Gaussian Distribution. In Lecture Notes in Statistics. Springer New York. 10.1007/978-1-4612-5698-4