Processing math: 100%
SciPy

This is documentation for an old release of SciPy (version 0.17.1). Search for this page in the documentation of the latest stable release (version 1.15.1).

Generalized Gamma Distribution

A general probability form that reduces to many common distributions: x>0 a>0 and c0.

f(x;a,c)=|c|xca1Γ(a)exp(xc)F(x;a,c)=Γ(a,xc)Γ(a)c>01Γ(a,xc)Γ(a)c<0G(q;a,c)={Γ1[a,Γ(a)q]}1/cc>0{Γ1[a,Γ(a)(1q)]}1/cc<0
μn=Γ(a+nc)Γ(a)
μ=Γ(a+1c)Γ(a)μ2=Γ(a+2c)Γ(a)μ2γ1=Γ(a+3c)/Γ(a)3μμ2μ3μ3/22γ2=Γ(a+4c)/Γ(a)4μμ36μ2μ2μ4μ223md=(ac1c)1/c.

Special cases are Weibull (a=1) , half-normal (a=1/2,c=2) and ordinary gamma distributions c=1. If c=1 then it is the inverted gamma distribution.

h[X]=aaΨ(a)+1cΨ(a)+logΓ(a)log|c|.

Implementation: scipy.stats.gengamma