| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
gamcdf(X,A,B)
[P,PLO,PUP] = gamcdf(X,A,B,pcov,alpha)
gamcdf(X,A,B) computes the gamma cdf at each of the values in X using the corresponding shape parameters in A and scale parameters in B. X, A, and B can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array with the same dimensions as the other inputs. The parameters in A and B must be 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].
[P,PLO,PUP] = gamcdf(X,A,B,pcov,alpha) produces confidence bounds for P when the input parameters A and B are estimates. pcov is a 2-by-2 matrix containing the covariance matrix of the estimated parameters. alpha has a default value of 0.05, and specifies 100(1-alpha)% confidence bounds. PLO and PUP are arrays of the same size as P containing the lower and upper confidence bounds.
gammainc is the gamma distribution with b fixed at 1.
a = 1:6; b = 5:10; prob = gamcdf(a.*b,a,b) prob = 0.6321 0.5940 0.5768 0.5665 0.5595 0.5543
The mean of the gamma distribution is the product of the parameters, ab. In this example, the mean approaches the median as it increases (i.e., the distribution becomes more symmetric).
cdf, gampdf, gaminv, gamstat, gamfit, gamlike, gamrnd, gamma
![]() | gagerr | gamfit | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |