Method · Interval estimation · bootstrap_mean_diff_ciAs of 1 Dec
Bootstrap CI for a mean difference
Block-resamples baseline and window series independently (1000 replicates each), returns the percentile CI of mean(window) - mean(baseline)
WindowThe two series the caller defines as 'baseline' and 'window' — the n-of-1 experiment primitive: is this metric different in the test window than before it started, and by how much? Minimum n5 Used byexperiment_design.py (evaluate_design) — the n-of-1 pre-registered experiment analysis (#539).
Limitations
Both series need n ≥ 5 or the call returns None. Independent block-resampling means it does not account for any correlation between the baseline and window periods themselves (e.g. a slow seasonal drift spanning both).