Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

evaluatio.inference.ci

Bootstrap-based confidence interval estimation utilities.

This module provides functionality to estimate empirical confidence intervals using bootstrap resampling. It also defines a lightweight container for returning confidence interval results.

The implementation relies on optimized native bindings for performance.

Functions

bootstrap_confidence_interval

bootstrap_confidence_interval(x: Iterable[float], iterations: int, alpha: float) -> ConfidenceInterval

Estimate a confidence interval using bootstrap resampling

Parameters

Returns

Raises

Note

Examples

>>> from evaluatio.inference.ci import bootstrap_confidence_interval
>>> values = [0.4, 0.7, 0.5, 0.9]
>>> result = bootstrap_confidence_interval(values, 1000, 0.05)
>>> result
ConfidenceInterval(mean=0.625, lower=0.45, upper=0.8)

Classes

ConfidenceInterval

Container for confidence interval results.

Attributes