Companion notes for the StatLens conceptual demo — coverage drawn on the sampling distribution, and what “95% confident” is a claim about
The Sampling Distribution Lab's three tiers — population, one sample, the distribution of the statistic — with one addition: every sample gets a confidence interval, and every dot is coloured by whether that interval caught μ. Blue caught it; orange missed.
The interval is the one students actually compute, x̄ ± t*s/√n, using each sample's own s. So the widths differ dot to dot and the coverage lands near the stated level rather than exactly on it — which is the honest version and the more interesting one.
Press Hide μ.
Every dot goes grey, μ leaves all three charts, and the count is replaced by a sentence saying nothing can be counted. This is not the page being coy: with μ hidden there is genuinely no way to tell which intervals worked — not for the page, and not for a statistician with real data. That is the situation every student is in every time they compute an interval.
Then press Reveal μ. The colours snap back. The sentence worth saying out loud: your dot was one colour or the other the whole time. Hiding μ never changed which — it only took away your ability to see it. That is why the claim has to be about the method.
?parameter=hidden&samples=100. The class
meets a grey field of dots and an unanswerable question, and you reveal μ at the moment it pays off.
?seed=anything reproduces the identical run.
Two reasons, both worth naming. It is a random sample of samples, so the count wobbles. And the interval uses s in place of σ — the t distribution corrects for that on average, not in every case. At small n the coverage can sit a little under the advertised level.
Because its s came out unusually small, so its interval was unusually narrow. This is the detail the coloured-dot picture reveals that a stack of bars hides: capture is not purely a matter of being close to μ. Hover the dot and compare its s with the population σ.
No — it makes it narrower, not more certain to be correct. Raise n and the dots pull in toward μ and the intervals shrink, but the proportion that capture stays about the same. The level controls the hit rate; n controls the precision.
After sampling distributions, before or beside bootstrap intervals. The sequence that works: Sampling Distributions (what varies) → here (what a method built on that variation achieves) → Why the Percentile CI Works (why resampling one sample may stand in for sampling the population at all).