given the mean number of events per unit time (๐œ†):

Probability Density Function #1

  • ๐‘“(๐‘ฅ) = (๐œ†๐›ผ/๐›ค(๐›ผ))ยท๐‘ฅ๐›ผ-1ยท๐‘’-๐œ†๐‘ฅ# for ๐‘ฅ > 0

where:

  • ๐›ผ - number of events
  • ๐œ† - number of events per unit time
  • ๐›ค(๐›ผ) = gamma functionย = (๐›ผ - 1)!

special cases of a Gamma Distribution:

  • Gamma(๐›ผ=1, ๐œ†) = Exponential(๐œ†)
  • Gamma(๐›ผ>0, ๐œ†=1/2) = Chi-Square(2๐›ผ)

Probability Density Function #2

  • ๐‘“(๐‘ฅ) = [1/(๐›ค(๐›ผ)๐œ†๐›ผ)]ยท๐‘ฅ๐›ผ-1ยท๐‘’-๐‘ฅ/๐œ†# for ๐‘ฅ > 0

Expectation

๐„[๐‘‹]ย = ๐›ผ/๐œ†

Variance

๐‘‰๐‘Ž๐‘Ÿ(๐‘‹) = ๐›ผ/๐œ†2

Cumulative Distribution Function (CDF)

Moment-Generating Function

When the PDF of gamma variable ๐‘‹ is:

  • ๐‘“(๐‘ฅ) = [1/(๐›ค(๐›ผ)๐œ†๐›ผ)]ยท๐‘ฅ๐›ผ-1ยท๐‘’-๐‘ฅ/๐œ†# for ๐‘ฅ > 0

Then the moment-generating function of ๐‘‹ is:

See: Moment-Generating Function - Gamma Distribution

Example 1

Users visit a certain internet site at the average rate of 12 hits per minute. Every sixth visitor receives some promotion that comes in a form of a flashing banner. Then the time between consecutive promotions has Gamma distribution with parameters ๐›ผ = 6 andย ๐œ†ย = 12

Example 2

Compilation of a computer program consists of 3 blocks that are processed sequentially, one after another. Each block takes Exponential time with the mean of 5 minutes, independently of other blocks

  • ๐›ผ = 3
  • ๐œ†ย = 1/5

Compute the expectation and variance of the total compilation time

Compute the probability for the entire program to be compiled in less than 12 minutes

Subpages