barak.stats.poisson_confidence_interval¶
- barak.stats.poisson_confidence_interval(conf, nevents)[source]¶
Find the Poisson confidence interval.
Parameters : conf: float :
Confidence level in percent (95, 90, 68.3% or similar).
nevents: int :
The number of events observed. If 0, then return the 1-sided upper limit.
Returns : mulo, mhi : floats
The two-sided confidence interval such that for mulo, >= observed number of events occurs in fewer than conf% of cases, and for muhi, <= nevents occurs in fewer than conf% of cases.