Formula Hypergeometric probability of each table with the observed margins; the two-sided p sums all tables no more probable than the observed one.
Assumptions Fixed margins (conditioning on row and column totals). Independent observations. Limitations Conservative. The sample odds ratio shown is not the conditional maximum-likelihood estimate. References Fisher RA. Statistical Methods for Research Workers. Edinburgh: Oliver and Boyd; 1925. Agresti A. Categorical Data Analysis. 3rd ed. Hoboken: Wiley; 2013. Runs in your browser with fixed formulas. No AI, no AI credits, and your inputs are not sent anywhere. This is a planning aid and not a substitute for review by a qualified statistician.