bayesplain.frequentist.one_rate

bayesplain.frequentist.one_rate(events, exposure, rate0, level=0.95)[source]

Exact Poisson test and exact (Garwood) interval for one rate.

Parameters:
events : int

Events counted.

exposure : float

Exposure they were counted over.

rate0 : float

Null value for the rate, per unit of exposure.

level : float, default 0.95

Confidence level for the interval.

Returns:

The conventional result. The two-sided p-value doubles the smaller tail, which is what makes it consistent with the Garwood interval.

Return type:

FrequentistTwin