linear_pod

linear_pod(
    poi_col,
    threshold,
    xlog=False,
    ylog=False,
    n_boot=1000,
    n_jobs=None,
    progress_callback=None,
)

Runs the classical linear a-hat vs a PoD analysis with bootstrapped bounds.

Fits a straight line to the outcome against poi_col (optionally on log axes) with Gaussian residuals, computes the PoD curve on 100 points across the observed range and bootstraps confidence bounds. Uses the cleaned data and the study’s outcome column. Results are stored in linear_pod_results.

Parameters

Name Type Description Default
poi_col str The parameter of interest (e.g. defect size). required
threshold float Detection threshold on the outcome, in its original units. required
xlog bool Fit against log(poi_col). Defaults to False. False
ylog bool Fit log(outcome). Defaults to False. False
n_boot int Bootstrap iterations for the confidence bounds; 0 skips them (bounds then equal the PoD curve and a90/95 is NaN). Defaults to 1000. 1000
n_jobs int Parallel workers for the bootstrap. Defaults to None. None
progress_callback callable Called with bootstrap progress. Defaults to None. None

Returns

Name Type Description
Dict[str, Any] Dict[str, Any]: The results, also stored in linear_pod_results. Keys
Dict[str, Any] include "model", "tau" (residual std), "X_eval",
Dict[str, Any] "curves" (mean_response, pod, ci_lower, ci_upper),
Dict[str, Any] "ci_bounds" (per confidence level), "a90_95" and
Dict[str, Any] "reliability_table" (keyed by (target PoD %, confidence %)).

Raises

Name Type Description
ValueError If there is no valid data or poi_col is not a column.

Examples

res = study.linear_pod(poi_col="Length", threshold=4.0, n_boot=500)
print(res["a90_95"])