Back to Inference: Hypothesis Testing and Beyond

Bootstrap — Inference Without Distributional Assumptions

The single most powerful tool for non-parametric inference. Works on anything where formulas don't exist. FIND_VIDEO: search 'bootstrap statistics tutorial' — recommended channel: StatQuest. Aim for 11 min or under.

9 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.

Ready to continue?

Mark this lesson as complete when you're ready to proceed.

Key moments

  1. Problem: Small Sample InferenceThe initial experiment shows a mean improvement of 0.5, but repeating the experiment to check significance is too expensive.
  2. Introducing BootstrappingBootstrapping is introduced as a less expensive, time-saving alternative to experimental replication.
  3. Creating a Bootstrapped SetA bootstrapped data set is created by sampling from the original data with replacement until the new set has the same size.
  4. The Four StepsBootstrapping consists of creating a sample, calculating a statistic, tracking the result, and repeating the process many times.
  5. Interpreting the HistogramThe resulting histogram shows the likelihood of different statistic values if the experiment were repeated thousands of times.
  6. Standard Error and CIThe standard deviation of the distribution is the Standard Error, and the 95% Confidence Interval covers 95% of the bootstrapped means.
  7. Flexibility of StatisticsBootstrapping is powerful because it can be applied to any statistic, such as the median or standard deviation, without needing a specific formula.
PDF notes

Frequently asked questions

Why do we sample with replacement?

Sampling with replacement allows the creation of many unique datasets from a small original sample. This simulates the variability expected if the experiment were truly repeated.

How many times should I bootstrap?

A computer is typically used to bootstrap thousands of times, often 10,000, to accurately estimate the full distribution of the statistic.

Can bootstrapping be used for hypothesis testing?

Yes, if the confidence interval covers the null hypothesis value (e.g., zero), you cannot reject the null hypothesis.

What is the primary advantage of bootstrapping?

It can be applied to any statistic to generate a distribution and confidence interval. This works regardless of whether a simple formula exists or if the data is normally distributed.