100-Sample Confidence Interval Coverage Simulator
Simulate 100 random confidence intervals simultaneously to observe empirical coverage rate, Z vs. t width, and 1/√n scaling.
Run 100 repeated experiments at once to see what '95% confidence' truly means—it is the intervals that dance around fixed μ, not vice versa.
Polling error bars (±3%), manufacturing tolerance bounds, and A/B uplift uncertainty intervals.
In repeated sampling, why is the true parameter stationary while random Confidence Intervals jump around—and how do we widen them when is unknown?
A confidence procedure guarantees that of independently constructed random intervals trap the fixed population mean over repeated experiments—a property of the sampling ruler, not a post-hoc probability that fixed moves.
Replacing known with sample spread swaps the standard normal quantile for the wider Student's multiplier to protect coverage in finite samples.
Does a 95% confidence interval mean there is a 95% probability that μ jumps inside your specific interval—or something subtly deeper about the sampling procedure?
Click 'Generate 100 Samples' at 80%/90%/95%/99% confidence, watch random intervals stack against true μ (green hits vs. crimson misses), and toggle Z vs. t critical multipliers.
Tight intervals estimate effects accurately; next, Chapter S.4.3 tests sharp yes/no scientific claims using p-values and Statistical Power.
Picture a fixed tent stake hammered into the ground at . You stand blindfolded and toss 100 circular hoops (). Once ONE hoop lands on the grass—say [46.2, 54.8]—it either trapped the stake (100%) or missed it (0%); the stake never hops in or out! What “95% confidence” promises is about the throwing method: in the long run, 95 out of every 100 intervals tossed this way capture fixed !
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Higher confidence (95% → 99%) stretches the multiplier wider. Larger shrinks narrower!
Want to cut your poll's error bar in half down to ? Because of , you must interview 4× as many people!
Sample , , , :
Try switching the method above to Naive Z with s (Trap!) at n = 4: coverage collapses below 90% because 1.96 pretends sample has zero uncertainty! Always use Student's t whenever is unknown.
Notice a neat duality: if a null value like falls outside your 95% CI, a two-tailed hypothesis test at will reject ! Chapter S.4.3 unpacks -values and Power.
Before drawing data, both endpoints are random variables bracketing fixed with probability . Once numbers are plugged in, the interval either hits or misses—there is no randomness left in .
Raising confidence from to pushes from to ( wider interval); only increasing sample size boosts accuracy without sacrificing confidence.
In pre-study polling, setting conservative worst-case variance for at yields respondents!
Simulate 100 random confidence intervals simultaneously to observe empirical coverage rate, Z vs. t width, and 1/√n scaling.
True μ = 50 never moves! What fluctuates is each new random sample's center x̄ and width. Over repeated experiments, ~95% of those random brackets trap the stationary target.