Skip to main content

Module bootstrap

Module bootstrap 

Source
Expand description

Deterministic bootstrap confidence intervals. Uses ChaCha8 (seeded) so the same (samples, seed, iterations) triple always produces the same (lo, hi). ChaCha8 is the same RNG family rand itself uses for StdRng on most platforms; the explicit choice here is so we don’t inherit a future rand default-change as a determinism break.

Functions§

bootstrap_ci
Resample samples with replacement iterations times. For each resample, compute the mean. Return the percentiles of the resampled means — the canonical non-parametric bootstrap CI of the mean.