Analyze · Resampling

Bootstrap Confidence Interval

Non-parametric bootstrap confidence interval for a chosen statistic (mean, median, SD, correlation, or regression slope) with a bias-corrected accelerated (BCa) interval and a bootstrap-distributio...

In the menus Analyze › Resampling › Bootstrap Confidence Interval

Also searched as bootstrap bootstrapping resampling bootstrap ci resample

When to use it

Put a confidence interval on a statistic when you do not trust a textbook formula (a skewed mean, a median, an SD, a correlation, or a regression slope) by resampling your data with replacement.

When not to: Rows that are not independent draws (repeated measures, clustered data, or a time series) need a block or cluster bootstrap, which this function does not perform. It also cannot rescue a sample that is not representative of the population you care about (a biased convenience sample resampled many times is still biased), and with very small n (under roughly 20) the interval can be misleadingly narrow because the resamples cannot explore values never observed in the original sample.

Step by step

  1. Open it from the menu

    Click Analyze in the menu bar; under Resampling choose Bootstrap Confidence Interval.

  2. Fill in the form

    Choose the columns: Columns to resample. The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Statistic, Confidence level, Interval method, Bootstrap resamples, Random seed. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Bootstrap Confidence Interval form
Columns to resample Columns requiredOne numeric column. One numeric column for mean / median / SD; two numeric columns (x then y) for correlation or regression slope.
StatisticWhich statistic to bootstrap a confidence interval for. Default: mean.
Confidence levelCoverage of the interval (e.g. 0.95 for a 95% CI). Default: 0.95.
Interval methodBCa (bias-corrected accelerated), percentile, or basic. Default: BCa.
Bootstrap resamplesNumber of bootstrap resamples (more = smoother, slower). Default: 9999.
Random seedSeed for reproducible resampling. Default: 42.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

What it assumes

Independence of observations

If it does not hold: Correlated rows (a time series, clustered data, repeated measures on the same unit) make ordinary case resampling treat dependent observations as if they were independent draws, so the reported interval is too narrow.

How to check: Not checked by KernelStats: the engine always performs ordinary (i.i.d.) case resampling; there is no block or cluster bootstrap option, so the dependence structure must be recognized by the analyst before trusting the interval.

A worked example

A 95% BCa bootstrap interval for the median body mass of 68 Chinstrap penguins, using 9999 resamples with seed 42.

Result: Point estimate (median) = 3700 g, bootstrap SE = 58 g, 95% BCa CI [3575, 3800] g.

The median plausibly lies between about 3.58 kg and 3.80 kg; because the interval was built without assuming a normal shape for body mass, it is trustworthy even though the median (unlike the mean) has no simple textbook formula for its standard error.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • What is a 95% confidence interval for the median body mass of these penguins, without assuming normality?
  • Explain the bootstrap confidence interval in plain words.
  • What does confidence interval mean?

Last reviewed November 16, 2026.

Report an unclear step