Fisher Exact Test Calculator Formula
Understand the math behind the fisher exact test calculator. Each variable explained with a worked example.
Formulas Used
Odds Ratio
odds_ratio = (a * d) / max(b * c, 0.0001)Total N
n = a + b + c + dRow 1 Total
row1 = a + bRow 2 Total
row2 = c + dVariables
| Variable | Description | Default |
|---|---|---|
a | Cell a (R1,C1) | 8 |
b | Cell b (R1,C2) | 2 |
c | Cell c (R2,C1) | 3 |
d | Cell d (R2,C2) | 7 |
How It Works
Fisher Exact Test
Computes exact probability for 2x2 tables. Preferred over chi-square for small samples.
Worked Example
2x2: a=8, b=2, c=3, d=7.
a = 8b = 2c = 3d = 7
- 01OR = 56/6 = 9.33
- 02N=20
Ready to run the numbers?
Open Fisher Exact Test Calculator