Fisher Exact Test

Use when you must test a 2x2 contingency table with small expected counts: run the exact Fisher test under the fixed-margin null, compute the hypergeometric probability of the observed table, enumerate every table with the same margins, sum the one-tailed and two-tailed exact p-values, compute the odds ratio with the Haldane-Anscombe zero-cell correction, and return the small-expected-count verdict that recommends the exact test over the large-sample approximation. Produces p_obs, p_one_tail, p_two_tail, direction, odds ratio and the verdict. Trigger: fisher exact test, 2x2 contingency table, hypergeometric tail probability, small expected count, two by two table, odds ratio, exact independence test.

ashfordeOU Updated

File contents

ashfordeOU/aero-agent-skills/tree/main/skills/cross-cutting/numerics/fisher-exact-test commit 05efb0ca87

Frequently asked questions

npx skillmds@latest add ashfordeou/fisher-exact-test