Home / Science / Maths, statistics and computing / Statistics / Bootstrap and permutation test toolTool #562

Bootstrap confidence interval and permutation test calculator (BCa, percentile, seeded)

Bootstrap confidence intervals (percentile and BCa) for a mean, median, standard deviation, correlation or difference, and permutation tests for two groups, paired data and correlations. Seeded so results repeat, with histograms. Matches scipy.

Keep it one tap away for everyday use.

Bookmark Bootstrap and permutation test tool?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Paste data
  2. Resamples
  3. Interval, p
Nothing is uploadedWorks offline once open

Your data

The same data, seed and number of resamples always give the same answer. A new seed shows how much the result moves by chance; more resamples make it steadier.

What it does

The bootstrap gives a confidence interval for almost any statistic without formulas or a normal distribution: it resamples your own data thousands of times and looks at how much the statistic moves. A permutation test gives a p-value the same way: it shuffles the data as if there were no effect and counts how often the shuffled result is at least as extreme as yours. This tool does both in your browser, and shows the resampled values as histograms.

You can estimate:

  • One sample: the mean, median or standard deviation.
  • Two separate groups: the difference in means or medians (each group is resampled on its own), with a permutation test that shuffles the group labels.
  • Pairs: Pearson or Spearman correlation (pairs are resampled together; the test shuffles y against x) or the mean of paired differences (the test flips the sign of each difference).

How to use it

  1. Pick what to estimate, then paste your data or open a CSV, TSV or Excel file. Groups go in columns with optional names in the first row; pairs go as two columns with one row per subject.
  2. Resamples sets how many times the data are resampled (9,999 is a good default; more gives steadier edges).
  3. Seed fixes the random numbers, so the same data and seed always give the same answer: write it down with your result. “New random seed” shows how much the answer moves by chance.
  4. Choose the confidence level and the permutation test’s direction, or turn the test off.
  5. Download the results, the resampled values (CSV), or a report as an image, PDF or Word file.

Percentile or BCa?

The percentile interval takes the middle 95 % of the bootstrap values. The BCa (bias-corrected and accelerated) interval shifts those cut-offs to correct for bias (z₀, from the share of bootstrap values below your estimate) and for skew (the acceleration a, from leaving out one value at a time). BCa is usually more accurate and is the one shown first.

The permutation p-value is exact when every possible arrangement fits in the number of resamples (for example 2 groups of 6 and 5 have 462 splits). Otherwise random arrangements are used and the p-value is (count + 1) / (resamples + 1), so it is never exactly zero.

Worked example

The two-group example has ten times with an old method (mean 15.64) and eight with a new one (mean 12.46). The difference in means is 3.178. With 9,999 resamples and seed 12345, the 95 % BCa interval is 1.935 to 4.681 and the percentile interval 1.867 to 4.58, with a bootstrap standard error of 0.6986. The permutation test gives p = 0.0006, so the methods clearly differ.

For the correlation example (hours studied against score) Pearson r = 0.9629 with a BCa interval of 0.8734 to 0.9905, and the permutation p-value is 0.0002.

Limits and tips

The bootstrap needs a reasonable sample: with fewer than about 10 values per sample intervals are too narrow. Medians of small samples sit on a few data values, so their intervals do too. Up to 200,000 resamples and 20,000 values per column; large data with many resamples can take a few seconds.

Frequently asked questions

Why does my answer differ a little from R or Python? Different software uses different random numbers. With the same distribution of resampled values, the percentile and BCa intervals here match scipy.stats.bootstrap exactly; with its own random numbers scipy agrees within ordinary Monte Carlo error.

Is my data uploaded? No. Everything runs in your browser and the page works offline.

Run the classical tests with the hypothesis test chooser and runner.

Where the numbers come from

  • Methods: Efron and Tibshirani (1993), An Introduction to the Bootstrap; as in scipy.stats.bootstrap and scipy.stats.permutation_test. Example data made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Hypothesis test chooser and runner #560 Answer three questions and the right test is picked for you, then run it on your pasted data: t tests (one-sample, Welch, Student, paired), ANOVA with Tukey HSD, chi-square, Fisher's exact, Mann-Whitney, Wilcoxon, Kruskal-Wallis and Shapiro-Wilk. Plain-English results, effect sizes and assumption checks. Matches scipy. Bayesian A/B test and conjugate prior updater #564 Compare two conversion rates the Bayesian way: the chance B beats A (exact), expected loss, credible intervals for each rate, the difference and the lift. Also update beta, gamma and normal priors with your data and plot prior against posterior. Effect size converter #565 Convert between Cohen's d, Hedges' g, r, odds ratios, eta squared, omega squared, Cohen's f and w and Cliff's delta, or work them out from a t, F or chi-square statistic and the sample sizes. With confidence intervals and size labels. Sample size and power calculator #32 How many subjects, samples or survey responses do you need? Sample size for comparing two means, paired data, two proportions, or a survey's margin of error, with power curves. Matches R and G*Power.