## Gamma Distribution

One of the continuous random variable and continuous distribution is the Gamma distribution, As we know the continuous random variable deals with the continuous values or intervals so is the Gamma distribution with specific probability density function and probability mass function, in the successive discussion we discuss in detail the concept, properties and results with examples of gamma random variable and gamma distribution.

**Topics on Gamma Distribution**

## Gamma random variable or Gamma distribution | what is gamma distribution | define gamma distribution | gamma distribution density function | gamma distribution probability density function | gamma distribution proof

A continuous random variable with probability density function

is known to be Gamma random variable or Gamma distribution where the α>0, λ>0 and the gamma function

we have the very frequent property of gamma function by integration by parts as

If we continue the process starting from n then

and lastly the value of gamma of one will be

thus the value will be

## cdf of gamma distribution | cumulative gamma distribution | integration of gamma distribution

The cumulative distribution function(cdf) of gamma random variable or simply the distribution function of gamma random variable is same as that of continuous random variable provided the probability density function is different i.e

here the probability density function is as defined above for the gamma distribution, the cumulative distribution function we can write also as

in both of the above formats the value of pdf is as follows

where the α >0, λ>0 are real numbers.

## Gamma distribution formula | formula for gamma distribution | gamma distribution equation | gamma distribution derivation

To find the probability for the gamma random variable the probability density function we have to use for different given α >0 , λ >0 is as

and using the above pdf the distribution for the gamma random variable we can obtain by

Thus the gamma distribution formula require the pdf value and the limits for the gamma random variable as per the requirement.

## Gamma distribution example

show that the total probability for the gamma distribution is one with the given probability density function i.e

for λ >0, α>0.**Solution:**

using the formula for the gamma distribution

since the probability density function for the gamma distribution is

which is zero for all the value less than zero so the probability will be now

using the definition of gamma function

and substitution we get

thus

## Gamma distribution mean and variance | expectation and variance of gamma distribution | expected value and variance of gamma distribution | Mean of gamma distribution | expected value of gamma distribution | expectation of gamma distribution

In the following discussion we will find the mean and variance for the gamma distribution with the help of standard definitions of expectation and variance of continuous random variables,

The expected value or mean of the continuous random variable X with probability density function

or Gamma random variable X will be

## mean of gamma distribution proof | expected value of gamma distribution proof

To obtain the expected value or mean of gamma distribution we will follow the gamma function definition and property,

first by the definition of expectation of continuous random variable and probability density function of gamma random variable we have

by cancelling the common factor and using the definition of gamma function

now as we have the property of gamma function

the value of expectation will be

thus the mean or expected value of gamma random variable or gamma distribution we get is

## variance of gamma distribution | variance of a gamma distribution

The variance for the gamma random variable with the given probability density function

or variance of the gamma distribution will be

## variance of gamma distribution proof

As we know that the variance is the difference of the expected values as

for the gamma distribution we already have the value of mean

now first let us calculate the value of E[X^{2}], so by definition of expectation for the continuous random variable we have

since the function f(x) is the probability distribution function of gamma distribution as

so the integral will be from zero to infinity only

so by definition of the gamma function we can write

Thus using the property of the gamma function we got the value as

Now putting the value of these expectation in

thus, the value of variance of gamma distribution or gamma random variable is

Gamma distribution parameters | two parameter gamma distribution | 2 variable gamma distribution

The Gamma distribution with the parameters λ>0, α>0 and the probability density function

has statistical parameters mean and variance as

and

since λ is positive real number, to simplify and easy handling another way is to set λ=1/β so this gives the probability density function in the form

in brief the distribution function or cumulative distribution function for this density we can express as

this gamma density function gives the mean and variance as

and

which is obvious by the substitution.

Both the way are commonly used either the gamma distribution with the parameter α and λ denoted by **gamma** (α, λ) or the gamma distribution with the parameters β and λ denoted by **gamma** (β, λ) with the respective statistical parameters mean and variance in each of the form.

Both are nothing but the same.

## Gamma distribution plot | gamma distribution graph| gamma distribution histogram

The nature of the gamma distribution we can easily visualize with the help of graph for some of specific values of the parameters, here we draw the plots for the probability density function and cumulative density function for some values of parameters

let us take probability density function as

then cumulative distribution function will be

Description: graphs for the probability density function and cumulative distribution function by fixing the value of alpha as 1 and varying the value of beta.

Description: graphs for the probability density function and cumulative distribution function by fixing the value of alpha as 2 and varying the value of beta

Description: graphs for the probability density function and cumulative distribution function by fixing the value of alpha as 3 and varying the value of beta

Description: graphs for the probability density function and cumulative distribution function by fixing the value of beta as 1 and varying the value of alpha

Description: graphs for the probability density function and cumulative distribution function by fixing the value of beta as 2 and varying the value of alpha

Description: graphs for the probability density function and cumulative distribution function by fixing the value of beta as 3 and varying the value of alpha.

In general different curves as for alpha varying is

## Gamma distribution table | standard gamma distribution table

The numerical value of gamma function

known as incomplete gamma function numerical values as follows

The gamma distribution numerical value for sketching the plot for the probability density function and cumulative distribution function for some initial values are as follows

1x | f(x),α=1,β=1 | f(x),α=2,β=2 | f(x),α=3,β=3 | P(x),α=1,β=1 | P(x),α=2,β=2 | P(x),α=3,β=3 |

0 | 1 | 0 | 0 | 0 | 0 | 0 |

0.1 | 0.904837418 | 0.02378073561 | 1.791140927E-4 | 0.09516258196 | 0.001209104274 | 6.020557215E-6 |

0.2 | 0.8187307531 | 0.0452418709 | 6.929681371E-4 | 0.1812692469 | 0.00467884016 | 4.697822176E-5 |

0.3 | 0.7408182207 | 0.06455309823 | 0.001508062363 | 0.2591817793 | 0.01018582711 | 1.546530703E-4 |

0.4 | 0.670320046 | 0.08187307531 | 0.00259310613 | 0.329679954 | 0.01752309631 | 3.575866931E-4 |

0.5 | 0.6065306597 | 0.09735009788 | 0.003918896875 | 0.3934693403 | 0.02649902116 | 6.812970042E-4 |

0.6 | 0.5488116361 | 0.1111227331 | 0.005458205021 | 0.4511883639 | 0.03693631311 | 0.001148481245 |

0.7 | 0.4965853038 | 0.1233204157 | 0.007185664583 | 0.5034146962 | 0.04867107888 | 0.001779207768 |

0.8 | 0.4493289641 | 0.1340640092 | 0.009077669195 | 0.5506710359 | 0.06155193555 | 0.002591097152 |

0.9 | 0.4065696597 | 0.1434663341 | 0.01111227331 | 0.5934303403 | 0.07543918015 | 0.003599493183 |

1 | 0.3678794412 | 0.1516326649 | 0.01326909834 | 0.6321205588 | 0.09020401043 | 0.004817624203 |

1.1 | 0.3328710837 | 0.1586611979 | 0.01552924352 | 0.6671289163 | 0.1057277939 | 0.006256755309 |

1.2 | 0.3011942119 | 0.1646434908 | 0.01787520123 | 0.6988057881 | 0.1219013822 | 0.007926331867 |

1.3 | 0.272531793 | 0.1696648775 | 0.0202907766 | 0.727468207 | 0.1386244683 | 0.00983411477 |

1.4 | 0.2465969639 | 0.1738048563 | 0.02276101124 | 0.7534030361 | 0.1558049836 | 0.01198630787 |

1.5 | 0.2231301601 | 0.1771374573 | 0.02527211082 | 0.7768698399 | 0.1733585327 | 0.01438767797 |

1.6 | 0.201896518 | 0.1797315857 | 0.02781137633 | 0.798103482 | 0.1912078646 | 0.01704166775 |

1.7 | 0.1826835241 | 0.1816513461 | 0.03036713894 | 0.8173164759 | 0.2092823759 | 0.01995050206 |

1.8 | 0.1652988882 | 0.1829563469 | 0.03292869817 | 0.8347011118 | 0.2275176465 | 0.02311528775 |

1.9 | 0.1495686192 | 0.1837019861 | 0.03548626327 | 0.8504313808 | 0.2458550043 | 0.02653610761 |

2 | 0.1353352832 | 0.1839397206 | 0.03803089771 | 0.8646647168 | 0.2642411177 | 0.03021210849 |

2.1 | 0.1224564283 | 0.1837173183 | 0.04055446648 | 0.8775435717 | 0.2826276143 | 0.03414158413 |

2.2 | 0.1108031584 | 0.183079096 | 0.04304958625 | 0.8891968416 | 0.3009707242 | 0.03832205271 |

2.3 | 0.1002588437 | 0.1820661424 | 0.04550957811 | 0.8997411563 | 0.3192309458 | 0.04275032971 |

2.4 | 0.09071795329 | 0.1807165272 | 0.04792842284 | 0.9092820467 | 0.3373727338 | 0.04742259607 |

2.5 | 0.08208499862 | 0.179065498 | 0.05030071858 | 0.9179150014 | 0.3553642071 | 0.052334462 |

2.6 | 0.07427357821 | 0.1771456655 | 0.05262164073 | 0.9257264218 | 0.373176876 | 0.05748102674 |

2.7 | 0.06720551274 | 0.1749871759 | 0.05488690407 | 0.9327944873 | 0.3907853875 | 0.0628569343 |

2.8 | 0.06081006263 | 0.1726178748 | 0.05709272688 | 0.9391899374 | 0.4081672865 | 0.06845642568 |

2.9 | 0.05502322006 | 0.1700634589 | 0.05923579709 | 0.9449767799 | 0.4253027942 | 0.07427338744 |

3 | 0.04978706837 | 0.1673476201 | 0.0613132402 | 0.9502129316 | 0.4421745996 | 0.08030139707 |

## finding alpha and beta for gamma distribution | how to calculate alpha and beta for gamma distribution | gamma distribution parameter estimation

For a gamma distribution finding alpha and beta we will take mean and variance of the gamma distribution

and

now we will get value of beta as

so

and

thus

only taking some fractions from the gamma distribution we will get the value of alpha and beta.

## gamma distribution problems and solutions | gamma distribution example problems | gamma distribution tutorial | gamma distribution question

1. Consider the time require to resolve the problem for a customer is gamma distributed in hours with the mean 1.5 and variance 0.75 what would be the probability that the problem resolving time exceed 2 hours, if time exceeds 2 hours what would be the probability that the problem will resolved in at least 5 hours.

**solution**: since the random variable is gamma distributed with mean 1.5 and variance 0.75 so we can find the values of alpha and beta and with the help of these values the probability will be

P(X>2)=13e^{-4}=0.2381

and

P(X>5 | X>2)=(61/13)e^{-6}=0.011631

2. If the negative feedback in week from the users is modelled in gamma distribution with parameters alpha 2 and beta as 4 after the 12 week negative feedback came after restructuring the quality, from this information can restructuring improves the performance ?

**solution**: As this is modelled in gamma distribution with α=2, β=4

we will find the mean and standard deviation as μ =E(x)=α * β=4 * 2=8

since the value X=12 is within the standard deviation from the mean so we can not say this is improvement or not by the restructuring the quality, to prove the improvement caused by the restructuring information given is insufficient.

3. Let X be the gamma distribution with parameters α=1/2, λ=1/2 , find the probability density function for the function Y=Square root of X

**Solution**: let us calculate the cumulative distribution function for Y as

now differentiating this with respect to y gives the probability density function for Y as

and the range for y will be from 0 to infinity

Conclusion:

The concept of gamma distribution in probability and statistic is the one of the important day to day applicable distribution of exponential family, all the basic to higher level concept were discussed so far related to gamma distribution, if you require further reading, please go through mentioned books. You can also visit out mathematics page for more Topic

https://en.wikipedia.org/wiki/Gamma_distribution

A first course in probability by Sheldon Ross

Schaum’s Outlines of Probability and Statistics

An introduction to probability and statistics by ROHATGI and SALEH

- COVARIANCE, VARIANCE OF SUMS AND THEIR 5 IMPORTANT PROPERTIES
- Conditional variance and predictions | Its Important Properties with 5+ Example
- Mathematical Expectation and random variable | Its 5 Important Properties
- Conditional Distribution | Its 5 Important Properties
- Jointly Distributed Random Variables | Its Important Properties & 5 Examples