Skip to main content

binomtest

Function binomtest 

Source
pub fn binomtest(
    k: u64,
    n: u64,
    p: f64,
    alternative: Alternative,
) -> Result<TestResult, ErrorsJSL>
Expand description

The exact binomial test of k successes in n trials against success probability p (SciPy’s binomtest); the two-sided p-value sums the probabilities of all outcomes no more likely than k. The statistic is k / n.