cleverly.validation.EquivalenceBands#

class cleverly.validation.EquivalenceBands(bias: float = 0.2, se_ratio: tuple[float, float] = (0.85, 1.15), coverage: tuple[float, float] = (0.88, 0.99), minimum_draws: int = 400)[source]#

The equivalence bands of the generated-outcome and plasmode readings.

An exact reference fixes the sampling law of each reading, and it does not make an exact null true: no finite-sample estimator has bias exactly zero or a standard-error ratio exactly one. A reading therefore passes when its 95% interval lies inside its band.

Parameters:
biasfloat

Half-width of the bias band in units of the standard deviation of the draws.

se_ratiotuple of float

Band for the mean reported standard error over the standard deviation of the draws.

coveragetuple of float

Band for the coverage of the nominal 95% interval.

minimum_drawsint

The fewest draws at which the bands are calibrated. Below it a reading prints at L1.

Methods#

Attributes#

EquivalenceBands.bias: float = 0.2#
EquivalenceBands.coverage: tuple[float, float] = (0.88, 0.99)#
EquivalenceBands.minimum_draws: int = 400#
EquivalenceBands.se_ratio: tuple[float, float] = (0.85, 1.15)#