- Introduced by
- Bradley Efron (bootstrap); missing-data extensions by Efron, Little, Rubin and others
- Year
- 1979–1990s
- Type
- Resampling simulation
- Family
- Bayesian / computational
What does it do?
Bootstrap simulation with missing data estimates standard errors and confidence intervals by resampling the observed dataset and repeating the missing-data treatment inside every resample.
Rather than deleting incomplete cases, the method imputes or weights anew in each replicate, so the spread of the bootstrap estimates includes the uncertainty that missing values add. It can be applied to any estimator that can be computed on a completed dataset.
The intuition behind the method
Standard bootstrap draws repeated samples from the observed data and measures how much an estimate varies across those draws. When data are missing, simply ignoring incomplete rows discards information and can introduce bias. By imputing missing values anew within each bootstrap replicate, or by using inverse-probability weights derived from the observed data, the bootstrap loop captures two sources of variability simultaneously: the sampling variability and the imputation uncertainty. The resulting intervals reflect both sources, provided the missing-data model is appropriate for the missingness mechanism.
History
The bootstrap was introduced by Efron as a general resampling method for estimating standard errors, and Efron and Tibshirani (1993) give a full treatment. Its use with missing data draws on the missing-data framework of Little and Rubin, whose third edition (2019) is cited on this page and classifies missingness mechanisms and sets out the principles of imputation. Placing imputation inside each bootstrap replicate is a practical combination of these ideas rather than a result established in the cited sources. Its variance properties depend on the imputer used and should be checked by simulation.
When to use it
Choose this method when you need standard errors or confidence intervals for an estimator under MAR missingness, and either no analytic variance formula is available or you want one resampling framework that covers both sampling and imputation uncertainty. It suits estimators such as regression coefficients, mediation effects and quantiles, where the bootstrap is already a standard tool. Do not use it as a remedy for MNAR: without an explicit sensitivity model, resampling cannot remove bias caused by non-ignorable missingness. It is also weak when the imputation model is poorly specified or a large share of values is missing, because the bootstrap distribution then becomes highly variable.
Limitations and considerations
- Cost scales with B: each replicate requires a full imputation fit, so total runtime is roughly B times the cost of one imputation.
- If the missing fraction is high and the imputation model is misspecified, the bootstrap variance can be too small, because the model error in the imputed values is not reproduced by resampling.
- The method does not correct bias from MNAR missingness; a correctly specified sensitivity model is needed for that.
- Each replicate must contain enough complete observations to fit the imputation model. With few complete cases, the imputer can fail or become unstable.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Imputation uncertainty enters the bootstrap distribution directly, so the interval does not require a separate pooling step such as Rubin's rules.
- Applies to estimators without closed-form standard errors, such as quantiles or indirect effects in mediation models, provided each can be computed on a completed dataset.
- The imputation engine can be changed inside the loop (for example chained equations or predictive mean matching) without altering the resampling logic.
- BCa intervals correct for bias and skewness in the bootstrap distribution, whereas simple normal intervals assume symmetry.
- Implementable with standard tools: the mice and boot packages in R, or a scikit-learn imputer placed inside a custom bootstrap loop in Python.
Applications
- Clinical trials with intermittent missing outcomes, where confidence intervals for treatment effects are needed without relying on parametric distributional assumptions.
- Survey analyses with item non-response that is plausibly MAR and where the estimator has no simple variance formula; the resampling scheme must respect the survey design.
- Mediation analysis with missing mediators or outcomes, where the indirect effect has no simple closed-form standard error.
- Machine learning pipelines that need uncertainty estimates when training data contain missing features.
- Cohort studies with dropout that is plausibly MAR, where the uncertainty from imputing missing follow-up data should be carried into hazard ratio intervals.
How it works
How it works
Classify the missing-data mechanism as MCAR, MAR, or MNAR, because this determines which imputation or weighting strategy is valid, as set out in Little and Rubin (2019). Under MCAR, complete-case analysis is unbiased for means and regression slopes, though less efficient. Under MAR, the imputation model must include the variables that predict missingness. Under MNAR, the observed data cannot identify the mechanism, so sensitivity analyses are required.
Choose a missing-data strategy compatible with the mechanism. Common options are: (a) within-bootstrap imputation, in which each replicate is used to fit an imputation model (for example predictive mean matching or chained equations) and fill in the missing values; (b) proper multiple imputation combined with the bootstrap; or (c) inverse-probability weighting, in which observed cases are weighted by the reciprocal of their estimated probability of being observed, obtained from a propensity model.
Draw B bootstrap samples with replacement from the observed dataset, typically with B between 1000 and 2000. Each replicate has the same size as the original sample. Incomplete rows stay in the resampling pool, so each replicate reproduces the observed missingness pattern.
Within each bootstrap replicate, apply the chosen imputation or weighting strategy, then compute the statistic of interest on the completed replicate. The bootstrap distribution of the estimator is intended to reflect both sampling and imputation uncertainty. Whether it does so for a given imputer should be checked by simulation, since this within-replicate design is a practical approach rather than a result established in the cited sources.
Formula
\hat{\theta}^* = T(X^*_{\text{imp}})Use the standard deviation of the B replicate estimates as the bootstrap standard error, and percentile or BCa (bias-corrected and accelerated) intervals for confidence limits. If multiple imputation is used inside each replicate, state which variance is reported. Either Rubin's rules are applied within each replicate before the bootstrap summary, or the bootstrap variance is reported as the total variance. These are different procedures and their results should not be mixed. As a default, report Rubin's rules where the estimator has a standard pooling formula, as described in Little and Rubin (2019); where it does not, report the bootstrap total variance. State in the output which of the two was used.
Formula
\text{SE}(\hat{\theta}) \approx \text{SD}(\hat{\theta}^*_1, \ldots, \hat{\theta}^*_B)Common pitfalls
- Imputing the full dataset once before bootstrapping, rather than inside each replicate, treats imputed values as observed and understates uncertainty.
- Forming the bootstrap sample by listwise deletion and imputing afterwards discards rows before resampling, so the original missingness pattern is no longer reproduced.
- Using fewer than about 500 replicates gives unstable standard errors, particularly for percentile limits in the tails.
- Applying a method valid only under MCAR when MAR or MNAR holds produces biased estimates, and the bootstrap does not detect this.
- Using iterative imputers without checking convergence and imputation diagnostics within each replicate can silently produce unreliable completed datasets.
- Resampling individual rows from clustered or stratified data ignores the design; the resampling scheme should follow the clusters or strata where they exist.
- Running the replicates without a minimum number of complete cases set in advance can cause the imputer to fail or become unstable in some replicates. Set the minimum before resampling and check how often it is reached.
Frequently asked questions
Should I impute before or inside the bootstrap loop?
Inside the loop. Imputing once on the full dataset and then bootstrapping treats imputed values as known, which understates variance. Imputing anew within each replicate reflects the additional uncertainty due to missing data.
How many bootstrap replicates do I need?
Use B between 1000 and 2000. For standard errors, 1000 replicates is a common minimum; for 95% percentile or BCa intervals, 2000 is the common minimum. Where imputation is expensive, 500 is a pragmatic floor, below which standard errors and interval limits become unstable. In either case, check that the standard error and interval limits are stable as replicates are added.
Is this the same as multiple imputation with Rubin's rules?
They address the same problem by different routes. Rubin's rules pool m imputed datasets analytically and require a proper imputation model. The bootstrap-within-imputation approach estimates total variance by resampling, which can be preferable for estimators without simple pooling formulas. Neither is uniformly better.
Can I use this when data are MNAR?
Not without an explicit sensitivity model for the missingness mechanism. Under MNAR, the probability of being missing depends on the unobserved value itself, so no resampling scheme can recover unbiased inference without additional assumptions. Pattern-mixture or selection models should be used alongside bootstrap variance estimation.
What software implements this?
In R, the mice package can be run inside a bootstrap loop built with boot. In Python, an imputer from scikit-learn can be placed inside a custom bootstrap loop. Neither tool enforces the bootstrap-inside-imputation design, so the loop structure must be checked manually.
Related methods
Sources
Efron, B. & Tibshirani, R. J. (1993). An Introduction to the Bootstrap. Chapman and Hall/CRC.
ISBN: 978-0412042317Little, R. J. A. & Rubin, D. B. (2019). Statistical Analysis with Missing Data (3rd ed.). Wiley.
ISBN: 978-0470526798