barak.stats.binomial_min_max_limits¶
- barak.stats.binomial_min_max_limits(conf, ntrial, nsuccess)[source]¶
Calculate the minimum and maximum binomial probability consistent with seeing nsuccess from ntrial at a given confidence level.
- conf: float
- 95%, 90%, 68.3% or similar.
- ntrial, nsuccess: int
- The number of trials and successes.
Returns : plo, phi : floats
Mean number of events such that >= observed number of events nevents occurs in fewer than conf% of cases (mulo), and mean number of events such that <= nevents occurs in fewer than conf% of cases (muhi)