Confidence Intervals: Capturing the True Mean
Problem
Take 50 random samples of size 30 from a population. Show how ~95% of 95% confidence intervals capture the true mean.
Explanation
What does "95% confidence" actually mean?
A 95% confidence interval means: if you repeated the experiment many times, about 95% of the computed intervals would contain the true mean. It does NOT mean "there's a 95% chance the true mean is in this particular interval" — the true mean is fixed; the intervals are random.
The formula
where is the sample mean, is the sample standard deviation, is the sample size, and for 95% confidence.
Step-by-step example
Given: A sample of students has , .
Step 1 — Compute the standard error: .
Step 2 — Compute the margin of error: .
Step 3 — Build the interval: .
Interpretation: We are 95% confident that the true population mean is between 71.42 and 78.58.
The simulation insight
Take 50 random samples and compute a 95% CI from each. About 47-48 will contain the true mean; 2-3 will miss. This is the "95%" in action — not every interval captures the truth, but 95% do over the long run.
Try it in the visualization
50 horizontal CI bars are drawn. About 95% (green) capture the true mean line; a few (red) miss it. Adjust the confidence level and sample size to see how the intervals change.
, where for 95%.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.