Tutorials › High-Dimensional Genomic Data Analysis › Bootstrap and Resampling Corrections for Selection

Replication, Validation and the Winner's Curse · Tutorial 381 of 795

Bootstrap and Resampling Corrections for Selection

You will learn how to reproduce a genomic selection rule in bootstrap samples, estimate the resulting effect inflation, and evaluate whether a correction is stable and appropriate.

Advanced 11 min read

What You'll Learn

  • Define a selection rule precisely before estimating selection-induced bias.
  • Derive the conditional mean inflation for a normally distributed association estimate.
  • Use a parametric bootstrap to estimate and subtract selection bias.
  • Distinguish bootstrap Monte Carlo error from the variability of corrected estimates.
  • Use resampling diagnostics and repeated simulations to assess correction performance.
  • Recognize when a bootstrap cannot represent the original selection process.

Why Resampling Must Reproduce Selection

An association estimate reported because it passed a significance threshold is not an ordinary draw from its sampling distribution: it is a draw that also satisfied a selection rule. Even when the estimate is unbiased before selection, conditioning on that rule can make reported effects too large in magnitude. A bootstrap correction aims to estimate this inflation and subtract it. Its central requirement is therefore not merely to generate plausible data, but to reproduce the process that made an estimate eligible to be reported.

The correction depends on the selection rule, the model used to generate bootstrap data, and the statistic being corrected. A threshold on a one-sided test, a threshold on an absolute test statistic, and selection of the largest signal among many variants are different procedures. They generally produce different selection biases.

Definition: Let \(\hat{\beta}\) be an effect estimate for a true effect \(\beta\), and let \(S\) denote the event that the result is selected for reporting. The selection bias in the estimate, conditional on selection, is \(E(\hat{\beta}\mid S)-\beta\). A bootstrap correction estimates this bias under a specified data-generating model and selection rule, then subtracts the estimated bias from the observed estimate.

In the simple summary-statistic model used below, \(\hat{\beta}\mid\beta\sim N(\beta,SE^2)\), where the standard error is treated as known. This is an approximation; more complex analyses may require a model for the original genotypes and outcomes, or for a vector of correlated association estimates. The assumptions of the chosen bootstrap model must be plausible for the data and the analysis pipeline.

A Normal-Model Derivation of Selection Inflation

Suppose selection requires a positive standardized statistic exceeding a fixed threshold \(c\): \(S=\{\hat{\beta}/SE>c\}\). This is equivalent to \(\hat{\beta}>cSE\). Under the normal model, write \(Z=(\hat{\beta}-\beta)/SE\), so \(Z\sim N(0,1)\). Selection is then \(Z>a\), where \(a=c-\beta/SE\). The conditional mean of a standard normal variable above \(a\) follows directly by integrating its density:

$$ E(Z\mid Z>a) =\frac{\int_a^\infty z\phi(z)\,dz}{1-\Phi(a)} =\frac{\phi(a)}{1-\Phi(a)}. $$

Here \(\phi\) and \(\Phi\) are the standard normal density and cumulative distribution function. The integral equality uses \(\phi'(z)=-z\phi(z)\), so \(\int_a^\infty z\phi(z)\,dz=\phi(a)\). Since \(\hat{\beta}=\beta+SE\,Z\), the conditional mean and its inflation are

$$ E(\hat{\beta}\mid S) =\beta+SE\frac{\phi(a)}{1-\Phi(a)}, \qquad E(\hat{\beta}\mid S)-\beta =SE\frac{\phi(a)}{1-\Phi(a)}. $$

The inflation depends on the true effect relative to its standard error, as well as on the threshold. This formula describes a simple one-sided rule. For a two-sided rule, selection is \(|\hat{\beta}/SE|>c\); for selecting the largest statistic among many variants, the relevant event also depends on the joint distribution of those statistics. A correction must use the rule that was actually applied.

Worked Example: Calculating Inflation Under a One-Sided Threshold

Suppose a hypothetical association estimate has true effect \(\beta=0.10\) units and \(SE=0.05\) units. A result is selected when \(Z=\hat{\beta}/SE>2\). Under the normal model, calculate the conditional mean among selected estimates.

Here \(c=2\), so \(a=c-\beta/SE=2-(0.10/0.05)=0\). Since \(\phi(0)=0.3989\) and \(1-\Phi(0)=0.5\), the conditional selection bias is

$$ 0.05\frac{0.3989}{0.5} =0.05(0.7978) =0.03989\text{ units}. $$

Thus \(E(\hat{\beta}\mid S)=0.10+0.03989=0.1399\) units. The estimate is unbiased before selection under this model, but estimates that pass the threshold average about \(0.03989\) units above the true effect. This is an expectation across repeated selected estimates, not a prediction that every selected estimate is inflated by that amount.

Parametric Bootstrap Correction

A parametric bootstrap specifies a distribution for the data or estimate, generates bootstrap replicates under fitted parameter values, and reapplies the selection procedure to each replicate. In the summary-statistic model, a simple plug-in procedure uses the observed estimate as the generating mean. If \(B\) simulated estimates pass the rule, their average estimates the expected selected estimate under that plug-in model. Subtracting the generating mean estimates the selection bias.

$$ \widehat{\operatorname{Bias}}_{\mathrm{boot}} =\frac{1}{B}\sum_{b=1}^{B}\hat{\beta}^{*(b)}-\hat{\beta}_{\mathrm{gen}}, \qquad \hat{\beta}_{\mathrm{corr}} =\hat{\beta}_{\mathrm{obs}}-\widehat{\operatorname{Bias}}_{\mathrm{boot}}. $$

In these expressions, \(\hat{\beta}^{*(b)}\) is the estimate from bootstrap replicate \(b\) that satisfies the selection rule, and \(\hat{\beta}_{\mathrm{gen}}\) is the parameter value used to generate replicates. The rule is applied before calculating the average; averaging all replicates instead would estimate an unconditional mean and would not estimate the bias among selected results. A bootstrap replicate that does not pass the rule is not included in this conditional average, though the selection rate should also be recorded.

This plug-in correction is not guaranteed to remove all bias. In particular, the observed estimate is itself selected, so using it as the generating mean can yield an imperfect estimate of the unknown true effect. Other approaches can fit the distribution conditional on selection or use an external estimate to set the generating parameter. The bootstrap remains a way to quantify the effect of a specified model and rule; it does not make the unknown parameter known.

Worked Example: A Plug-In Parametric Bootstrap

Suppose a hypothetical observed association estimate is \(0.15\) units with \(SE=0.05\) units. The reporting rule is \(\hat{\beta}/SE>2\), or \(\hat{\beta}>0.10\) units. Generate bootstrap estimates from \(N(0.15,0.05^2)\), retaining only estimates that pass the same threshold. For illustration, assume ten retained estimates are \(0.105, 0.118, 0.132, 0.146, 0.155, 0.161, 0.173, 0.184, 0.201,\) and \(0.224\) units.

Their sum is \(1.599\) units, so their mean is \(1.599/10=0.1599\) units. The estimated selection bias relative to the generating value is \(0.1599-0.15=0.0099\) units. The resulting corrected estimate is \(0.15-0.0099=0.1401\) units.

The ten replicates are a small illustrative bootstrap, not a reliable final analysis. Their sample standard deviation is approximately \(0.0370\) units, giving a Monte Carlo standard error for their mean of \(0.0370/\sqrt{10}=0.0117\) units. That Monte Carlo error is large relative to the estimated bias of \(0.0099\) units. More replicates would reduce simulation noise, but would not eliminate errors caused by an unsuitable generating model or plug-in value.

Resampling the Analysis Pipeline and Assessing Performance

When individual-level data are available, a nonparametric bootstrap can resample individuals, usually with replacement, and rerun the association analysis. For each replicate, the analyst should repeat every step that contributes to selection: relevant filtering, model fitting, test-statistic calculation, and application of the reporting rule. If the rule selects the strongest result across variants, the resampled pipeline should select across the same set of variants rather than treating the winning variant as if it had been specified in advance.

Resampling estimates the behavior of the analysis under the empirical distribution represented by the observed sample. It is not interchangeable with a parametric bootstrap: a parametric bootstrap relies on a specified probability model, while a nonparametric bootstrap resamples the observed units. Neither automatically recreates features missing from its inputs. For example, resampling only a reported significant locus cannot reveal how the full set of tested loci competed for selection. With correlated variants, a summary-statistic simulation should also preserve the relevant dependence rather than generating independent statistics without justification.

Correction quality should be assessed for both bias and variability. Bias is the average corrected estimate minus the true effect across repeated datasets generated under a specified scenario. Variability describes the spread of corrected estimates across those datasets. A correction can reduce average inflation while increasing variability; reporting only a single corrected estimate cannot show this trade-off. In simulation, compare raw and corrected estimates across many independently generated datasets, and vary effect sizes, standard errors, thresholds, and dependence structures that are relevant to the intended use.

Worked Example: Comparing Bias and Variability Across Replications

Consider a hypothetical evaluation in which the true effect is \(0.10\) units and the selection threshold is \(\hat{\beta}/SE>2\), with \(SE=0.05\) units. Five independently generated datasets each produce a selected raw estimate and a bootstrap-corrected estimate. The results are:

ReplicationRaw selected estimate (units)Corrected estimate (units)
10.160.12
20.140.11
30.180.14
40.120.10
50.150.13

The raw estimates sum to \(0.75\) units, so their mean is \(0.75/5=0.15\) units and their average deviation from the true effect is \(0.15-0.10=0.05\) units. The corrected estimates sum to \(0.60\) units, giving a mean of \(0.60/5=0.12\) units and an average deviation of \(0.12-0.10=0.02\) units. In this small hypothetical set, correction reduces average inflation. The corrected estimates have sample standard deviation \(0.01581\) units: their squared deviations from \(0.12\) sum to \(0.0010\), and \(\sqrt{0.0010/4}=0.01581\).

Five replications are far too few to establish reliable performance. The calculation illustrates what to compare; a useful evaluation would use many more independently generated datasets and report Monte Carlo uncertainty as well. It should also check whether correction changes variability, not merely whether the mean moves closer to the truth.

Diagnostics, Alternatives, and Limitations

Before interpreting a bootstrap correction, check that the analysis being simulated matches the analysis that generated the result. Verify the scale and direction of the effect, the standard error model, the significance threshold, whether the test is one- or two-sided, and whether selection was based on a single locus or a search over many loci. For resampling of individuals, confirm that the resampling unit matches the sampling design; for example, dependent observations should not be treated as independent individuals. For a parametric model, compare simulated distributions and selection rates with defensible features of the observed data.

  • Few selected replicates: a small retained fraction can make the conditional mean noisy. Increase the number of generated replicates or use a simulation strategy suited to rare selection, and report how many pass the rule.
  • Correction changes sharply with the generating value: this indicates sensitivity to plug-in assumptions. Evaluate plausible parameter values rather than presenting one correction as certain.
  • Selection is not reproduced: a bootstrap that simulates an estimate but omits the threshold or genome-wide winner rule estimates the wrong quantity.
  • Unrealistic independence: independently simulated variant statistics can misrepresent selection when variants are correlated. Model or resample the relevant joint structure.
  • Unstable corrected estimates: large variation across bootstrap runs or across datasets signals that the correction may be too uncertain for precise interpretation.

Conditional likelihood under a specified selection event is a model-based alternative for estimating an effect from selected data; the earlier material on conditional likelihood develops that approach. The truncated-normal calculation above is another direct option when its normal model and threshold assumptions apply. Bootstrap methods are useful when the complete selection pipeline is easier to simulate than to handle analytically, but they inherit the assumptions and omissions of that simulation. They do not replace independent replication, and a bias-corrected discovery estimate should not be interpreted as if it were an independently observed effect.

Common pitfall: “The bootstrap mean is above the observed estimate, so subtract the difference,” without checking which replicates were selected or how they were generated. This is not a valid selection correction unless the bootstrap reproduces the data-generating assumptions and the actual selection rule. Generate under an explicit model, apply the same rule, estimate the conditional bias relative to the generating value, and assess the correction's uncertainty and sensitivity.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. Under a one-sided rule \(Z>c\), what event on \(\hat{\beta}\) is equivalent to selection when \(SE\) is fixed?
  2. Why must a bootstrap apply the selection rule before averaging retained estimates?
  3. A bootstrap correction is \(0.02\) units, but its estimated Monte Carlo standard error is \(0.03\) units. What does this imply?
  4. Why may resampling only a genome-wide significant locus fail to represent selection among all tested loci?

Solutions. (1) Since \(Z=\hat{\beta}/SE\), the rule is \(\hat{\beta}>cSE\). (2) The target is the mean estimate conditional on passing selection; averaging all replicates estimates an unconditional mean instead. (3) The simulated bias estimate is imprecise relative to its size, so the correction should not be treated as stable; more replicates can reduce Monte Carlo error, though not model error. (4) The locus was already selected from a broader search, but resampling it alone does not reproduce the competition or winner-selection step across that search.

Clinical Biostats