How to Perform Bootstrapping in Excel (with Easy Steps)

Introduction to Bootstrapping

Bootstrapping is a method of constructing a confidence interval for a statistic with the following features:

  • The sample size is small.
  • The distribution is unknown.

How to Perform Bootstrapping in Excel: with Easy Steps

We have an original dataset and have to prepare some samples from this data.

Dataset bootstrapping in excel


Step 1 – Prepare the Samples

  • Go to D5 and insert the following formula
=INDEX($B$5:$B$34,ROWS($B$5:$B$34)*RAND()+1)
  • Press Enter to get the output.

Sample Preparation

Formula Breakdown

  • RAND() → Returns a random number greater than 0 and lesser than 1.
    • Output: The output will vary every time you refresh the file.
  • ROWS($B$5:$B$34) → Returns the number of rows in the given range.
    • Output: 30
  • INDEX($B$5:$B$34,ROWS($B$5:$B$34)*RAND()+1) → Returns you the result
    • Output: The output will vary every time you refresh the file.
  • Use the Fill Handle to AutoFill up to M5.

Mean bootstrapping in excel

  • AutoFill down to sample 30.

Sample


Step 2 – Calculate the Mean of Means

  • Go to N5 and use the following formula
=AVERAGE(D5:M5)
  • Press Enter to get the output.

Mean of means bootstrapping in excel

  • AutoFill the formula up to N34.

mean

  • We will calculate the mean of means with the following formula in Q4.
=AVERAGE(N5:N34)
  • Press Enter to get the output.

Cut-Off bootstrapping in excel

Read More: How to Find Mean, Median, and Mode on Excel


Step 3 – Measure the Confidence Interval

  • To calculate the cut-off value, go to Q5 and use the following formula
=Q4*0.05
  • Hit Enter.

Cut-Off

  • We have assumed a 90% confidence interval. That’s why we have multiplied the mean of means with 0.05.
  • We will calculate the lower bound in Q6 with the following formula
=PERCENTILE.EXC(D5:M34,0.05)
  • Hit Enter.

Lower Bound

  • We will calculate the upper bound in Q7:
=PERCENTILE.EXC(D5:M34,0.95)
  • Hit Enter.

bootstrapping in excel


Download the Practice Workbook


Related Articles


<< Go Back to Excel for Statistics | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo