Transformed Gamma Distribution
The transformed gamma distribution, also known as the generalized gamma distribution, is a continuous probability distribution that generalizes the gamma distribution. It is used to model the time until an event occurs a specified number of times.
Definition
The transformed gamma distribution has two shape parameters
where
where
Applications
Reliability engineering uses it for modeling failure times.
Survival analysis employs it in medical research.
Environmental science uses it for modeling extreme events.
Material science applies it to strength and lifetime modeling.
Properties
Property | Value |
---|---|
Mean | |
Variance | |
Mode |
Notable properties include:
The hazard rate can be increasing, decreasing, or bathtub-shaped depending on the parameter values.
The distribution exhibits great flexibility in shape due to its three parameters.
The distribution is unimodal for
.
Relationships to Other Distributions
When
, it reduces to the gamma distribution.When
, it becomes the Weibull distribution.When
, it is related to the generalized normal distribution.When
, it becomes the stretched exponential distribution.
The TransformedGammaDistribution Class
The transformed gamma distribution is implemented by the TransformedGammaDistribution class. It has one constructor that takes three arguments. The first and second are the two shape parameters. The third is the scale parameter.
The following constructs a transformed gamma distribution with shape parameters 4.2 and 3, and scale parameter 1:
var trgamma1 = new TransformedGammaDistribution(4.2, 3.0, 1.0);
The TransformedGammaDistribution class has three specific properties, ShapeParameter1, ShapeParameter2, and ScaleParameter, which return the shape and scale parameters of the distribution.
TransformedGammaDistribution has one static (Shared in Visual Basic) method, Sample, which generates a random sample using a user-supplied uniform random number generator. It takes fourth parameters. The first argument is the random number generator. The second to fourth parameters are the two shape parameters and the scale parameter of the distribution.
var random = new Pcg32();
double sample = TransformedGammaDistribution.Sample(random, 4.2, 3.0, 1.0);
The above example uses the Pcg32 to generate uniform random numbers.
References
For more information on the transformed gamma distribution, refer to the following sources:
Venter, G. (1994). "Transformed beta and gamma distributions and aggregate losses"
Proceedings of the Casualty Actuarial Society 70 (133), 289-308Kleiber, C. and Kotz, S. (2003), Statistical Size Distributions in Economics and Actuarial Sciences, Wiley.
Klugman, S. A., Panjer, H. H. and Willmot, G. E. (2012), Loss Models, From Data to Decisions, Fourth Edition, Wiley.