|
Brighton Webs Ltd. Data & Analysis Services for Industry & Education
|
|||||||||||||||||||||
|
Home Index Feedback |
Gamma Distribution The gamma distribution represents the sum of n exponentially distributed random variables. Both the shape and scale parameters can have non-integer values. Typically, the gamma distribution is defined in terms of a scale factor and a shape factor. When used to describe the sum of a series of exponentially distributed variables, the shape factor represents the number of variables and the scale factor is the mean of the exponential distribution. This is apparent when the profile of an exponential distribution with mean set to one is compared to a gamma distribution with a shape factor of one and a mean of one. Special cases of the gamma distribution include:
Applications Applications of the gamma distribution can be broadly put under two headings:
As with any distribution, it is important to check its "fitness for purpose". Profile
Parameters
Range The range is from zero to infinity. Functions
Properties Example The example below shows a simple model of insurance claims. The average claim from from a given type of policy is $1,000 with a standard deviation of $250. Using the matching moments formulas to estimate the parameters yields:
The probability density of the distribution is shown below: Parameters of this model are:
For this type of application, the parameters of the distribution should be determined by some form of curve fitting exercise with an acceptable quality of fit. The second example uses the gamma distribution as a model for the August rainfall at Kew. The fit is significant at the 10%, which would make it a reasonable model for many applications, however, it does underestimate the number of months with low rainfall. Random Number Generation For integer values of shape factor, the gamma distribution is the sum of "shape" exponential distributions with mean equal to the scale factor. Because the sum of log values, is equivalent to the log of their product, the formula can be simplified as shown in the pseudo basic style code shown below.
As there is no inverse probability function for the gamma distribution, some form of numerical technique has to be used. On possibility is the method described in the section on non-uniform random number generation. Parameter Estimation The matching moment equations are obtained by rearranging and substituting variables in the equations for mean and variance: Page Updated: 17-Nov-2004 | |||||||||||||||||||||
|
For more information: info@brighton-webs.co.uk |
||||||||||||||||||||||