Bootstrap Confidence Interval Calculator

Bootstrap Confidence Interval Calculator

Paste raw observations, choose a statistic, and resample with replacement to estimate percentile, basic, standard-error, and optional normal confidence intervals from the bootstrap distribution.

🎯Deep Bootstrap Presets

🧼Bootstrap Inputs

The same statistic is computed on the original sample and every resample.

Percentile bounds use alpha / 2 and 1 - alpha / 2 quantiles.

Use 1000 to 5000 for stable interactive intervals.

A fixed seed makes the bootstrap run repeatable.

Use percent for percentile or trim; use the original data unit for threshold proportion.

Normal CI is helpful as a symmetric comparison, not always the best interval.

Controls displayed statistics, intervals, and standard error.

Paste numbers separated by commas, spaces, tabs, or line breaks. For binary proportions, paste 0 and 1 values.

Sample statistic 0.00 theta hat from original data
Percentile CI 0.00 to 0.00 sorted bootstrap quantiles
Basic CI 0.00 to 0.00 2 theta hat minus percentile bounds
Bootstrap SE 0.00 SD of bootstrap statistics

📌Current Bootstrap Snapshot

30Sample n

observations parsed

2000Resamples

bootstrap draws

5.0%Total alpha

split across tails

0.00Bootstrap bias

mean boot minus theta

0.00CI width

percentile upper minus lower

📐Formula Breakdown

Original statisticCompute theta_hat from the observed sample: mean, median, trimmed mean, standard deviation, variance, percentile, or threshold proportion.
Resampling stepFor b = 1 to B, draw n observations with replacement from the original sample and compute theta_star_b on that resample.
Sorted bootstrap statsSort theta_star values from smallest to largest. The percentile CI uses the alpha / 2 and 1 - alpha / 2 positions from this sorted list.
Percentile CICI_percentile = [q_alpha/2(theta_star), q_1-alpha/2(theta_star)]. It reads directly from the bootstrap distribution.
Basic CICI_basic = [2 x theta_hat - q_upper, 2 x theta_hat - q_lower]. This reflects the percentile interval around the original estimate.
Standard errorSE_boot = SD(theta_star_1, theta_star_2, ..., theta_star_B). The optional normal CI is theta_hat +/- z_conf x SE_boot.

📊Bootstrap Method Comparison

MethodFormulaHandles SkewBest UseMain Caution
Percentile CIsorted theta_star quantilesOften yesFast nonparametric intervalCan inherit bootstrap bias
Basic CI2 theta_hat - percentile boundsPartlyBias reflection around theta_hatMay invert unintuitive ranges
Bootstrap SESD of theta_starNo interval aloneSampling variability estimateNeeds enough B for stability
Normal CItheta_hat +/- z x SE_bootNoSymmetric benchmarkWeak for skewed statistics
Parametric CImodel-based formulaDependsNormal mean with assumptionsCan fail when assumptions fail
Permutationshuffle labelsNot a CI by defaultNull hypothesis testingDifferent question than CI

đŸ§ȘStatistic Mode Reference

StatisticInput DataExtra FieldRobustnessTypical Question
Meannumeric valuesignoredlowWhat is the average?
Mediannumeric valuesignoredhighWhat is the center under skew?
Trimmed meannumeric valuestrim percentmediumAverage after trimming tails
Sample SDnumeric valuesignoredlowHow variable are observations?
Sample variancenumeric valuesignoredlowWhat is squared-unit spread?
Percentilenumeric valuespercentile pmediumWhat is a tail cutoff?
Threshold proportionnumeric valuesthresholdmediumWhat share meets a target?

🗂Preset Scenario Comparison

PresetStatisticnBConfidenceExtra FieldData ShapeWhy Bootstrap Fits
Clinic Wait MedianMedian30200095%ignoredright-skewedMedian CI without normality
Startup Revenue MeanMean26300095%ignoredlumpy valuesMean under uneven accounts
Part Thickness SDSample SD32250090%ignoredtight processSpread estimate uncertainty
Conversion ProportionProportion40250095%1binaryRate interval from raw outcomes
Housing Sale MedianMedian28300090%ignoredskewed priceRobust center interval
Delivery 90th PercentilePercentile35300095%90tail-heavyService tail cutoff interval
Plant Growth Trimmed MeanTrimmed mean30220095%10mild outliersAverage protected from tails
Sensor VarianceVariance34260095%ignoredcalibration driftVariance uncertainty
Exam Score MeanMean32200095%ignorednear normalSE and normal CI compare well
Tickets Above SLAProportion36300095%48thresholdedShare above service limit

⚙Resampling Quality Checks

CheckGood SignRisk SignWhy It MattersWhat To Do
Sample sizen is at least 20n below 10Tiny samples have few distinct resamplesReport uncertainty cautiously
Resample count B2000 or morebelow 500Quantile endpoints can jumpIncrease B for final reporting
Bootstrap biassmall vs SElarge vs SEPercentile and normal intervals can disagreeCompare percentile and basic CI
Interval shapepercentile near normalstrong asymmetrySymmetric normal CI may misleadPrefer percentile or advanced methods
Tail statisticenough tail datafew unique tail valuesPercentile stats can be roughUse more data if possible
Independenceone unit per rowclustered repeated rowsNaive bootstrap assumes independent drawsUse cluster bootstrap when needed

💡Practical Bootstrap Tips

Use raw observations: Bootstrap resampling needs the original row-level values. Summary totals are not enough unless you can reconstruct individual data points.
Prefer percentile for skew: When the bootstrap distribution is visibly asymmetric, percentile and basic intervals usually tell more than a symmetric normal interval.
Increase B for publication: Interactive runs are fine at 1000 or 2000 resamples. For final reports, 5000 or more gives smoother endpoint quantiles.
Keep the seed: Save the seed with your report so another analyst can reproduce the same bootstrap draw sequence and interval.
Watch small samples: A bootstrap interval cannot invent information that is absent from a tiny or unrepresentative sample.
Match the statistic to the question: Use medians for skewed centers, percentiles for service tails, and threshold proportions for pass/fail targets.

Your data isn’t neatly distributed in some classic form. It’s not a nice, tidy bell curve; it’s a little too messy. And then traditional stats comes along and tells you it won’t work unless your data conforms to certain distributions. It’s as if they’re saying “you’ve got to make this crooked building act straight.”

Bootstrapping doesn’t do that. Instead, it allow the data to speak for itself. Repeatedly. Basically, you resample from your own data, with replacement, thousands of times. The result is a set of simulated datasets that look just as messy (and yet somehow more orderly) then the world you observe.

What is Bootstrapping and How Does It Work?

The calculator above does all behind-the-scenes grunt-work of producing these resamples and calculating the intervals. Now you can spend time figuring out what distribution has to say about how uncertain you really are.

This has a very simple but powerful core: instead of making theoretical assumptions about what “normal” looks like, you use your sample as the closest thing that you have access to for the population. You draw a random sample from your data repeatedly and thereby construct an observed distribution of your statistic. That bootstrapped distribution shows you just how much your estimate could fluctuate if you ran the study again tomorrow. It allows you to quantify the noise, even if you don’t fully know the signal.

The key part here is knowing what it’s really measuring. It’s not variability in the raw data points themselves, it’s variability of the estimate. Choosing the right statistic matters more than the specific method you use to calculate the interval.

If you have skewed data, maybe some very long wait times or high revenues skew your numbers, then the mean can be pulled off-center. It’s better to stick with a median or trimmed mean as an anchor point in these situations. The tool gives you access to many different statistics, such as particular percentiles and variance. This allows you to get that information even if you are more interested in the tails of the distribution than the mean (for example, if you want to know what happens at the worst end rather than the average delivery time).

After that, you’re presented with the option of what kind of intervals you’d like. There are a few philosophies behind each one. The most straightforward is called the percentile method. It is just the middle section of all the bootstrap results. It acknowledges asymmetry of your data. If the data allows for it, the interval will extend farther out on one end then the other.

Next, there’s the basic interval, which flips the bounds relative to original estimate. That should help account for any bias in your sampling. And finally, we have the standard error approach. It generates an estimate based off the distribution of bootstrap statistics assuming a normal distribution. This symmetric interval is well-known and fast to calculate. However, it can mislead if your underlying data is highly skewed. Seeing them side-by-side lets you appreciate how much your conclusion depends on the choice of method.

Note how many resamples you run. For a quick look maybe one or a couple hundred is fine. But if you want to pin down your confidence interval endpoints you’ll do better with a couple thousand or even more. The resulting empirical distribution will be smoother; those jaggies on the ends will become smoothed out. This in turn provides tighter boundaries around data.

And one other little detail that’s important for transparency: You use a fixed random seed so that your results can be reproduced. So say you share them with your colleague. They get the same result as you did.

This goes back to the issue of small sample size: How many unique combinations can the bootstrap produce? Small sample sizes mean there are only so many unique combinations available because of a lack of diversity in the data. Resampling from unvaried initial data simply means repeating the same lack of variety. The bootstrap does not invent what’s missing from your observations; it only amplifies what is there. Remember this whenever you see wide intervals derived from tiny data sets.

Bootstrapping, in the end, is all about making peace with uncertainty (not burying our heads in the sand). Simulating the sampling process helps us better appreciate the strength of our estimates. Whether we’re looking at startup metrics or clinical trial data, we should be after the same thing: understanding the range in which the true value most probably lies. And that’s where the calculator gives us the numbers.

But that is also where the wisdom comes in. What do these ranges tell us? What do they mean for our decisions? What does this range of possibilities look like? What can we learn by mapping out this landscape? How does it let us make decisions with just a little less risk? A point estimate becomes a view of possibility. The data is still talking. Now it’s talking a lot more.

Bootstrap Confidence Interval Calculator