bundles / scipy latest / scipy / stats / _continuous_distns / gamma_gen
class
scipy.stats._continuous_distns:gamma_gen
Signature
class gamma_gen ( momtype = 1 , a = None , b = None , xtol = 1e-14 , badvalue = None , name = None , longname = None , shapes = None , seed = None ) Members
Summary
A gamma continuous random variable.
Extended Summary
%(before_notes)s
Notes
The probability density function for gamma is:
for , . Here refers to the gamma function.
gamma takes a as a shape parameter for .
When is an integer, gamma reduces to the Erlang distribution, and when to the exponential distribution.
Gamma distributions are sometimes parameterized with two variables, with a probability density function of:
Note that this parameterization is equivalent to the above, with scale = 1 / beta.
%(after_notes)s
%(example)s
See also
- erlang
- expon
Aliases
-
scipy.stats._continuous_distns.gamma_gen