Paired statistics#
Paired statistical tests for model-comparison experiments.
Functions
Estimate a paired bootstrap CI for metric(A) - metric(B). |
|
Run a paired randomisation test by swapping model labels per observation. |
|
Return standardised paired loss difference for log loss or Brier score. |
|
Apply Holm's step-down correction and return adjusted p-values. |
|
Compare every pair of named probability predictions with paired tests. |
- paired_bootstrap_difference(y_true, p_a, p_b, metric, n_boot=2000, confidence=0.95, rng=None, chunk_size=256)[source]#
Estimate a paired bootstrap CI for metric(A) - metric(B).
- paired_permutation_test(y_true, p_a, p_b, metric, n_permutations=5000, rng=None)[source]#
Run a paired randomisation test by swapping model labels per observation.
- paired_effect_size(y_true, p_a, p_b, metric)[source]#
Return standardised paired loss difference for log loss or Brier score.