Function Reference: gamstat

statistics: [m, v] = gamstat (k, theta)

Compute statistics of the Gamma distribution.

[m, v] = gamstat (k, theta) returns the mean and variance of the Gamma distribution with with shape parameter k and scale parameter theta.

The size of m (mean) and v (variance) is the common size of the input arguments. A scalar input functions as a constant matrix of the same size as the other inputs.

There are two equivalent parameterizations in common use:

  1. With a shape parameter k and a scale parameter θ, which is used by gamrnd.
  2. With a shape parameter α = k and an inverse scale parameter β = 1 / θ, called a rate parameter.

Further information about the Gamma distribution can be found at https://en.wikipedia.org/wiki/Gamma_distribution

See also: gamcdf, gaminv, gampdf, gamrnd, gamfit, gamlike

Source Code: gamstat