Statistics Toolbox
  Go to function:
    Search    Help Desk 
gamcdf    Examples

Gamma cumulative distribution function (cdf).

Syntax

Description

gamcdf(X,A,B) computes the gamma cdf 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.

Parameters A and B are positive.

The gamma cdf is:


The result, p, is the probability that a single observation from a gamma distribution with parameters a and b will fall in the interval [0 x].

gammainc is the gamma distribution with a single parameter, a, with b at its default value of 1.

Examples

The mean of the gamma distribution is the product of the parameters, a*b. In this example as the mean increases, it approaches the median (i.e., the distribution gets more symmetric).



[ Previous | Help Desk | Next ]