Bootstrap Confidence Intervals and Hypothesis Testing — Se Yoon Lee, Ph.D.

Resample complete observational units, refit IPW, outcome-regression, and doubly robust estimators, construct bootstrap confidence intervals, and test a causal risk-difference null hypothesis. Every plot is generated in the browser from a synthetic smoking–CVD study.

Observe one dataset → resample subjects with replacement → refit the entire analysis → approximate uncertainty in the estimator.
GRADUATE-LEVEL • SELF-CONTAINED • INLINE SVG

Mathematical formulation

Nonparametric unit bootstrap, three causal estimators, confidence intervals, and bootstrap-assisted hypothesis testing.

NATIVE MATHML
Nonparametric bootstrap map
F^n=1ni=1nδOiO1*(b),,On*(b)iidF^nΔ^m*(b)

Observed unit

Oi=(Yi,Ti,Xi)

Resample the complete subject record. Never resample Y, T, and X independently.

Multiplicity representation

(N1*,,Nn*)Multinomial(n;1n,,1n)

Duplicates and omissions are expected. Approximately 63.2% of subjects are distinct in one large bootstrap sample.

Refit the full procedure

Δ^m*(b)=𝒜(O1*(b),,On*(b))

The algorithm 𝒜 includes refitting propensity and outcome models—not merely reusing original fitted predictions.

1. The observed study

Every point is one subject. Color indicates treatment; a dark ring indicates CVD.

SmokerNon-smokerCVD
Conditional on the observed study, the bootstrap treats its empirical distribution as the resampling population. It does not regenerate outcomes from the DGP.

Original point estimates

Crude, IPW, outcome regression, and doubly robust estimates before bootstrapping.

2. One bootstrap resample

Duplicates and omissions created by sampling n observed subjects with replacement.

Selected resample versus original analysis

All nuisance models are refitted inside this single resample.

3. Bootstrap distribution

Distribution of Δ̂* for the selected estimator.

original estimateDGP ATE (MC approximation)null value

4. Monte Carlo stability as B increases

Running bootstrap standard error and selected confidence-interval width.

Quantile-based endpoints usually need more repetitions than the standard error. With B bootstrap draws, the smallest centered-bootstrap p-value is approximately 1/(B+1).

5. Confidence-interval methods

Percentile and normal/Wald intervals for the selected estimator.

Truth containment can be checked only because the data are simulated. One interval either contains or misses; nominal coverage is a repeated-sampling property.

6. Hypothesis test

Bootstrap-SE Wald calibration and a null-centered bootstrap test.

7. Normal-approximation power curve

Approximate rejection probability as a function of the true risk difference, holding the current bootstrap SE fixed.

This is a local planning approximation, not a substitute for a full design simulation. The bootstrap SE itself changes with the data-generating process and sample size.

8. All adjusted methods

Original estimates and selected bootstrap intervals from the same resamples.

9. Does the bootstrap mimic repeated sampling?

Compare bootstrap errors from the observed study with estimator errors across independently generated studies from the known DGP.

Run the simulation-only comparison after completing a bootstrap.
Inspect and export numerical results
Bootstrap bIPW RDOR RDDR RD