stats for invgamma (Trac #1340) #1866
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
good first issue
Good topic for first contributor pull requests, with a relatively straightforward solution
Migrated from Trac
scipy.stats
Milestone
Original ticket http://projects.scipy.org/scipy/ticket/1340 on 2010-12-04 by @josef-pkt, assigned to unknown.
invgamma does not contain _stats, and no information that the moments might only exist or be finite if alpha is large enough.
From the wikipedia description
http://en.wikipedia.org/wiki/Inverse-gamma_distribution
it looks relatively easy to add explicit formulas for _stats().
parameterization alpha is a, beta is scale
incorrect skew at a=2.99 (skew requires a>3 )
incorrect variance at a=1.99 (variance requires a > 2)
The text was updated successfully, but these errors were encountered: