Quick definition: Resampling is a class of computational methods that repeatedly rearranges or redraws observed data to approximate uncertainty, sampling distributions, or null distributions. Bootstrap and permutation methods are common examples.
What is Resampling?
Resampling is a class of computational methods that repeatedly rearranges or redraws observed data to approximate uncertainty, sampling distributions, or null distributions. Bootstrap and permutation methods are common examples. In experimentation, its value comes from matching the method to a predeclared estimand: the population, randomization unit, outcome, comparison, and time window that the product decision actually concerns. A named test cannot substitute for that design work.
Reliable analysis begins before the statistic is calculated. Define eligible users, stabilize treatment assignment, log exposure, preserve a consistent denominator, and wait for outcomes to mature. Check allocation and data quality; a sample ratio mismatch can undermine a randomized comparison even when a calculation is numerically correct.
How Resampling works
A nonparametric bootstrap samples analysis units with replacement from each observed group, recomputes the statistic many times, and uses the resulting distribution for standard errors or intervals. A permutation test keeps observed outcomes fixed but repeatedly shuffles treatment labels according to the null randomization mechanism; the fraction of shuffled statistics as extreme as observed is a p-value. The correct resampling unit is the unit randomized, such as user, household, store, or cluster—not necessarily the raw event row.
The calculation should be reproducible from a frozen analysis dataset. Retain assignment, eligibility, exposure, outcome timestamps, exclusions, and aggregation rules. Do not change the analysis population after a result appears attractive. For a clear discussion of planned outcomes and decisions, see how to write an A/B-test hypothesis.
Assumptions and boundaries
Bootstrap inference assumes the observed empirical distribution is a useful stand-in for the population and that sampled units are independent at the resampling level. It can struggle with tiny samples, extreme heavy tails, unstable ratios, boundary estimates, and complex selection rules. Permutation tests rely on exchangeability under the sharp null and on reproducing the actual assignment design, including stratification or blocks. Neither technique fixes biased exposure logs or outcome definitions.
Assumptions should be examined against the experiment architecture rather than treated as a ceremonial checklist. Inspect group sizes, missingness, outcome distributions, dependence, and implementation changes. If the needed assumptions fail, revise the design or use a method that represents the data-generating process; do not simply choose the test that produces the smallest p-value.
Resampling in A/B testing
Resampling is useful when an analytic standard error is awkward: medians, percentile metrics, revenue differences with robust estimators, or complex funnels. In an A/B test, aggregate events to a user-level outcome first, resample users within assignment arms for a bootstrap interval, and preserve clusters or paired structures where relevant. For a randomization test, shuffle labels within the original randomization strata and retain arm sizes. Predeclare the statistic and number of replicates sufficiently large for stable quantiles.
Keep one primary outcome and distinguish secondary outcomes, diagnostics, and guardrails. A favorable result on one metric does not erase increased latency, refunds, or support burden. The discipline behind that separation is explained in primary and guardrail metrics. When several variants, metrics, or segments are compared, plan the comparison family and control the resulting false-positive risk as described in multiple comparisons in A/B testing.
Worked example and workflow
A retailer compares 14-day revenue per randomized user; the metric contains many zeros and a few high orders. It calculates treatment minus control mean revenue, then performs 10,000 user-level stratified bootstrap replications. The 2.5th and 97.5th percentiles of the replicated differences form a percentile interval, supplemented by an influence and tail analysis. If stores rather than users were randomized, resampling individual users would badly overstate precision; stores must be resampled or modeled as clusters.
A practical workflow is: write the estimand and decision threshold; select the analysis unit and method; calculate sample size and a fixed or sequential monitoring plan; validate assignment and tracking; freeze the dataset after the outcome window; estimate effect size and uncertainty; review guardrails; and document the action and limits. Planning duration from baseline rate, variability, minimum detectable effect, power, and traffic prevents a test from being treated as an open-ended search; see how to calculate sample size.
Interpreting the result
Report the statistic, resampling scheme, analysis unit, number of draws, interval type, random seed or reproducibility approach, and limitations. A bootstrap interval describes sampling uncertainty conditional on the observed sample and method; it is not evidence that the metric is causal unless the experiment and data are valid. A permutation p-value is evidence against the stated sharp null, not a probability that the null is true.
Use interval estimates to communicate what remains plausible. A confidence interval that crosses zero does not prove no effect, and a narrow interval around a tiny gain may not pay for rollout. Frequentist interval interpretation is often misunderstood; confidence intervals in A/B testing explains the distinction between procedure coverage and a probability statement about one fixed parameter.
Common pitfalls
- Resampling event rows when users or clusters were randomized.
- Using a bootstrap for a statistic with unstable denominators without diagnostics.
- Forgetting strata, blocks, pairing, or treatment allocation in permutations.
- Treating more replications as a cure for a small biased sample.
- Selecting the resampling statistic after examining many favorable metrics.
Also avoid peeking and stopping because a transient result is favorable. Fixed-horizon thresholds assume the stopping rule that was planned. If continuous monitoring is needed, use a validated sequential procedure with predeclared looks and boundaries. Otherwise, wait for the planned horizon and present the full analysis rather than a selected dashboard snapshot.
Decision workflow and reporting checklist
Start with the decision that the analysis will inform. State whether the team is choosing a default experience, deciding whether to invest in another iteration, or determining that the expected benefit is too uncertain to justify further traffic. Translate that action into a minimum useful effect and a maximum tolerable loss in original business units. A threshold is not a statistical convention: it should reflect expected reach, user impact, engineering cost, reversibility, and the availability of safer alternatives.
Before analysis, version the metric definition and preserve the raw ingredients needed to reproduce it. Confirm that each included unit was eligible before treatment, assigned only once according to the intended allocation, exposed as defined, and observed for the complete outcome window. Compare arm sizes and key pre-treatment diagnostics. If implementation, logging, or allocation differs by arm, report the issue and resolve it before interpreting an estimated effect. Excluding problematic records only from one arm can create a more serious bias than ordinary random noise.
After estimating the primary result, make the uncertainty visible. Present arm-level values, the absolute difference, a compatible interval or posterior distribution, and the exact decision rule. Explain how missing values, outliers, repeated measurements, clustering, and concurrent experiments were handled. Review prespecified guardrails on the same mature population, while keeping exploratory slices clearly labeled. If important conclusions depend on modeling choices, show sensitivity analyses rather than one preferred output.
Finally, separate evidence from action. A result may support a full rollout, a gradual reversible release, additional data, a redesign, or no action. Record the chosen action, assumptions, and follow-up monitoring so later teams can learn whether the experimental estimate generalized. This closes the experimentation loop without overstating what a single analysis can establish.
Frequently asked questions about Resampling
Is bootstrap the same as permutation testing?
No. Bootstrap redraws observations to estimate sampling variability; permutation shuffles assignments to generate a null distribution.
How many bootstrap samples are enough?
Often thousands to tens of thousands, but check stability of the interval endpoints for the required precision.
Can I bootstrap conversion rate?
Yes, at the randomized-user level, though standard proportion methods may be simpler for a basic two-arm metric.
Can resampling handle clusters?
Yes, resample whole clusters or use a method designed for the clustered assignment structure.
Does resampling remove distributional assumptions?
It reduces reliance on a parametric outcome distribution but still has design, independence, and representativeness assumptions.
Summary
Resampling is useful when its estimand, mechanics, assumptions, and decision rule match the experiment. Treat the reported statistic as one part of an evidence package: absolute effect, uncertainty, data-quality checks, guardrails, practical value, and a transparent rollout policy. Sound randomization and measurement are more important than a sophisticated formula.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods
- OpenIntro Statistics
- Gelman et al., Bayesian Data Analysis