Statistics Toolbox
  Go to function:
    Search    Help Desk 
gampdf    Examples

Gamma probability density function (pdf).

Syntax

Description

gampdf(X,A,B) computes the gamma pdf with parameters A and B at the values in X. The arguments X, A and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments.

The parameters A and B must both be positive and X must lie on the interval
[0 ).

The gamma pdf is:


Gamma probability density function is useful in reliability models of lifetimes. The gamma distribution is more flexible than the exponential in that the probability of surviving an additional period may depend on age. Special cases of the gamma function are the exponential and 2 functions.

Examples

The exponential distribution is a special case of the gamma distribution.



[ Previous | Help Desk | Next ]