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

Yates correction for chi-square tests #194

Open
luc-j-bourhis opened this issue Apr 20, 2020 · 0 comments · May be fixed by #286
Open

Yates correction for chi-square tests #194

luc-j-bourhis opened this issue Apr 20, 2020 · 0 comments · May be fixed by #286

Comments

@luc-j-bourhis
Copy link

Consider the following test on a 2x2 contingency table

using HypothesisTests
ct = [8 404; 12 212]
ChisqTest(ct)

It will give a one-sided p-value of 0.0184. But it is quite popular to apply the so-called Yates correction for a small table, which would result in 0.03404 instead. The competition provides that option: Scipy's stats.chi2_contingency and R's chisq.test makes it the default actually.

@ArunS-tack ArunS-tack linked a pull request Feb 28, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant