Resampling
Resampling methods answer statistical questions by letting a computer repeat an experiment thousands of times instead of relying on a formula derived under strict assumptions. If you can describe how your data could have arisen, you can simulate it, and the spread of the simulated results tells you how much your estimate might move.
This section covers three families of technique:
- The bootstrap treats your sample as a stand-in for the population and draws new samples from it with replacement. The variation across those resamples estimates a standard error or confidence interval for almost any statistic, including medians and standard deviations, where textbook formulas are awkward or unavailable.
- Permutation tests shuffle group labels to build the distribution a test statistic would have if there were no real difference. The p-value is simply the share of shuffles that look at least as extreme as the data you observed.
- Monte Carlo simulation generates data from a model you specify, which is useful for checking power, testing whether a method behaves as claimed, or building intuition about sampling variability.
These methods are not magic: they inherit the quality of the sample they start from, and small samples still give unstable answers. Each tool here states its assumptions and shows the simulated distribution, so you can see what the computer did rather than taking a single number on trust.