PointAndInterval

class coba.results.PointAndInterval

Calculate a point estimate and a confidence interval.

Methods

abstract 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.

abstract 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.