Before we start, one picture that every problem below leans on. Figure s01 shows the anatomy of a confidence interval: the coral line marks the point estimate xˉ at the centre; the lavender bar is the whole interval; and the two mint arrows are each the half-width of the interval, the margin of error (the symbol for it is defined just below). Read it as "the interval is xˉ with a symmetric cushion on each side." Every solution below builds or reads exactly this picture.
Critical values you'll need (memorise the top row):
What decides it: two questions — is σ known, and is n large (≥30)?
Here σ is unknown and n=12<30, so we must use the ==t-distribution==. Its heavier tails pay for the extra uncertainty in using s instead of σ.
Degrees of freedom =n−1=12−1=11.
Recall Solution L1·Q2
(a) Point estimate is the centre of the interval (the coral line in Figure s01):
xˉ=20.804+0.936=0.870.(b) Margin of errorE is the half-width — the length of one mint arrow, the distance from centre to either end:
E=20.936−0.804=0.066.
Recall Solution L1·Q3
99% confidence means α=1−0.99=0.01. We split that leftover probability equally into two tails, so each tail holds α/2=0.005. The value cutting off the upper 0.5% tail is
z0.005=2.576.
If we used α not α/2 we'd only guard one side and the net would leak on the other.
Step 1 — standard error SE (spread of the sample mean):
SE=nσ=644.0=84.0=0.5.Step 2 — margin of error E (z0.025=1.96):
E=1.96×0.5=0.98.Step 3 — the interval (xˉ±E, exactly the s01 picture):
50.0±0.98=[49.02,50.98].
Recall Solution L2·Q2
Step 0 — check the approximation is valid. The normal approximation to a proportion needs enough "successes" and "failures". The usual rule of thumb is np^≥10andn(1−p^)≥10 (a looser version uses ≥5):
np^=200×0.72=144≥10,n(1−p^)=200×0.28=56≥10.
Both comfortably clear the bar, so the normal approximation is safe. (If either were below 5–10 — e.g. a rare event — we'd switch to an exact binomial or Wilson interval instead.)
Step 1 — point estimate:p^=200144=0.72.Step 2 — standard error SE for a proportion (binomial variance p(1−p)/n):
SE=np^(1−p^)=2000.72×0.28=0.001008=0.03175.Step 3 — margin E:E=1.96×0.03175=0.06222.
CI95%=0.72±0.0622=[0.6578,0.7822].
Recall Solution L2·Q3
n=7, so df=6; σ unknown and n<30⇒ use t.
SE=ns=70.07=2.64580.07=0.02646.E=2.447×0.02646=0.06474.CI95%=0.50±0.0647=[0.4353,0.5647].
Start from the definition of the margin and isolate n step by step.
Step 1 — write what we know:E=zα/2⋅nσ.Step 2 — move n up to meet E.n is buried inside n in the denominator, so we first multiply both sides by n and divide both sides by E to get n alone on one side:
n=Ezα/2σ.Step 3 — undo the square root. The unknown is still trapped under a , and the inverse of "square root" is "square", so we square both sides (squaring is legal here because every quantity — z, σ, E, n — is positive):
n=(Ezα/2σ)2.Step 4 — plug numbers:n=(0.51.96×4.0)2=(15.68)2=245.86.
Always round up (a fractional person doesn't exist and rounding down misses the target):
n=246.
Recall Solution L3·Q2
Width ∝1/n. To halve width, we need nnew=2nold, i.e.
nnew=4nold=4×100=400.The lesson: precision is expensive — cutting error in half costs 4× the data. Figure s02 makes this concrete: it plots interval width against n. The curve falls like 1/n, and the two marked dots (n=100 in coral, n=400 in mint) sit at exactly half the height of each other — you slide four times to the right just to drop halfway down.
Recall Solution L3·Q3
Difference of independent estimates → variances add:
SEdiff=SEA2+SEB2=0.0202+0.0182=0.000724=0.02691.CI95%=(0.87−0.82)±1.96×0.02691=0.05±0.05274=[−0.0027,0.1027].
The interval includes 0, so we cannot conclude B is truly better — see Hypothesis Testing and A/B Testing for the matched view.
Mean:xˉ=(10+12+11+13+14)/5=60/5=12.
Deviations & squares:(−2)2,(0)2,(−1)2,(1)2,(2)2=4,0,1,1,4; sum =10.
Sample variance (Bessel n−1=4): s2=10/4=2.5, so s=1.5811.
Standard error:SE=s/5=1.5811/2.2361=0.7071.
Margin:E=t0.05,4×SE=2.132×0.7071=1.5075.
Interval — centre xˉ=12, cushion E=1.5075 on each side:
CI90%=12±1.5075=[12−1.5075,12+1.5075]=[10.492,13.508].
Recall Solution L4·Q2
The t-interval assumes approximate normality (or large n so the CLT smooths things out); with n=8, skew and an outlier violate both, so the interval will be mis-centred and mis-sized. The safer choice is a percentile bootstrap interval — resample the 8 scores with replacement thousands of times and read off the 5th/95th percentiles (see Bootstrap Methods and Cross-validation).
Recall Solution L4·Q3
Once computed, the interval [10.49,13.51] is fixed and μ is a fixed (unknown) constant — the true mean is either in it or not, no probability left. The 90% describes the procedure: if we repeated this sampling-and-interval recipe many times, about 90% of the resulting intervals would contain μ.
Planning (use the expected 0.20). Proportion SE gives
n=E2zα/22p(1−p)=0.0121.962×0.20×0.80=0.00013.8416×0.16=6146.56⇒6147.Observed CI with p^=0.22, n=6147 (quick validity check: np^=1352≥10, n(1−p^)=4795≥10, so the normal approximation is fine):
SE=61470.22×0.78=2.7916×10−5=0.005284,CI95%=0.22±1.96×0.005284=0.22±0.01036=[0.2096,0.2304].
The realised margin (±1.04%) slightly exceeds the target because observed p^=0.22 has larger variance than the planned 0.20 — a lesson in planning with the most conservative p (=0.5) when unsure.
Recall Solution L5·Q2
Frequentist net: the interval is random, μ is a fixed fish; 95% of the nets we throw catch it, but any one net either did or didn't. Bayesian pond:μ is treated as random with a probability distribution; the 95% credible interval genuinely holds 95% of that posterior probability, so "95% probability μ is inside" is legitimate there. Coincidence: with a flat (uninformative) prior and large n, the posterior is dominated by the likelihood and the two intervals become numerically almost identical.
Recall Solution L5·Q3
Red flags:
n=4 is tiny. The critical value is t0.025,3=3.182 (far above z=1.96), which alone makes the net very wide — the study is badly under-powered.
σ unknown and data non-normal. The t-interval leans on approximate normality (or large n via the CLT); with n=4 and skew, neither holds, so the interval is both mis-centred and mis-sized.
The CI contains 0. Since [−2,8] straddles zero, the effect is not statistically distinguishable from "no effect" — you cannot claim a real effect exists.
Reporting only the point estimate "3.0". Quoting the crisp centre hides that the honest interval spans [−2,8], a huge range; that is false precision (the L3-style "wide interval is honest" lesson).
What to do instead: collect more data — recall from L3·Q2 that halving the width needs 4× the sample; use a bootstrap percentile interval given the non-normality; back the interval up with a formal hypothesis test on whether the effect differs from 0; and always report the full interval, never the point estimate alone.