Skip to content
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

MAINT: stats.yulesimon: fix kurtosis #20654

Merged
merged 4 commits into from
May 6, 2024
Merged

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented May 6, 2024

Reference issue

Closes gh-20648

What does this implement/fix?

Fixes a typo in the the yulesimon implementation of the kurtosis. Removed its exemption from generic kurtosis test that is sensitive to the bug. Changed the test to filter warnings rather than exempt distributions.

Additional information

The parameters chosen for the zipf distribution plot does not produce a great plot - basically just a point mass. This doesn't (/can't) make it any worse, though, and I'd rather not do a deep dive to fix that right now. (Better parameters cause warnings elsewhere.)

@mdhaber mdhaber requested a review from ev-br as a code owner May 6, 2024 16:19
@github-actions github-actions bot added scipy.stats maintenance Items related to regular maintenance tasks labels May 6, 2024
@mdhaber mdhaber requested a review from dschmitz89 May 6, 2024 16:20
@dschmitz89
Copy link
Contributor

Thanks @mdhaber !

@dschmitz89 dschmitz89 merged commit 1996658 into scipy:main May 6, 2024
@dschmitz89 dschmitz89 added this to the 1.14.0 milestone May 6, 2024
@mdhaber mdhaber modified the milestones: 1.14.0, 1.13.1 May 8, 2024
@mdhaber mdhaber added the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label May 8, 2024
@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: stats.yulesimon: incorrect kurtosis values
3 participants