-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: moments for the zipf distribution #2904
Conversation
Also fix the 4th moment.
Can you copy the code for the failing expect kurtosis test in an issue? It's faster to replicate than looking at the changeset or test code. zipf.expect(... It's possible that the expect in |
expect is hitting maxcount which seems to be too low in this case, and it's not an option currently |
Here it is:
Sure, the power is low, the sum does not converge all that well. |
you did power 5 not 4 using still scipy 0.9
|
Argh.what was it about learning to copy-paste if I can't do the numbers. It's 4 in the test (common_tests.py) |
Ok |
Rebased and fixed a couple of minor PEP8/style issues at https://github.com/rgommers/scipy/compare/pr;2904. This fixes a test failure I've been seeing for weeks, so can we merge this? |
IMO, it's ready to go in. The issue with the 4th order moment is an expect problem: the convergence rate of the sum is slow. Maybe needs a Levine u-transform --- but that's a separate story. |
Also, it seems to me that gh-1329 can now be closed --- I'm not claiming there are no problems left :-), but at least all problems smoked out in there are either fixed or marked as a known failure (of which there's only a handful left.) |
looks fine to me |
OK merged in 9dd997c. Thanks Evgeni, Josef. |
Should close gh-1886.
A remaining issue is that
expect
reports the lack of convergence for small enough values ofa
. Which is a known issue (and the knownfail I'm leaving in this PR can serve as a useful smoke test if/when discreteexpect
is improved).