Intuition What this page does
The parent note gave you three formulas. This page runs them through every kind of situation you can meet — big samples, tiny samples, known and unknown spread, proportions near the middle and near the edge, one-sided bounds, and the traps an exam will set. We forecast, solve step by step, and verify each answer.
Before starting, one reminder of the whole toolkit in one place:
Every symbol above is defined in the parent — if any looks unfamiliar, read the parent note first, then come back.
Every confidence-interval problem is one cell of this grid. The point of this page is to leave no empty cell .
#
Cell class
What makes it special
Example
1
Mean, σ known, large n
textbook z case
(a)
2
Mean, σ unknown, small n
must use t , fatter tails
(b)
3
Mean, σ unknown, large n
t ≈ z , they agree
(c)
4
One-sided bound
only α in one tail, not α /2
(d)
5
Proportion, p ^ near 0.5
widest SE, easy
(e)
6
Proportion, p ^ near an edge
small p ^ , check validity
(f)
7
Degenerate proportion p ^ = 0
Wald formula breaks
(g)
8
Limiting behaviour: n → ∞
interval collapses to a point
(h)
9
Word problem / exam twist
choose the right recipe under disguise
(i)
We now walk each cell. Confidence level is 95% unless stated otherwise, so z 0.025 = 1.96 .
A soda machine has a known fill standard deviation σ = 4 ml. A sample of n = 64 bottles averages X ˉ = 500 ml. Build a 95% CI for the true mean fill μ .
Forecast: Guess the half-width before computing — is it closer to 1 ml or 10 ml?
Standard error = n σ = 64 4 = 8 4 = 0.5 ml.
Why this step? The interval bounds the mean's spread, which is σ / n — see Standard Error — not the single-bottle spread σ .
Critical value z 0.025 = 1.96 .
Why this step? σ is known and n is large, so X ˉ is normal by the Central Limit Theorem ; 95% leaves 2.5% in each tail.
Margin E = 1.96 × 0.5 = 0.98 ml.
Why this step? Margin = how-sure-number × how-wobbly.
CI = 500 ± 0.98 = [ 499.02 , 500.98 ] ml.
Verify: Units are ml (correct). Half-width 0.98 ml is small because n is fairly large — matches the forecast "closer to 1 ml." ✓
Ten measurements of a rod's length give X ˉ = 25.0 cm and sample SD s = 0.5 cm. Find a 95% CI. (n = 10 .)
Forecast: Will this interval be wider or narrower than if we (wrongly) used z = 1.96 ?
Use t , not z . σ is unknown and n is small, so s carries extra uncertainty → Student's t-distribution with n − 1 = 9 degrees of freedom.
Why this step? Plugging in a random s fattens the tails; t 9 honours that.
Critical value t 0.025 , 9 = 2.262 .
Why this step? Two-tailed 95% at df = 9 .
Standard error = n s = 10 0.5 = 0.15811 cm.
Margin E = 2.262 × 0.15811 = 0.35765 cm.
CI = 25.0 ± 0.358 = [ 24.642 , 25.358 ] cm.
Verify: Since t 0.025 , 9 = 2.262 > 1.96 , the t interval is wider than the naive z one — matches the forecast. Units cm. ✓
A survey of n = 400 commute times gives X ˉ = 34 min, s = 10 min. 95% CI.
Forecast: Will the answer differ much from using z = 1.96 ?
Standard error = 400 10 = 20 10 = 0.5 min.
Critical value t 0.025 , 399 ≈ 1.966 .
Why this step? Technically σ is unknown so t is exact; but with df = 399 it is almost z = 1.96 .
Margin E = 1.966 × 0.5 = 0.983 min.
CI = 34 ± 0.983 = [ 33.017 , 34.983 ] min.
Verify: Using z = 1.96 instead gives margin 0.98 — a difference of 0.003 min, invisible in practice. This is the "t → z as n → ∞ " claim made concrete. ✓
A safety engineer only cares about an upper bound on mean impurity. Known σ = 2 ppm, n = 25 , X ˉ = 10 ppm. Give a 95% one-sided upper confidence bound.
Forecast: Should the critical value be 1.96 or 1.645 ?
One tail only. We want P ( μ ≤ bound ) = 0.95 , so all 5% sits in one tail.
Why this step? A one-sided bound doesn't split α ; that halving was only for a two-sided band.
Critical value z 0.05 = 1.645 (not 1.96 ).
Standard error = 25 2 = 5 2 = 0.4 ppm.
Upper bound = X ˉ + z 0.05 ⋅ SE = 10 + 1.645 × 0.4 = 10 + 0.658 = 10.658 ppm.
CI = ( − ∞ , 10.658 ] ppm.
Verify: The one-sided critical value 1.645 < 1.96 , so a one-sided bound is tighter on its single side — exactly why the parent's "forgetting to halve α" mistake matters in reverse. This links to Hypothesis Testing (a one-sided test at α = 0.05 ). ✓
In a poll, 480 of 800 voters approve. 95% CI for the true proportion p .
Forecast: p ^ = 0.5 maximises the SE. Will the margin be about ± 0.03 ?
Point estimate p ^ = 800 480 = 0.6 .
Validity check n p ^ = 800 ( 0.6 ) = 480 ≥ 5 and n ( 1 − p ^ ) = 800 ( 0.4 ) = 320 ≥ 5 . ✓
Why this step? Normal approximation to the binomial needs enough of both successes and failures.
Standard error = n p ^ ( 1 − p ^ ) = 800 0.6 × 0.4 = 800 0.24 = 0.017321 .
Margin E = 1.96 × 0.017321 = 0.033949 .
CI = 0.6 ± 0.0339 = [ 0.5661 , 0.6339 ] .
Verify: The red curve in the figure peaks at p ^ = 0.5 where p ^ ( 1 − p ^ ) is largest; at 0.6 we're slightly down the slope, so the margin ≈ 0.034 is near its worst-case size — matches the forecast. ✓
A defect test finds 9 defects in n = 300 items. 95% CI for the defect rate p .
Forecast: With only 9 successes, is the validity rule barely satisfied?
Point estimate p ^ = 300 9 = 0.03 .
Validity check n p ^ = 300 ( 0.03 ) = 9 ≥ 5 ✓ and n ( 1 − p ^ ) = 300 ( 0.97 ) = 291 ≥ 5 ✓ — just barely on the successes side.
Standard error = 300 0.03 × 0.97 = 300 0.0291 = 0.0098489 .
Margin E = 1.96 × 0.0098489 = 0.019304 .
CI = 0.03 ± 0.0193 = [ 0.0107 , 0.0493 ] .
Verify: Interval stays inside [ 0 , 1 ] (good) but is asymmetric in meaning — near an edge the true coverage of the Wald interval is shaky; with fewer successes we'd cross into cell 7. ✓
A drug trial sees 0 severe side-effects in n = 50 patients. What is the Wald 95% CI for p ?
Forecast: The formula will give a width of zero . Is that believable?
Point estimate p ^ = 50 0 = 0 .
Validity check FAILS: n p ^ = 0 < 5 . The normal approximation is invalid.
Wald margin E = 1.96 50 0 × 1 = 1.96 × 0 = 0 .
Why this step? We compute it only to expose the breakdown: the formula returns the useless interval [ 0 , 0 ] .
The honest fix — the "rule of three": with 0 events in n trials, an approximate 95% upper bound is n 3 = 50 3 = 0.06 , giving [ 0 , 0.06 ] .
Why this step? Zero observed doesn't mean zero risk — it means "small," and 3/ n is the standard patch.
Verify: Wald gives width 0 (absurd — links to Wald's failure at the boundary). The rule-of-three upper bound 3/50 = 0.06 is positive and sensible. ✓
Common mistake "Zero successes means
p = 0 for sure."
Why it feels right: we saw no events, so the rate must be zero.
Fix: Seeing 0 in 50 is consistent with any p up to about 0.06 . Use the rule of three (3/ n ) instead of the Wald formula, which collapses to a fake point.
With σ = 5 fixed and X ˉ = 100 , compute the 95% half-width E = 1.96 σ / n for n = 25 , 100 , 400 , 10000 . What is lim n → ∞ E ?
Forecast: Quadrupling n should roughly halve the width. Why?
n = 25 : E = 1.96 ⋅ 5 5 = 1.96 .
n = 100 : E = 1.96 ⋅ 10 5 = 0.98 .
n = 400 : E = 1.96 ⋅ 20 5 = 0.49 .
n = 10000 : E = 1.96 ⋅ 100 5 = 0.098 .
Why this step? E ∝ 1/ n : multiply n by 4 → divide n by 2 → halve E .
Limit n → ∞ lim n 1.96 ⋅ 5 = 0 .
Verify: 1.96 → 0.98 → 0.49 → 0.098 each drop by a factor of ≈ 2 per × 4 in n (the last is × 25 , so ÷ 5 : 0.49/5 = 0.098 ✓). The interval collapses to the point μ — exactly the "infinite data = certainty" intuition, and the basis of Sample Size Determination . ✓
Worked example Cell 9 (disguised recipe choice)
"A quality lab reports that a batch's mean tensile strength is X ˉ = 220 MPa with sample SD s = 12 MPa from n = 9 specimens, and asks: are we 95% sure the mean exceeds 210 MPa? "
Forecast: Which recipe — z or t ? One-sided or two-sided?
Choose the tool. σ unknown, n = 9 small → t with df = 8 . The question "exceeds 210 " is one-sided .
Why this step? Small n + estimated spread forces t ; "exceeds" means a lower bound, one tail.
Critical value t 0.05 , 8 = 1.860 (one tail at 5% ).
Standard error = 9 12 = 3 12 = 4 MPa.
Lower bound = X ˉ − t 0.05 , 8 ⋅ SE = 220 − 1.860 × 4 = 220 − 7.44 = 212.56 MPa.
Answer the actual question: since the 95% lower bound 212.56 > 210 , yes — we're 95% confident the mean exceeds 210 MPa.
Verify: Lower bound 212.56 MPa is above the target 210 , so the conclusion "exceeds" holds. Units MPa. This is CI ↔ test duality in action (Hypothesis Testing ). ✓
Recall Which cell, which tool?
Match each clue to its recipe.
σ known, big n ::: z , two-sided z α /2
σ unknown, small n ::: t n − 1
"at least / at most / exceeds" ::: one-sided, use z α or t α , n − 1 (no halving)
0 successes observed ::: Wald fails; rule of three 3/ n
Want narrower interval ::: raise n (width ∝ 1/ n )
Mnemonic The whole page in one line
Pick the tail count, pick z-or-t, then Estimate ± crit × SE — and always check n.