pub fn fisher_exact(
table: [[u64; 2]; 2],
alternative: Alternative,
) -> Result<TestResult, ErrorsJSL>Expand description
Fisher’s exact test for a 2 × 2 table [[a, b], [c, d]] (SciPy’s fisher_exact): the
statistic is the sample odds ratio ad / bc, and the p-value comes from the hypergeometric
distribution of a with the margins fixed; the two-sided p-value sums the probabilities of all
tables no more likely than the observed one.