Generalized integer gamma distribution

In probability and statistics, the generalized integer gamma distribution (GIG) is the distribution of the sum of independent gamma distributed random variables, all with integer shape parameters and different rate parameters. This is a special case of the generalized chi-squared distribution. A related concept is the generalized near-integer gamma distribution (GNIG).

Definition
The random variable $$X\!$$ has a gamma distribution with shape parameter $$r$$ and rate parameter $$\lambda$$ if its probability density function is

f^{}_X(x)=\frac{\lambda^r}{\Gamma(r)}\,e^{-\lambda x} x^{r-1}(x>0;\,\lambda,r>0) $$ and this fact is denoted by $$X\sim\Gamma(r,\lambda)\!.$$

Let $$X_j\sim\Gamma(r_j,\lambda_j)\!$$, where $$(j=1,\dots,p),$$ be $$p$$ independent random variables, with all $$r_j$$ being positive integers and all $$\lambda_j\!$$ different. In other words, each variable has the Erlang distribution with different shape parameters. The uniqueness of each shape parameter comes without loss of generality, because any case where some of the $$\lambda_j$$ are equal would be treated by first adding the corresponding variables: this sum would have a gamma distribution with the same rate parameter and a shape parameter which is equal to the sum of the shape parameters in the original distributions.

Then the random variable Y defined by

Y=\sum^p_{j=1} X_j $$ has a GIG (generalized integer gamma) distribution of depth $$p$$ with shape parameters $$r_j\!$$ and rate parameters $$\lambda_j\!$$ $$(j=1,\dots,p)$$. This fact is denoted by
 * $$Y\sim GIG(r_j,\lambda_j;p)\! .$$

It is also a special case of the generalized chi-squared distribution.

Properties
The probability density function and the cumulative distribution function of Y are respectively given by



f_Y^{\text{GIG}}(y|r_1,\dots,r_p;\lambda_1,\dots,\lambda_p)\,=\,K\sum^p_{j=1}P_j(y)\,e^{-\lambda_j\,y}\,,~(y>0) $$ and

F_Y^{\text{GIG}}(y|r_1,\dots,r_p;\lambda_1,\dots,\lambda_p)\,=\,1-K\sum^p_{j=1}P^*_j(y)\,e^{-\lambda_j\,y}\,,~(y>0) $$ where

K=\prod^p_{j=1}\lambda_j^{r_j}~,P_j(y)=\sum^{r_j}_{k=1} c_{j,k}\,y^{k-1} $$ and

P^*_j(y)=\sum^{r_j}_{k=1}c_{j,k}\,(k-1)!\sum^{k-1}_{i=0}\frac{y^i}{i!\,\lambda_j^{k-i}} $$ with

and

where

Alternative expressions are available in the literature on generalized chi-squared distribution, which is a field where computer algorithms have been available for some years.

Generalization
The GNIG (generalized near-integer gamma) distribution of depth $$p+1$$ is the distribution of the random variable
 * $$Z=Y_1+Y_2\!,$$

where $$Y_1\sim GIG(r_j,\lambda_j;p)\!$$ and $$Y_2\sim\Gamma(r,\lambda)\!$$ are two independent random variables, where $$r$$ is a positive non-integer real and where $$\lambda\neq\lambda_j$$ $$(j=1,\dots,p)$$.

Properties
The probability density function of $$Z\!$$ is given by

\begin{array}{l} \displaystyle f_Z^{\text{GNIG}} (z|r_1,\dots,r_p,r;\,\lambda_1,\dots,\lambda_p,\lambda) = \\[5pt] \displaystyle \quad\quad\quad K\lambda ^r \sum\limits_{j = 1}^p {e^{ - \lambda _j z} } \sum\limits_{k = 1}^{r_j } {\left\{ {c_{j,k} \fracz^{k + r - 1} {}_1F_1 (r,k+r, - (\lambda-\lambda _j )z)} \right\}} {\rm,     } ~(z > 0) \end{array} $$ and the cumulative distribution function is given by

\begin{array}{l} \displaystyle F_Z^{\text{GNIG}} (z|r_1,\ldots,r_p,r;\,\lambda_1,\ldots,\lambda_p,\lambda) = \frac{\lambda ^r \,{z^r }}{}_1F_1 (r,r+1, - \lambda z)\\[12pt] \quad\quad \displaystyle - K\lambda ^r \sum\limits_{j = 1}^p {e^{ - \lambda _j z} } \sum\limits_{k = 1}^{r_j } {c_{j,k}^* } \sum\limits_{i = 0}^{k - 1} {\frac} {}_1F_1 (r,r+1+i, - (\lambda  - \lambda _j )z) ~ (z>0) \end{array} $$ where

c_{j,k}^* = \frac\Gamma (k) $$ with $$c_{j,k}$$ given by ($$)-($$) above. In the above expressions $$_1F_1(a,b;z)$$ is the Kummer confluent hypergeometric function. This function has usually very good convergence properties and is nowadays easily handled by a number of software packages.

Applications
The GIG and GNIG distributions are the basis for the exact and near-exact distributions of a large number of likelihood ratio test statistics and related statistics used in multivariate analysis. More precisely, this application is usually for the exact and near-exact distributions of the negative logarithm of such statistics. If necessary, it is then easy,  through a simple transformation, to obtain the corresponding exact or near-exact distributions for the corresponding likelihood ratio test statistics themselves.

The GIG distribution is also the basis for a number of wrapped distributions in the wrapped gamma family.

As being a special case of the generalized chi-squared distribution, there are many other applications; for example, in renewal theory and in multi-antenna wireless communications.