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

Typo and result discrepancy for Mann-Whitney U #25

Open
ivanistheone opened this issue Oct 31, 2021 · 0 comments
Open

Typo and result discrepancy for Mann-Whitney U #25

ivanistheone opened this issue Oct 31, 2021 · 0 comments

Comments

@ivanistheone
Copy link

In the subsection on Mann-Whitney-U currently published version, the column y is processed using the signed_rank function, but should be just regular (unsigned) rank.

After fixing this, the p-value results were off by roughly a factor of two, which turns out is due to mannwhitneyu using a one-sided test in the old version of scipy that is currently pinned. In latest version of scipy, the default has changed to two-sided and now results are matching the LM (and also matching R's output for the same data).

I will be opening a PR shortly with these fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant