BinomialCI

class coba.results.BinomialCI

Calculate the mean and interval of a binomial.

Constructors

__init__(method: Literal['wilson', 'clopper-pearson'])

Instantiate a BinomialCI.

Parameters:

method – The method to calculate the Binomial confidence interval

Methods

point(sample: Sequence[float]) float

Calculate point estimate of a statistic.

Parameters:

sample – Sample to calculate a statistic for.

Returns:

A point estimate of a statistic.

point_interval(sample: Sequence[float]) Tuple[float, Tuple[float, float]]

Calculate a point estimate and a confidence interval.

Parameters:

sample – Sample to calculate a statistic and its confidence interval.

Returns:

A point estimate of a statistic along with a hi/lo confidence interval.

The lo and hi values should be the size of the plotted error bars.