barak.stats.poisson_min_max_limits¶
- barak.stats.poisson_min_max_limits(conf, nevents)[source]¶
Calculate the minimum and maximum mean Poisson value mu consistent with seeing nevents at a given confidence level.
- conf: float
- 95%, 90%, 68.3% or similar.
- nevents: int
- The number of events observed.
Returns : mulo, mhi : 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)