Statistics Toolbox    
gamfit

Parameter estimates and confidence intervals for gamma distributed data

Syntax

Description

phat = gamfit(x) returns the maximum likelihood estimates (MLEs) for the parameters of the gamma distribution given the data in vector x.

[phat,pci] = gamfit(x) returns MLEs and 95% percent confidence intervals. The first row of pci is the lower bound of the confidence intervals; the last row is the upper bound.

[phat,pci] = gamfit(x,alpha) returns 100(1-alpha)% confidence intervals. For example, alpha = 0.01 yields 99% confidence intervals.

Example

Note that the 95% confidence intervals in the example below bracket the true parameter values of 2 and 4.

Reference

[1]  Hahn, G. J. and S.S. Shapiro. Statistical Models in Engineering. John Wiley & Sons, New York. 1994. p. 88.

See Also

gamcdf, gaminv, gamlike, gampdf, gamrnd, gamstat, betafit, binofit, expfit, normfit, poissfit, unifit, weibfit


  gamcdf gaminv