These tests are based on data collected in the form of a contingency table of 2 features (, ), each of which has possible categories and (look at the table(\ref{tab_kontyngencji_obser})).
The Chi-square test with the Yate's correction for continuity
The test with the Yate's correction (Frank Yates (1934)1)) is a more conservative test than the Chi-square test (it rejects a null hypothesis more rarely than the test). The correction for continuity guarantees the possibility of taking in all the values of real numbers by a test statistic, according to the distribution assumption.
The test statistic is defined by:
The Fisher test for (2×2) tables
The Fisher test for tables is also called the Fisher exact test (R. A. Fisher (1934)2), (1935)3)). This test enables you to calculate the exact probability of the occurrence of the particular number distribution in a table (knowing and defined marginal sums.
If you know each marginal sum, you can calculate the probability for various configurations of observed frequencies. The exact significance level is the sum of probabilities which are less or equal to the analysed probability.
The mid-p is the Fisher exact test correction. This modified p-value is recommended by many statisticians (Lancaster 19614), Anscombe 19815), Pratt and Gibbons 19816), Plackett 19847), Miettinen 19858) and Barnard 19899), Rothman 200810)) as a method used in decreasing the Fisher exact test conservatism. As a result, using the mid-p the null hypothesis is rejected much more qucikly than by using the Fisher exact test. For large samples a p-value is calculated by using the test with the Yate's correction and the Fisher test gives quite similar results. But a p-value of the test without any correction corresponds with the mid-p.
The p-value of the mid-p is calculated by the transformation of the probability value for the Fisher exact test. The one-sided p-value is calculated by using the following formula:
where:
– one-sided p-value of mid-p,
– one-sided p-value of Fisher exact test,
and the two-sided p-value is defined as a doubled value of the smaller one-sided probability:
where:
– two-sided p-value of mid-p.
The settings window with the chi-square test and its corrections
can be opened in Statistics
menu → NonParametric tests
→Chi-square, Fisher, OR/RR
or in ''Wizard''.