scipy/scipy — pull request #2821 by EvgeniBurovski (2013-09-03 08:08:30+00:00)
Title: BUG: stats distributions higher moments

_this is work in progress_

Check 3rd and 4th moments for continuous distributions, `moment` vs `expect`. Fix several errors in formulas in distribution-specific `_stats` and/or `_munp`.

Addresses https://github.com/scipy/scipy/issues/1329, fixes https://github.com/scipy/scipy/issues/1866.

Only continuous distributions are tested for now.

At the moment, there are four fails left: `nct` and `ncf` (looks like an overflow is involved), `vonmises` and `kstwobign`.

Re-enabling sample tests for skew and kurtosis leads to 70+ failures.

Would appreciate any comments. (@josef-pkt: how does these tests, `check_moment` in test_continuous_basic compare to your investigations in https://github.com/scipy/scipy/issues/1329 ?)