Gamma Distribution

Basic Concepts

The gamma distribution has the same relationship to the Poisson distribution that the negative binomial distribution has to the binomial distribution. The gamma distribution directly is also related to the exponential distribution and especially to the chi-square distribution.

Definition 1: The gamma distribution has a probability density function (pdf) defined by

Gamma Distribution PDF

for positive values of x where α (the shape parameter) and β (the scale parameter) are also positive numbers.

Worksheet Functions

Excel Functions: Excel provides the following functions for the gamma distribution:

GAMMA.DIST(x, α, β, cum) = the pdf f(x) of the gamma distribution when cum = FALSE and the corresponding cumulative distribution function (cdf) F(x) when cum = TRUE

GAMMA.INV(p, α, β) = x such that GAMMA.DIST(x, α, β, TRUE) = p. Thus GAMMA.INV is the inverse of the cdf of the gamma distribution.

These functions are not available in versions of Excel prior to Excel 2010. Instead, these versions of Excel use GAMMADIST, which is equivalent to GAMMA.DIST, and GAMMAINV, which is equivalent to GAMMA.INV.

Key statistical properties of the gamma distribution are:

  • Mean = αβ
  • Variance = αβ2
  • Skewness = 2 / √α
  • Kurtosis = 6 / α

Observation: If λ is a constant that represents the average number of random events that occur in a fixed time interval (i.e. following a Poisson process) then the probability that the kth such event will occur in less than x time is given by F(x) where F is the cumulative gamma distribution function with parameters α = k and β = 1/λ.

Example

Example 1: Suppose that sending a money order is a random event and that at a particular shop someone sends a money order on average every 15 minutes. What is the probability that the shop sends a total of 10 money orders in less than 3 hours?

For this example, λ = 4 money orders per hour. Let x = the time to send 10 money orders and let F(x) be the cumulative gamma distribution function with α = k = 10 and β = 1/λ = .25. Thus

P(x<3) = F(3) = GAMMA.DIST(3, 10, .25, TRUE) = .7586

and so the probability is 75.86%.

Examples Workbook

Click here to download the Excel workbook with the examples described on this webpage.

Reference

Wikipedia (2012) Gamma distribution
https://en.wikipedia.org/wiki/Gamma_distribution

25 thoughts on “Gamma Distribution”

  1. Can I use real stats to find the threshold or location parameter as well as shape and scale when fitting the gamma distribution? This is important in material science in which a threshold minimum strength must be known.

    Reply
  2. How can I find the confidence interval for gamma distribution..what is foula for calculating confidence interval for gamma..like we can calculate CI for Poisson by χ2p,df = CHIINV(1−p,df)

    Reply
  3. Greetings All:
    Is there any way in Excel to calculate the gamma function and/or gamma distribution for negative shape parameter (alpha)? It appears that some software systems can do it (e.g. Wolfram), but I can’t find a way to do it in Excel. Any advice would be greatly appreciated.

    Reply
  4. Hi all,

    Would you mind helping me on the alpha and beta parameters calculation ?

    I have a time series that I suspect follows a Gamma distribution, but I have no clue how to calculate these two parameters.

    Thank you in advance.

    Reply
  5. If I am seeking to create a gamma distribution in Excel, how would I accomplish this? For example, I am seeing to create a set of sample data for wages (which often has a gamma type distribution). I know what the 10th, 25th, 50th, 75th and 90th percentile wages are…

    Reply
  6. Dr buenas noches, muchas gracias por su página.
    Dr,Real Statistics cuenta con la regresión de Poisson?
    Gracias

    Dr Good evening, thank you very much for your page.
    Dr, Real Statistics has the Poisson regression?
    Thank you

    Reply
  7. Why is so little emphasis placed on the Gamma distribution? Does it not play much of a role in statistics?

    It is important for population modeling and queuing theory. But I suppose these are more of mathematical models than they are statistics.

    Empirically speaking

    k=μ * lambda

    When k=1 this is the exponential distribution.

    k>=20 is essentially normal

    And k<1 suggests a branching process following a Borel distribution or a more complicated distribution that takes lifespan and age into account.

    Reply
    • Anthony,
      Thanks for your comments. The gamma distribution does play a role in statistics (esp. the exponential distribution), but not so much in the topics we have covered thus far. When I was working in a company where queueing models were used, this distribution was very important.
      Charles

      Reply

Leave a Comment