Confidence Interval Simulator
Watch repeated random samples construct horizontal confidence intervals. Count how many intervals span the fixed truth (μ) to understand what 95% confidence actually means.
OVERVIEW & WHAT THIS TOOL SOLVES
The most widespread statistical misconception in business is claiming that a "95% confidence interval of [$58, $72]" means there is a 95% probability the true population mean μ sits inside that specific range. In reality, μ is a fixed number—your random sample interval either captured it or missed it! The Confidence Interval Simulator draws hundreds of repeated random samples from a known population so you can watch intervals hit or miss μ in real time and see what "95% coverage" actually means.
🎯 Questions It Answers
- What does "95% confidence" mean across repeated random studies from the same customer population?
- How do sample size (
n) and confidence level (90%, 95%, 99%) trade off interval width against miss rate? - Does Student's
tinterval still achieve its promised coverage when customer spend is right-skewed or bimodal?
📂 What Data You Need
- Population Shape: Choose Right-Skewed Customer LTV, Normal Satisfaction, Bimodal Segments, or Uniform
- Sampling Design: Sample size per study (
n) and target confidence level (1 − α) - Estimator & Simulation Batch: Student's
t(estimateds) vs. known-σZinterval, drawn 1, 25, or 100 studies at a time
💡 What You'll Discover
- Live Hit/Miss Interval Forest: Horizontal intervals colored green when they bracket true
μand red when they miss - Empirical Coverage Scoreboard: Convergence of observed hit rate toward the theoretical
(1 − α)target - Width & Small-Sample Breakdown: Why naive
Zintervals under-cover at smallnand howtcritical values compensate
🔍 Key Nuances & Common Traps to Watch For
- The Interval Is Random, Not the Parameter: Before you draw a sample, the procedure has a 95% chance of producing an interval that covers
μ. Once calculated from one sample, the interval is fixed—95% refers to the long-run reliability of the method. - Higher Confidence Requires Wider Intervals: Moving from 90% to 99% confidence at the same sample size
nforces you to widen the margin of error so fewer intervals missμ. The only way to get both high confidence and a narrow interval is to increasen. - Central Limit Theorem & Skewness: On heavily right-skewed spend data with tiny samples (
n = 5), sample means and sample standard deviations correlate, causing empirical coverage to dip below 95% untiln ≥ 30.
📐 Under the Hood: Model Equations & Variable Definitions
1. Student's t Confidence Interval & Margin of Error
💬 Read it in plain English: Each random sample k centers its interval at its own sample mean x̄_k and extends outward by the critical t-multiplier times the sample standard error s_k / √n.
2. Long-Run Empirical Coverage Rate Across M Simulated Studies
💬 Read it in plain English: Study k scores a hit (1) if its lower and upper bounds [L_k, U_k] bracket the true population mean μ; as the number of repeated studies M grows, the fraction of hits converges to the target confidence level 1 − α.
1. Population Distribution & Sampling Parameters
Notice how larger \(n\) narrows the confidence intervals without altering coverage rate.
Determines the theoretical target capture frequency.