← 📊 Statistics

📏 CI & Z-Test Lab

True population mean μ: 100
Standard error (σ/√n):
Intervals drawn: 0
Coverage so far:
Latest Z-stat / p:
FPS:
Drag — rotate · Scroll — zoom

📏 Confidence Intervals, the Z-Test, and What "Coverage" Really Means

Draw repeated random samples and watch confidence intervals stack up as bars along a depth axis — green when they capture the true mean, red when they miss — while a linked Z-test scores the latest sample against a hypothesized value.

🔬 What It Demonstrates

Coverage is a long-run property of the interval-building procedure: roughly C% of intervals built this way capture μ over many repeats, exactly as the accumulating green/red bars and running coverage percentage show.

🎮 How to Use

Adjust sample size, confidence level, population spread, and the Z-test's hypothesized mean, then draw samples one at a time or in a batch of 20 to watch the sampling distribution and coverage rate respond.

💡 Did You Know?

A 95% CI does not mean "95% probability μ is in this interval" — once computed, an interval either contains μ or it doesn't. The 95% describes the procedure's long-run behaviour, which this simulation lets you watch directly.