Fisher and Chi-Square Disagree on the Same Twenty Patients
Published 12/3/2026 · 4 min read · Health calculators
Take twenty observations arranged as 8 and 2 in the first row, 3 and 7 in the second. Pearson's chi-square returns p = 0.0246 and would be reported as significant at the conventional 5 % level; Fisher's exact test returns p = 0.0698 and would not. The chi-square statistic is an approximation that assumes the counts behave like a smooth continuous distribution, which stops being true when expected cell counts fall near five. Fisher's test does not approximate anything: it enumerates every table with the same row and column totals and adds up the probability of those at least as extreme as the one observed. With twenty subjects there are only eleven such tables, so the p-value can only take eleven values and lands where it lands.
A 2×2 table of 8, 2, 3, 7 gives p = 0.0246 by chi-square and p = 0.0698 by Fisher's exact test. One crosses the 0.05 line and the other does not.
Yates's correction overshoots as often as it helps
The classical patch for small tables is Yates's continuity correction, which subtracts half a unit before squaring and pushes the p-value up. On the 8, 2, 3, 7 table it gives 0.0722, close to Fisher's 0.0698 and clearly on the same side of the line. But on the 135-observation table it gives 0.0518 where Fisher gives 0.0389, so the correction now hides a difference the exact test declares real. Yates was designed to make the approximation conservative, and it succeeds so thoroughly that on larger tables it becomes the wrong answer. If the sample is small enough to worry about, run the exact test; if it is not, run the uncorrected chi-square.
Two-sided is not one definition
Fisher's one-sided p-value is unambiguous, but the two-sided one is not, and software differs. The method used here sums the probability of every table whose own probability is no greater than the observed table's — the minimum-likelihood method, which is what R's fisher.test does by default. Other packages double the smaller tail instead, and on an asymmetric table the two answers can differ noticeably. This is not a bug in either: a discrete distribution has no natural mirror, so the phrase two-sided has to be defined rather than assumed. Report which convention produced the number, because the reader cannot reconstruct it from the number alone.
| Table (total) | Fisher exact | Pearson chi-square |
|---|---|---|
| 8, 2 / 3, 7 (20) | 0.0698 | 0.0246 |
| 9, 1 / 4, 6 (20) | 0.0573 | 0.0191 |
| 45, 25 / 30, 35 (135) | 0.0389 | 0.0341 |
| Verdict at 5 % on row 1 | not significant | significant |
Frequently asked questions
- Is Fisher's test always the safer choice?
- Safer against false positives, not against everything. Because it conditions on both margins as if they were fixed in advance — which in most studies they were not — it is conservative: its real error rate sits below the nominal 5 %, and the price is power. On genuinely small tables that trade is worth making. On large ones it converges to the chi-square answer anyway and costs computation for nothing, and choosing a test after seeing which one crosses the threshold invalidates both. The test belongs in the analysis plan, before the data.
- What does the odds ratio add to the p-value?
- Direction and size, which the p-value carries neither of. A p-value answers how surprising the table would be if the two rows behaved identically; the odds ratio and its confidence interval answer how different they appear to be and how precisely that is pinned down. On a twenty-observation table the interval is enormous — it can easily span from below one to above ten — and reporting it is the honest way to say that the study has located a direction and almost nothing else. When any cell is zero, most software adds a half to every cell before computing the ratio, so a zero cell is also a note to read the interval rather than the point estimate.
Articles you may find interesting
All guides →Related tools
This explains how two statistical tests treat the same table. It is not medical advice, not a method for judging a treatment, and not a substitute for the analysis plan of a real study — for that, speak to a statistician or a clinician.
Sources
Spotted a mistake in this article?