Skip to main content

wilson_interval

Function wilson_interval 

Source
pub fn wilson_interval(count: f64, n: f64) -> Option<(f64, f64)>
Expand description

The 95% Wilson score interval for count of n: where the whole’s rate likely sits, given a simple random sample. Unlike the normal interval it stays inside 0 to 1 and does not shrink to nothing at a count of zero, which a thin sample often has.