◀ CONTENTSSTA503 · VOL.3EP.8 · Fisher exact testMISSIONS 0/3LV 10 XP
VOL.3 · EP.8 · §3.3

Fisher exact test

/StatsMadeFun/sta503/vol-3/fisher
SENSEI RANK
Exactly. That is why it is called exact.
Fisher exact test
Clinic data: did patients on a new herbal remedy recover more often than those on placebo?
FARAH
FARAH
14 patients je. Chi-square test dah complain pasal small expected counts.
SENSEI RANK
SENSEI RANK
Then do not approximate. Fix the row and column totals and ask: of all tables with these margins, how likely is one as extreme as ours?
MIKEY
MIKEY
Eh, ni hypergeometric. Macam cabut guli without replacement.
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Exactly. That is why it is called exact.
READ THE NOTES

Use it when

Comparing two independent proportions from a 2×2 table, especially with small samples where the chi-square approximation is poor.

Assumptions

  • Two independent samples; each subject classified as having the characteristic or not.
  • Margins treated as fixed.

Hypotheses

H₀: p₁ = p₂ vs H₁: p₁ > p₂ (or <, or ≠)

Test statistic

With characteristicWithoutTotal
Sample 1aA − aA
Sample 2bB − bB
Totala + bA + B

With all margins fixed, b alone determines the table.

P(b) = C(A, a)·C(B, b) / C(A + B, a + b)

Decision rule

For H₁: p₁ > p₂, small b is evidence: p-value = P(B ≤ b) = sum of P over tables at least as extreme. Reject if p ≤ α.

Some theorists say the test is only strictly valid when both margins are fixed by design. It is used widely anyway.

START THE MISSIONS
MISSION 1 OF 3

Herbal remedy

+30 XP
HOW TO PLAY

Work the procedure by hand on the data shown. Fill every box, then press CHECK. NEW DATA deals a fresh problem; SHOW SOLUTION gives the full working.

CLEARS WHENEvery box correct on one set of data.
Loading mission engine...

ALL MISSIONS IN THIS EPISODE