bootstrap_linear_pod_ci

bootstrap_linear_pod_ci(
    X,
    y,
    X_eval,
    threshold,
    xlog=False,
    ylog=False,
    n_boot=1000,
    n_jobs=None,
    confidence_levels=None,
    progress_callback=None,
)

Estimates Confidence Bounds for the classical linear PoD curve via Bootstrapping. Maintains the strict assumptions of constant variance and normally distributed errors.

Parameters

Name Type Description Default
X np.ndarray The parameter of interest values. required
y np.ndarray The signal responses. required
X_eval np.ndarray The grid of points the PoD curve is evaluated at. required
threshold float The detection threshold. required
xlog bool Fit against log(X). Defaults to False. False
ylog bool Fit log(y). Defaults to False. False
n_boot int Number of bootstrap iterations. Defaults to 1000. 1000
n_jobs int | None Worker processes; None or 1 runs sequentially, -1 uses all cores but two. Defaults to None. None
confidence_levels list | None Confidence levels in percent (e.g. [90, 95]). Defaults to None (95% bounds only). None
progress_callback callable Called as callback(completed, total) after each chunk of iterations. Defaults to None. None

Returns

Name Type Description
Tuple[np.ndarray, np.ndarray] | dict tuple[np.ndarray, np.ndarray] | dict: (lower, upper) 95% bounds at X_eval
Tuple[np.ndarray, np.ndarray] | dict if confidence_levels is None, otherwise {level: (lower, upper)}.