Table of Contents
Bootstrapping is a statistical method used to estimate the accuracy of a sample statistic by creating a large number of samples from a single dataset. In Excel, bootstrapping can be performed by using the “Data Analysis” tool, which allows users to generate multiple random samples from a given dataset.
One example of how bootstrapping can be used in Excel is to estimate the mean of a population when the sample size is small. By generating multiple samples from the original dataset and calculating the means of each sample, a distribution of means can be created. This distribution can then be used to estimate the confidence interval for the population mean and provide a more accurate representation of the true population mean. This method is particularly useful when the sample size is small and a traditional statistical test may not be applicable.
Perform Bootstrapping in Excel (With Example)
Bootstrapping is a method that can be used to construct a confidence interval for a when the sample size is small and the underlying distribution is unknown.
The basic process for bootstrapping is as follows:
- Take k repeated samples with replacement from a given dataset.
- For each sample, calculate the statistic you’re interested in.
- This results in k different estimates for a given statistic, which you can then use to calculate a confidence interval for the statistic.
The following step-by-step example shows how to perform bootstrapping in Excel.
Step 1: Enter the Original Data
First, we’ll enter the values for some dataset:

Step 2: Generate Bootstrap Samples
Next, we’ll use the following formula to generate bootstrap samples:
=INDEX($A$2:$A$16, RANDBETWEEN(1, ROWS($A$2:$A$16)),1)
We can type this formula into cell D2 to randomly select one value from the original dataset.
We can then drag this formula to the right for 10 cells to generate our first bootstrapped sample.
We can then drag this formula down 300 rows to create 300 bootstrapped samples:

Note: Bootstrapping uses , which means that one value from the original dataset may appear multiple times in any given sample.
Step 3: Calculate Statistic of Interest for Each Sample
Next, we can calculate the statistic of interest for each sample.
For this particular example, we’ll calculate the median value for each sample:

We can see:
- The first bootstrapped sample has a median value of 14.
- The second bootstrapped sample has a median value of 16.
- The third bootstrapped sample has a median value of 13.5.
And so on.
Step 4: Calculate Bootstrapped Confidence Interval
Lastly, we can calculate a 95% bootstrapped confidence interval for the median by finding the value located at percentile 2.5% and percentile 97.5% in column N.
We can use the following formulas to do so:
=PERCENTILE(N2:N301, 0.025) =PERCENTILE(N2:N301, 0.975)
The following screenshot shows how to use these formulas in practice:

From the output we can see that the 95% bootstrapped confidence interval for the median value of the original dataset is [10.475, 19.7625].
Note that in this example we chose to generate 300 bootstrapped samples each with a sample size of n=10, but you can generate as many bootstrapped samples as you’d like.
When using statistical software, it’s common to generate thousands of bootstrapped samples which can then be used to construct a confidence interval.
Additional Resources
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I perform bootstrapping in Excel, and what is an example of how it can be used?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-perform-bootstrapping-in-excel-and-what-is-an-example-of-how-it-can-be-used/
stats writer. "How can I perform bootstrapping in Excel, and what is an example of how it can be used?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-perform-bootstrapping-in-excel-and-what-is-an-example-of-how-it-can-be-used/.
stats writer. "How can I perform bootstrapping in Excel, and what is an example of how it can be used?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-perform-bootstrapping-in-excel-and-what-is-an-example-of-how-it-can-be-used/.
stats writer (2024) 'How can I perform bootstrapping in Excel, and what is an example of how it can be used?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-perform-bootstrapping-in-excel-and-what-is-an-example-of-how-it-can-be-used/.
[1] stats writer, "How can I perform bootstrapping in Excel, and what is an example of how it can be used?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I perform bootstrapping in Excel, and what is an example of how it can be used?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
