-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fix p value in paired T-test #99
Conversation
Thank you for you contribution! I'll take a look. |
Can you please rebase this PR with latest master (just dependabot changes) and post a full output of |
@estebanz01 Of course! I rebased, and ran the command:
Thank you, |
Thank you very much for your efforts! I'm going to release a new version later today with this fix. |
This release includes the fix reported on #99 which is another manifestation of the good ol' #23 which was fixed on #24. Thanks @ylansegal :yay:.
Thank you for making this gem available!
I believe I've found (and fixed) a bug. In the Student's T-test (Paired T-Test) wiki page, we see the following example:
Notice the
p-value
returned is greater greater than 1.If we do the same calculation in R:
The
p-value
is calculated as0.06534
.I believe the root cause is the same as what was fixed for
.perform
in #24. In this PR I use that same fix for.paired_test
and the specs corroborate the numbers in the R calculations.Assuming this is accepted, the wiki should also be changed:
Thank you!