The Generalized Gamma Distribution

While not as frequently used for modeling life data as the previous distributions, the generalized gamma distribution does have the ability to mimic the attributes of other distributions such as the Weibull or lognormal, based on the values of the distribution's parameters. While the generalized gamma distribution is not often used to model life data by itself (Mostly due to its mathematical complexity and its requirement of large sample sizes (>30) for convergence), its ability to behave like other more commonly-used life distributions is sometimes used to determine which of those life distributions should be used to model a particular set of data.

Generalized Gamma Probability Density Function
The generalized gamma function is a 3-parameter distribution. One version of the generalized gamma distribution uses the parameters k, $$\beta\,\!$$, and $$\theta \,\!$$. The pdf for this form of the generalized gamma distribution is given by:


 * $$f(t)=\frac{\beta }{\Gamma (k)\cdot \theta }{{\left( \frac{t}{\theta } \right)}^{k\beta -1}}{{e}^{-{{\left( \frac{t}{\theta } \right)}^{\beta }}}}\,\!$$

where $$\theta >0\,\!$$ is a scale parameter, $$\beta >0\,\!$$ and $$k>0\,\!$$ are shape parameters and $$\Gamma (x)\,\!$$ is the gamma function of x, which is defined by:


 * $$\Gamma (x)=\int_{0}^{\infty }\cdot {{e}^{-s}}ds\,\!$$

With this version of the distribution, however, convergence problems arise that severely limit its usefulness. Even with data sets containing 200 or more data points, the MLE methods may fail to converge. Further adding to the confusion is the fact that distributions with widely different values of $$k\,\!$$, $$\beta\,\!$$, and $$\theta \,\!$$ may appear almost identical, as discussed in Lawless [21]. In order to overcome these difficulties, Weibull++ uses a reparameterization with parameters $$k\,\!$$, $$\beta\,\!$$, and $$\theta \,\!$$, as shown in [21], where:


 * $$\begin{align}

& \mu =\ln (\theta )+\frac{1}{\beta }\cdot \ln \left( \frac{1} \right) \\ & \\  & \sigma =\frac{1}{\beta \sqrt{k}} \\ & \\  & \lambda =\frac{1}{\sqrt{k}} \\ \end{align}\,\!$$

where $$-\infty <\mu <\infty ,\text{ }\sigma >0\text{, }0<\lambda .\,\!$$

While this makes the distribution converge much more easily in computations, it does not facilitate manual manipulation of the equation. By allowing $$\lambda \,\!$$ to become negative, the pdf of the reparameterized distribution is given by:


 * $$f(t)=\left\{ \begin{matrix}

\tfrac{|\lambda |}{\sigma \cdot t}\cdot \tfrac{1}{\Gamma \left( \tfrac{1} \right)}\cdot {{e}^{\left[ \tfrac{\lambda \cdot \tfrac{\text{ln}(t)-\mu }{\sigma }+\text{ln}\left( \tfrac{1} \right)-{{e}^{\lambda \cdot \tfrac{\text{ln}(t)-\mu }{\sigma }}}} \right]}}\text{ if }\lambda \ne 0 \\ \tfrac{1}{t\cdot \sigma \sqrt{2\pi }}{{e}^{-\tfrac{1}{2}{{\left( \tfrac{\text{ln}(t)-\mu }{\sigma } \right)}^{2}}}}\text{                           if }\lambda =0  \\ \end{matrix} \right.\,\!$$

Generalized Gamma Reliability Function
The reliability function for the generalized gamma distribution is given by:


 * $$R(t)=\left\{ \begin{array}{*{35}{l}}

1-{{\Gamma }_{I}}\left( \tfrac;\tfrac{1} \right)\text{ if }\lambda >0 \\ 1-\Phi \left( \tfrac{\text{ln}(t)-\mu }{\sigma } \right)\text{              if }\lambda =0  \\ {{\Gamma }_{I}}\left( \tfrac;\tfrac{1} \right)\text{      if }\lambda <0  \\ \end{array} \right.\,\!$$

where:


 * $$\Phi (z)=\frac{1}{\sqrt{2\pi }}\int_{-\infty }^{z}{{e}^{-\tfrac{2}}}dx\,\!$$

and $${{\Gamma }_{I}}(k;x)\,\!$$ is the incomplete gamma function of $$k\,\!$$

and $$x\,\!$$, which is given by:


 * $${{\Gamma }_{I}}(k;x)=\frac{1}{\Gamma (k)}\int_{0}^{x}{{s}^{k-1}}{{e}^{-s}}ds\,\!$$

where $$\Gamma (x)\,\!$$ is the gamma function of $$x\,\!$$. Note that in Weibull++ the probability plot of the generalized gamma is created on lognormal probability paper. This means that the fitted line will not be straight unless $$\lambda =0.\,\!$$

Generalized Gamma Failure Rate Function
As defined in Basic Statistical Background, the failure rate function is given by:


 * $$\lambda (t)=\frac{f(t)}{R(t)}\,\!$$

Owing to the complexity of the equations involved, the function will not be displayed here, but the failure rate function for the generalized gamma distribution can be obtained merely by dividing the pdf function by the reliability function.

Generalized Gamma Reliable Life
The reliable life, $${{T}_{R}}\,\!$$, of a unit for a specified reliability, starting the mission at age zero, is given by:


 * $${{T}_{R}}=\left\{ \begin{array}{*{35}{l}}

{{e}^{\mu +\tfrac{\sigma }{\lambda }\ln \left[ {{\lambda }^{2}}\Gamma _{I}^{-1}\left( 1-R,\tfrac{1} \right) \right]}}\text{ if }\lambda >0  \\ {{\Phi }^{-1}}(1-R)\text{                 if }\lambda =0  \\ {{e}^{\mu +\tfrac{\sigma }{\lambda }\ln \left[ {{\lambda }^{2}}\Gamma _{I}^{-1}\left( R,\tfrac{1} \right) \right]}}\text{    if }\lambda <0  \\ \end{array} \right.\,\!$$

Characteristics of the Generalized Gamma Distribution
As mentioned previously, the generalized gamma distribution includes other distributions as special cases based on the values of the parameters.




 * The Weibull distribution is a special case when $$\lambda =1\,\!$$ and:


 * $$\begin{align}

& \beta = \frac{1}{\sigma } \\ & \eta = \ln (\mu ) \end{align}\,\!$$


 * In this case, the generalized distribution has the same behavior as the Weibull for $$\sigma >1,\,\!$$ $$\sigma =1,\,\!$$ and $$\sigma <1\,\!$$ ( $$\beta

<1,\,\!$$ $$\beta =1,\,\!$$ and $$\beta >1\,\!$$ respectively).
 * The exponential distribution is a special case when $$\lambda =1\,\!$$ and $$\sigma =1\,\!$$.
 * The lognormal distribution is a special case when $$\lambda =0\,\!$$.
 * The gamma distribution is a special case when $$\lambda =\sigma \,\!$$.

By allowing $$\lambda \,\!$$ to take negative values, the generalized gamma distribution can be further extended to include additional distributions as special cases. For example, the Fréchet distribution of maxima (also known as a reciprocal Weibull) is a special case when $$\lambda =-1\,\!$$.

Confidence Bounds
The only method available in Weibull++ for confidence bounds for the generalized gamma distribution is the Fisher matrix, which is described next.

Bounds on the Parameters
The lower and upper bounds on the parameter $$\mu \,\!$$ are estimated from:


 * $$\begin{align}

& {{\mu }_{U}}= & \widehat{\mu }+{{K}_{\alpha }}\sqrt{Var(\widehat{\mu })}\text{ (upper bound)} \\ & {{\mu }_{L}}= & \widehat{\mu }-{{K}_{\alpha }}\sqrt{Var(\widehat{\mu })}\text{ (lower bound)} \end{align}\,\!$$

For the parameter $$\widehat{\sigma }\,\!$$, $$\ln (\widehat{\sigma })\,\!$$ is treated as normally distributed, and the bounds are estimated from:


 * $$\begin{align}

& {{\sigma }_{U}}= \widehat{\sigma }\cdot {{e}^{\tfrac{{{K}_{\alpha }}\sqrt{Var(\widehat{\sigma })}}{\widehat{\sigma }}}}\text{ (upper bound)} \\ & {{\sigma }_{L}}= \frac{\widehat{\sigma }}\text{ (lower bound)} \end{align}\,\!$$

For the parameter $$\lambda ,\,\!$$ the bounds are estimated from:


 * $$\begin{align}

& {{\lambda }_{U}}= & \widehat{\lambda }+{{K}_{\alpha }}\sqrt{Var(\widehat{\lambda })}\text{ (upper bound)} \\ & {{\lambda }_{L}}= & \widehat{\lambda }-{{K}_{\alpha }}\sqrt{Var(\widehat{\lambda })}\text{ (lower bound)} \end{align}\,\!$$

where $${{K}_{\alpha }}\,\!$$ is defined by:


 * $$\alpha =\frac{1}{\sqrt{2\pi }}\int_^{\infty }{{e}^{-\tfrac{2}}}dt=1-\Phi ({{K}_{\alpha }})\,\!$$

If $$\delta \,\!$$ is the confidence level, then $$\alpha =\tfrac{1-\delta }{2}\,\!$$ for the two-sided bounds, and $$\alpha =1-\delta \,\!$$ for the one-sided bounds.

The variances and covariances of $$\widehat{\mu }\,\!$$ and $$\widehat{\sigma }\,\!$$ are estimated as follows:


 * $$\begin{align}

\left( \begin{matrix}  \widehat{Var}\left( \widehat{\mu } \right) & \widehat{Cov}\left( \widehat{\mu },\widehat{\sigma } \right) & \widehat{Cov}\left( \widehat{\mu },\widehat{\lambda } \right)  \\   \widehat{Cov}\left( \widehat{\sigma },\widehat{\mu } \right) & \widehat{Var}\left( \widehat{\sigma } \right) & \widehat{Cov}\left( \widehat{\sigma },\widehat{\lambda } \right)  \\   \widehat{Cov}\left( \widehat{\lambda },\widehat{\mu } \right) & \widehat{Cov}\left( \widehat{\lambda },\widehat{\sigma } \right) & \widehat{Var}\left( \widehat{\lambda } \right)  \\ \end{matrix} \right) \\ = \left( \begin{matrix}  -\tfrac{{{\partial }^{2}}\Lambda }{\partial {{\mu }^{2}}} & -\tfrac{{{\partial }^{2}}\Lambda }{\partial \mu \partial \sigma } & -\tfrac{{{\partial }^{2}}\Lambda }{\partial \mu \partial \lambda }  \\   -\tfrac{{{\partial }^{2}}\Lambda }{\partial \mu \partial \sigma } & -\tfrac{{{\partial }^{2}}\Lambda }{\partial {{\sigma }^{2}}} & -\tfrac{{{\partial }^{2}}\Lambda }{\partial \lambda \partial \sigma }  \\   -\tfrac{{{\partial }^{2}}\Lambda }{\partial \mu \partial \lambda } & -\tfrac{{{\partial }^{2}}\Lambda }{\partial \lambda \partial \sigma } & -\tfrac{{{\partial }^{2}}\Lambda }{\partial {{\lambda }^{2}}}  \\ \end{matrix} \right)_{\mu =\widehat{\mu },\sigma =\widehat{\sigma },\lambda =\hat{\lambda }}^{-1} \end{align}\,\!$$

Where $$\Lambda \,\!$$ is the log-likelihood function of the generalized gamma distribution.

Bounds on Reliability
The upper and lower bounds on reliability are given by:


 * $$\begin{align}

& {{R}_{U}}= & \frac{\hat{R}+(1-\hat{R}){{e}^{-\tfrac{{{K}_{\alpha }}\sqrt{Var(\widehat{R})}}{\hat{R}(1-\hat{R})}}}} \\ & {{R}_{L}}= & \frac{\hat{R}+(1-\hat{R}){{e}^{\tfrac{{{K}_{\alpha }}\sqrt{Var(\widehat{R})}}{\hat{R}(1-\hat{R})}}}} \end{align}\,\!$$

where:


 * $$\begin{align}

Var(\widehat{R})= & {{\left( \frac{\partial R}{\partial \mu } \right)}^{2}}Var(\widehat{\mu })+{{\left( \frac{\partial R}{\partial \sigma } \right)}^{2}}Var(\widehat{\sigma })+{{\left( \frac{\partial R}{\partial \lambda } \right)}^{2}}Var(\widehat{\lambda })\\ & +2\left( \frac{\partial R}{\partial \mu } \right)\left( \frac{\partial R}{\partial \sigma } \right)Cov(\widehat{\mu },\widehat{\sigma })+2\left( \frac{\partial R}{\partial \mu } \right)\left( \frac{\partial R}{\partial \lambda } \right)Cov(\widehat{\mu },\widehat{\lambda })\\ & +2\left( \frac{\partial R}{\partial \lambda } \right)\left( \frac{\partial R}{\partial \sigma } \right)Cov(\widehat{\lambda },\widehat{\sigma }) \end{align}\,\!$$

Bounds on Time
The bounds around time for a given percentile, or unreliability, are estimated by first solving the reliability equation with respect to time. Since $$T\,\!$$ is a positive variable, the transformed variable $$\hat{u}=\ln (\widehat{T})\,\!$$ is treated as normally distributed and the bounds are estimated from:


 * $$\begin{align}

& {{u}_{u}}= & \ln {{T}_{U}}=\widehat{u}+{{K}_{\alpha }}\sqrt{Var(\widehat{u})} \\ & {{u}_{L}}= & \ln {{T}_{L}}=\widehat{u}-{{K}_{\alpha }}\sqrt{Var(\widehat{u})} \end{align}\,\!$$

Solving for $${{T}_{U}}\,\!$$ and $${{T}_{L}}\,\!$$ we get:


 * $$\begin{align}

& {{T}_{U}}= & {{e}^}\text{ (upper bound)} \\ & {{T}_{L}}= & {{e}^}\text{ (lower bound)} \end{align}\,\!$$

The variance of $$u\,\!$$ is estimated from:


 * $$\begin{align}

& Var(\widehat{u})= {{\left( \frac{\partial u}{\partial \mu } \right)}^{2}}Var(\widehat{\mu })+{{\left( \frac{\partial u}{\partial \sigma } \right)}^{2}}Var(\widehat{\sigma })+{{\left( \frac{\partial u}{\partial \lambda } \right)}^{2}}Var(\widehat{\lambda })\\ & +2\left( \frac{\partial u}{\partial \mu } \right)\left( \frac{\partial u}{\partial \sigma } \right)Cov(\widehat{\mu },\widehat{\sigma })+2\left( \frac{\partial u}{\partial \mu } \right)\left( \frac{\partial u}{\partial \lambda } \right)Cov(\widehat{\mu },\widehat{\lambda })\\ & +2\left( \frac{\partial u}{\partial \lambda } \right)\left( \frac{\partial u}{\partial \sigma } \right)Cov(\widehat{\lambda },\widehat{\sigma }) \end{align}\,\!$$