Author-reviewedEvidence: highv1.0.0

Gamma Distribution

The gamma distribution is a continuous probability distribution on positive values, defined here by shape and scale parameters that control its mean, variance, and skew.

Last reviewed byDr Darrin Baines

Concept Architecture

Gamma Distribution: Concept Architecture

Model positive, often right-skewed values

The gamma distribution is a continuous probability family for positive values whose shape can range from strongly right-skewed to more nearly symmetric. This page explains its parameters, calculates them from a mean and standard deviation, and shows when a gamma model is useful or unsuitable for health economic data.

Define the shape and scale convention

Let XX follow a two-parameter gamma distribution with shape k>0k>0 and scale θ>0\theta>0. Its probability density for x>0x>0 is:

f(x∣k,θ)=xk−1e−x/θΓ(k)θk,x>0.f(x\mid k,\theta) =\frac{x^{k-1}e^{-x/\theta}} {\Gamma(k)\theta^k}, \qquad x>0.

Here Γ(k)\Gamma(k) is the gamma function, which normalizes the density. The mean is E[X]=kθE[X]=k\theta and the variance is Var⁡(X)=kθ2\operatorname{Var}(X)=k\theta^2. Some software instead specifies a rate r=1/θr=1/\theta; substituting a rate where a scale is expected changes the distribution. The NIST gamma reference displays both conventions.

Calculate parameters for an illustrative cost input

Suppose an analyst assigns a positive cost input a mean of £200 and a standard deviation of £100. Matching those two moments gives:

k=μ2σ2=4,θ=σ2μ=£50.k=\frac{\mu^2}{\sigma^2}=4, \qquad \theta=\frac{\sigma^2}{\mu}=£50.

The resulting gamma model has mean 4(£50)=£2004(£50)=£200 and standard deviation 4(£50)2=£100\sqrt{4(£50)^2}=£100. The parameters and monetary units are illustrative; shape is dimensionless, while scale has the same units as the outcome. NIST provides the corresponding moment-estimation relationships for positive data in its distribution-fitting guidance.

Choose the role of the distribution

One use is to describe variation in positive individual-level costs or resource quantities. Another is to represent uncertainty about a positive model parameter in probabilistic sensitivity analysis. Those are distinct levels of uncertainty: the standard deviation between patients need not equal the standard error of an estimated mean cost.

In a generalized linear model, a gamma response distribution can also be paired with a suitable link, often a log link, to estimate conditional mean costs. This regression specification is not the same as merely drawing uncertain parameter values from a gamma distribution. Methods research on healthcare cost analysis discusses gamma generalized linear models and alternative response families.

Check support, zeros, and tails

The ordinary two-parameter gamma distribution represents values greater than zero and assigns no point mass to exact zero. Healthcare expenditure data often contain non-users with zero cost; fitting a gamma density to every observation without a separate zero mechanism is inappropriate for that setting. A two-part or another appropriate model can handle zero and positive portions explicitly.

Inspect the observed frequency of zeros, right tail, subgroup patterns, and fit to the decision-relevant mean. Compare plausible alternatives such as a lognormal model when tails materially affect cost-effectiveness. Comparative research on cost distributions finds that model choice can affect economic conclusions; a familiar distribution is not automatically the best fit.

Report assumptions that matter to the decision

State whether the gamma describes people, uncertain parameters, or regression residual variation; give the shape–scale or shape–rate convention, units, source data, estimation method, and any zero-handling rule. If correlated parameters enter a model, independent gamma draws can break meaningful relationships and require a joint approach.

The distribution's positive support and adjustable skew are useful, but they do not validate extrapolation beyond observed costs or fix missing and biased data. Show how uncertainty about the shape, scale, and choice of distribution affects expected cost and the final decision.

Library

Tools & Resources

1
  • Other

    survHE — Survival Analysis for Health Economic Evaluation (R package) — Gianluca Baio, R package ed., 2023 (CRAN)

    An R package for fitting and comparing parametric survival models for health economic evaluation, including Bayesian estimation, and for extrapolating time-to-event data to inform cost-effectiveness models.

Frequently Asked Questions (6)

  • What is the gamma distribution?

    A flexible probability distribution capable of representing increasing, decreasing, or constant hazard patterns, commonly used for time-to-event and cost data.

    Source: Collett 2015

  • What range of values does the gamma distribution cover?

    The gamma distribution is defined only for positive values and is typically skewed, with a long right tail, which matches quantities that cannot be negative but occasionally take large values. This makes it a natural choice for representing things such as durations or costs, where a few cases run much higher than the average and none fall below zero. Its shape can be adjusted to be more or less skewed. These features explain its common use for time-to-event and cost data alike. Briggs and colleagues (2006) note this suitability.

    Source: Briggs et al. 2006

  • What hazard shapes can the gamma distribution represent?

    The gamma distribution can represent increasing, decreasing, or constant hazards depending on its shape parameter: a shape greater than one gives a hazard that rises from zero and approaches a constant, less than one gives a hazard that declines, and equal to one reduces to the exponential distribution with a constant hazard. This flexibility to capture monotonic increasing or decreasing hazards makes the gamma distribution more versatile than the exponential, though its hazard approaches a constant asymptotically rather than continuing to rise or fall indefinitely.

    Source: Collett 2015

  • Why is the gamma distribution used for cost data?

    The gamma distribution is used for cost data because costs are non-negative and typically right-skewed, with many modest values and a few large ones, a pattern the gamma distribution, defined only for positive values and able to be skewed, represents well. It provides a realistic model for the distribution of costs, better than a normal distribution that allows negative values and symmetry. This makes the gamma distribution common in analysing and representing the uncertainty in cost parameters in economic evaluation.

    Source: Kalbfleisch & Prentice 2002

  • How is the gamma distribution used in survival analysis?

    In survival analysis, the gamma distribution is used as a parametric model for time-to-event data where the hazard increases or decreases over time, offering more flexibility than the exponential. It can be fitted to survival data and used to describe and extrapolate survival. However, because its hazard approaches a constant asymptotically, it may not capture hazards that keep rising or falling, so it is one of several candidate distributions compared when modelling survival, chosen where its hazard shapes suit the data.

    Source: Collett 2015

  • What are the limitations of the gamma distribution?

    The gamma distribution's hazard, while flexible, is monotonic and approaches a constant asymptotically, so it cannot represent hazards that rise then fall or continue changing indefinitely, limiting its ability to fit complex patterns or some extrapolations. For cost data, its shape assumptions may not suit every distribution. As with any parametric model, extrapolation beyond the data relies on the assumed form. These limitations mean the gamma distribution is used where its available shapes are appropriate, and compared with alternatives when modelling survival or costs.

    Source: Collett 2015

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 25 Sep 2026

Content version: 1.0.0

Canonical Identity

Term code
HE-EM-SM-026

Stable URI · Machine-readable · Resolvable · CC BY 4.0