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:
- bias
float Half-width of the bias band in units of the standard deviation of the draws.
- se_ratio
tupleoffloat Band for the mean reported standard error over the standard deviation of the draws.
- coverage
tupleoffloat Band for the coverage of the nominal 95% interval.
- minimum_draws
int The fewest draws at which the bands are calibrated. Below it a reading prints at
L1.
- bias