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 c≠0.
f(x;a,c)=|c|xca−1Γ(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)(1−q)]}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μμ3−6μ2μ2−μ4μ22−3md=(ac−1c)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]=a−aΨ(a)+1cΨ(a)+logΓ(a)−log|c|.
Implementation: scipy.stats.gengamma