The bootstrap uses resampling to approximate a statistic’s sampling distribution (Efron 1979).
The bootstrap uses resampling to approximate a statistic’s sampling distribution (Efron 1979). For a clustered design, the resampling unit must preserve the dependence relevant to that statistic.
The binomial model fails when multiple responses share an independently sampled prompt family, when grades depend on a shared batch, or when outcomes have different fixed success probabilities across intentionally oversampled strata. The right replacement depends on the design.
Suppose the release team samples customer accounts and retains every eligible conversation from each sampled account. The pooled conversation mean is a ratio, total passes divided by total conversations. Resampling accounts with replacement and recomputing that ratio in each replicate preserves the account structure. Averaging the account means equally gives a different target. For instance, if one account contributes one conversation and passes, and another contributes nine with none passing, the average account score is 50% and the conversation score is 10%.
A percentile bootstrap draws many resamples and uses quantiles of the statistic. With 5,000 replicates, a 2.5% endpoint is near the 125th ordered statistic. More replicates reduce numerical variation in that endpoint. They cannot compensate for too few independent accounts. Report the number of accounts and examine whether one large account drives the effect. With very few clusters, redesign the sample or use inference grounded in a credible model for the cluster outcomes.
For paired model comparisons, carry both model outputs together in every resample. If the sample was stratified, preserve the stratum structure and apply the fixed target weights in each replicate. If clusters cross strata, independently resampling each stratum can break the cluster dependence. Define the resampling unit at the level actually drawn and carry its full contribution through the estimator.
Continue with the book
Explore the full treatment, worked examples, and exercises in Statistical Foundations for LLM Development and Evaluation.
Companion article for Statistical Foundations for LLM Development and Evaluation, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
