4.9.19 · D5Probability Theory & Statistics

Question bank — Confidence intervals — derivation for mean, proportion

1,837 words8 min readBack to topic

Before we start, three plain-word reminders so no symbol is unearned:

Keep straight which things are fixed () and which wobble (, the band). Nearly every trap below is a fixed-vs-random confusion in disguise.


True or false — justify

The probability that the true mean lies inside the computed interval is 0.95.
False. Once computed, both endpoints and are fixed numbers, so is either in or out — probability 0 or 1. The 95% describes the long-run success rate of the method, not this one band.
A 99% confidence interval is more likely to be "correct" for a single given sample than a 95% one.
True in the long-run sense: a higher confidence level means a larger fraction of intervals capture . The cost is that the 99% interval is wider (uses a bigger critical value), so it is less precise.
Widening the confidence level from 95% to 99% makes the interval narrower because we are "more sure."
False. More confidence demands a bigger critical value (), which widens the band. Certainty and precision trade off against each other.
For the same data, the -interval is always at least as wide as the -interval.
True. For any finite degrees of freedom, because the -distribution has fatter tails, so its critical value is larger. They converge only as — see Student's t-distribution.
Doubling the sample size halves the margin of error.
False. The margin scales like , so quadrupling halves it; doubling shrinks it only by a factor . This is why big precision gains get expensive — see Sample Size Determination.
If a 95% CI for excludes the value 0, then a two-sided hypothesis test of at level rejects.
True. This is the CI–test duality: the CI is exactly the set of null values that would not be rejected, so a value outside it is rejected — see Hypothesis Testing.
The confidence interval tells us the range in which 95% of individual data values fall.
False. It bounds the mean , whose spread is the standard error , not the raw data spread . A range for individual values (a prediction/tolerance interval) is much wider.
For a proportion, the standard error is largest when .
True. The function peaks at (value ) and drops toward the extremes, so a 50/50 split is the hardest to pin down — this drives worst-case sample-size planning.
The Central Limit Theorem guarantees is exactly normal for any sample size.
False. It gives an approximate normal shape for large ; for small from a skewed population the approximation can be poor. See Central Limit Theorem.

Spot the error

"We're 95% confident, so we look up the 95th percentile ."
Error: two-sided intervals split into two tails of each, so we need . The value is a one-sided 95% bound.
"Since we don't know , we just use in place of it and keep the critical value, even for ."
Error: replacing by the random adds uncertainty, so for small we must use the wider critical value, not . Only for large do they roughly agree.
"Margin of error ."
Error: the missing makes the interval absurdly wide. The correct margin is because we bound the mean, whose spread is the standard error — see Standard Error.
"With 3 successes in 20 trials, , we apply the Wald interval directly."
Error: the validity check fails, so the normal approximation is unreliable. With so few successes the Wald interval can even spill below 0; use an exact or adjusted method instead.
"The -distribution has degrees of freedom."
Error: it has . Computing imposes the constraint , using up one degree of freedom and leaving free deviations.
"Because our 95% interval is , if we sampled again we'd get a mean in that range 95% of the time."
Error: the interval is about the fixed parameter , not about future sample means. A future could easily fall outside; the 95% refers to how often intervals capture .
"A wider interval means our estimate is better."
Error: a wider interval means less precision — we've pinned down over a larger range. Narrow intervals (from larger or smaller ) are the precise ones; width and quality are inverted here.

Why questions

Why do we split into two equal tails instead of putting it all in one?
Because a symmetric two-sided interval brackets from both above and below, so we reserve probability in each tail; the central band then holds . A one-tailed split gives a one-sided bound, a different question.
Why does the variance of shrink as rather than staying ?
Averaging independent values lets their random ups and downs partly cancel; the variance of the sum is , and dividing by scales variance by , leaving .
Why must a proportion be treated as a special case of a mean?
A 0/1 (Bernoulli) trial has mean and variance , so is literally the sample mean of these indicators; the whole mean machinery transfers with replaced by — see Bernoulli & Binomial Distributions.
Why do we plug into the standard error when the true SE uses the unknown ?
We can't compute without knowing , so we substitute our best estimate . This is the "Wald" approximation and is why the interval is only reliable when successes and failures are both plentiful.
Why does the -interval get closer to the -interval as grows?
With more data, estimates more accurately, so the extra uncertainty that fattened the -tails vanishes and .
Why does "95% confidence" refer to the procedure and not to one interval?
Randomness lives in the sampling, not in . Before sampling, the yet-to-be-built band has a 95% chance of catching the fixed ; after we observe data, the band is fixed too, so no probability remains to speak of.

Edge cases

What happens to the CI as (with fixed)?
The standard error , so the margin shrinks to zero and the interval collapses onto the true — infinite data pins the mean exactly.
What if (zero successes observed)?
The Wald SE , giving the degenerate interval , which is clearly wrong — isn't certainly zero. This is exactly where the approximation breaks and an adjusted (e.g. Wilson) interval is required.
What if the population is already exactly normal but ?
The -approximation via CLT isn't needed for shape (it's normal already), but is unknown, so we still use , whose tails are extremely fat — the interval is very wide, honestly reflecting how little two points tell us.
What happens to the margin when the confidence level is 100%?
The critical value diverges to infinity (no finite band can be certain under a normal model), so a 100% interval is — technically always correct, practically useless.
What if (no variability in the population)?
The standard error is , so every sample gives exactly and the interval collapses to the single point — with no randomness there is nothing to be uncertain about.
If two researchers each build a 95% CI from independent samples and the intervals don't overlap, is one of them definitely wrong?
Not necessarily — non-overlap is strong evidence the means differ but each interval individually still had a 5% miss chance, and non-overlap is a conservative (not exact) test for a difference.

Recall wrap-up

Recall One-line self-checks

Is random or fixed? ::: Fixed and unknown; the interval is the random object (before data are seen). Does higher confidence give a narrower or wider interval? ::: Wider — a larger critical value is needed to catch more often. When is the proportion standard error largest? ::: At , since peaks there. Why and not degrees of freedom? ::: Estimating imposes one constraint , removing one free deviation. Non-overlapping 95% CIs — proof of difference? ::: Strong but not definitive evidence; it's a conservative check, and each interval still had its own 5% miss rate.


Connections