Skip to main content

clopper_pearson_lower

Function clopper_pearson_lower 

Source
pub fn clopper_pearson_lower(x: u64, n: u64, confidence: f64) -> f64
Expand description

The lower edge of the two-sided Clopper–Pearson interval on a binomial share, at confidence: the p at which P(X ≥ x) = (1 − confidence)/2, by bisection; 0 when x is 0 (C. J. Clopper and E. S. Pearson, Biometrika 26(4), 404–413, 1934). NaN, which no cell holds on, when x exceeds n or confidence isn’t strictly between 0 and 1.