Bootstrap Resampling from One Sample

The bootstrap treats the observed sample as a small empirical population. To create one bootstrap sample, draw observations from the original data with replacement until the bootstrap sample has the same size as the original. Replacement allows an observation to appear several times while another may not appear at all.


For each bootstrap sample, calculate the statistic of interest, such as a mean, median, or slope. Repeating the process BB times produces bootstrap replicates θ^1∗,…,θ^B∗\hat{\theta}_1^*,\ldots,\hat{\theta}_B^*.


Their distribution approximates how the original statistic θ^\hat{\theta} would vary across repeated samples from the population. A common estimate of standard error is

sboot=∑b=1B(θ^b∗−θˉ∗)2B−1,s_{\mathrm{boot}}=\sqrt{\frac{\sum_{b=1}^{B}(\hat{\theta}_b^*-\bar{\theta}^*)^2}{B-1}},

where θˉ∗\bar{\theta}^* is the mean of the replicate statistics. Estimated bootstrap bias is θˉ∗−θ^\bar{\theta}^*-\hat{\theta}.

Ten replicate means from same-size resamples

Ten replicate means from same-size resamples

A small worked example

Suppose the observed sample is {4,7,11}\{4,7,11\}. Valid bootstrap samples include {4,4,11}\{4,4,11\} and {7,11,11}\{7,11,11\}; each has three entries drawn only from the original sample. Their means are 19/319/3 and 29/329/3, respectively. In practice, two replicates are far too few: software usually creates hundreds or thousands, calculates the statistic for each, and summarizes the resulting empirical distribution.

Bootstrap workflow from one observed sample to repeated same-size resamples and an empirical distribution of replicate statistics.

Bootstrap workflow from one observed sample to repeated same-size resamples and an empirical distribution of replicate statistics.


The bootstrap works best when the original observations reasonably represent the population and are independent under the study design. Resampling cannot invent population features absent from the data, and a tiny or strongly biased original sample remains a weak foundation.


For dependent data, such as a time series, independently resampling single observations may destroy the dependence structure and a specialized resampling scheme is needed.


A common mistake is to sample without replacement. That merely rearranges the original observations, so a statistic such as the mean never changes and its estimated standard error becomes zero. Another mistake is to change the bootstrap sample size; the ordinary nonparametric bootstrap uses the original size nn on every replicate.

An observed sample is {3,5,8,9}\{3,5,8,9\}. Following the workflow in the figure, which is a valid ordinary bootstrap sample?

Bootstrap workflow from one observed sample to repeated same-size resamples and an empirical distribution of replicate statistics.

Bootstrap workflow from one observed sample to repeated same-size resamples and an empirical distribution of replicate statistics.

Ten replicate means from same-size resamples

Ten replicate means from same-size resamples

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A sample contains three distinct labelled observations. How many different ordered bootstrap samples of size 33 are possible?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Why do repeated values in bootstrap samples help estimate the sampling variability of a statistic?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors