Confidence Intervals

Point estimation answers "what is the single best value of θ\theta?"; interval estimation answers the more honest "what range of θ\theta is the data actually consistent with?". A confidence interval is the frequentist answer: a data-dependent interval [θ^−,θ^+][\hat\theta_-,\hat\theta_+] manufactured so that, across hypothetical repetitions of the whole experiment, it brackets the true fixed θ\theta a stated fraction 1−α1-\alpha of the time. That fraction — the coverage probability — is the defining guarantee, and also the single most misread number in applied statistics. The randomness lives in the endpoints, not in θ\theta. Before the data arrive, θ^±(X)\hat\theta_\pm(X) are random variables and the coverage statement is a probability over data. After you observe X=xX=x and print a number, the realised interval either contains the fixed θ\theta or it does not — the "95%95\%" was a property of the rule, spent the moment the dice were cast. This is exactly where the frequentist interval parts company from the Bayesian credible interval, which conditions on the data through Bayes' theorem. The engine that builds these intervals is the pivot: a function Q(X,θ)Q(X,\theta) of data and parameter whose sampling distribution does not depend on θ\theta at all. You bracket QQ between two fixed quantiles carrying probability 1−α1-\alpha and algebraically invert to wrap θ\theta in an interval. For a Gaussian sample the standardised mean and the Student-tt statistic are exact pivots; for sums the central limit theorem supplies asymptotic ones; and when none exists you invert a family of hypothesis tests instead. One object, the pivot; one recurring caution, the meaning of coverage.

Key takeaways
  • A confidence interval is a random interval [θ^−,θ^+][\hat\theta_-,\hat\theta_+] built from the data so that, before the data are seen, it contains the true parameter θ\theta with probability 1−α1-\alpha — the coverage.
  • Coverage is a property of the procedure, not of the number you printed: θ\theta is a fixed constant and the endpoints are random. "There is a 95%95\% probability θ\theta lies in this particular interval" is the canonical error.
  • The workhorse recipe inverts a pivotal quantity — a function of data and θ\theta whose distribution is free of θ\theta — such as (Xˉ−μ)/(σ/n)∼N(0,1)(\bar X-\mu)/(\sigma/\sqrt n)\sim N(0,1) or (Xˉ−μ)/(s/n)∼tn−1(\bar X-\mu)/(s/\sqrt n)\sim t_{n-1}.
  • For a Gaussian mean with known variance the 1−α1-\alpha interval is Xˉ±z1−α/2 σ/n\bar X\pm z_{1-\alpha/2}\,\sigma/\sqrt n, with z0.975=1.959964z_{0.975}=1.959964 giving the famous ±1.96 σ/n\pm1.96\,\sigma/\sqrt n at 95%95\%.
  • Exact intervals need an exact pivot; otherwise use asymptotics (Wald, likelihood-ratio) or exact-but-conservative constructions (Clopper–Pearson), trading exact coverage against interval length.
  • Intervals are dual to tests: the 1−α1-\alpha interval is exactly the set of θ0\theta_0 a level-α\alpha test would not reject, so interval-building and testing share one machinery.
  • Key idea: construct a pivotal quantity Q(X,θ)Q(X,\theta) whose sampling distribution is free of θ\theta, bracket it between known quantiles with total probability 1−α1-\alpha, then algebraically invert to solve for θ\theta — the resulting random interval has coverage 1−α1-\alpha by construction.

Where this lives today

The confidence interval is the standard grammar of experimental uncertainty. Every measured constant in the CODATA tables is quoted with an interval whose "±\pm" is a coverage statement, and consistency with theory is judged by whether the prediction falls inside it. In particle physics, because event counts are Poisson, experiments use exact Garwood intervals or invert the profile likelihood ratio — the −2ln⁡λ≤χ2-2\ln\lambda\le\chi^2 of equation (6) — with the Feldman–Cousins ordering adopted by the Particle Data Group to avoid the empty intervals naive recipes produce near a physical boundary; a zero-count search reports a one-sided 95%95\% upper limit of −ln⁡α=3.0-\ln\alpha=3.0 events. In cosmology the confidence ellipsoid (θ^−θ)⊤Σ−1(θ^−θ)≤χp,1−α2(\hat{\boldsymbol\theta}-\boldsymbol\theta)^\top\Sigma^{-1}(\hat{\boldsymbol\theta}-\boldsymbol\theta)\le\chi^2_{p,1-\alpha} reports correlated constraints on Ωm\Omega_m and σ8\sigma_8 from the microwave background, with the caveat that the two-parameter 68%68\% contour uses χ2,0.6832=2.30\chi^2_{2,0.683}=2.30, not 1.001.00. And the running debate between frequentist and Bayesian intervals — sharpest where data are scarce and a boundary looms — is live in every field that measures something rare.

The physical picture

Imagine running the experiment not once but a thousand times, each run drawing fresh data and applying the same interval rule. You get a thousand intervals, all slightly different, scattered around the one fixed true value. A 95%95\% rule is one for which 95%95\% of them straddle the truth. The single interval you computed is just one draw — it hit or missed, and nothing in the data tells you which. The first figure makes the ensemble concrete.

Figure
Twenty 95% intervals from twenty repeated samples around one fixed true value μ = 10.0 drawn as the dashed line: nineteen brackets cover it in blue and one misses in red, so the realised hit rate 19/20 = 0.95 matches the nominal coverage 1 − α = 0.95
Repeated sampling: 19 of 20 intervals cover the fixed truth — coverage 0.95 true μ = 10.0 (fixed, unknown) misses — interval sits right of μ 20 independent repetitions of the experiment

The second view is the machine that produces one such interval. The pivot Z=(Xˉ−μ)n/σZ=(\bar X-\mu)\sqrt n/\sigma hides the unknown μ\mu inside itself, yet carries a fixed N(0,1)N(0,1) law regardless of what μ\mu is. Because its distribution is anchored, we pin its quantiles once — 95%95\% of its mass lies between ±1.96\pm1.96 — and "unfold" the bracket −1.96≤Z≤1.96-1.96\le Z\le 1.96 into a statement about μ\mu. Width and confidence trade off through that quantile, and there is no free lunch — a guaranteed-100%100\% interval is (−∞,∞)(-\infty,\infty).

Figure
The pivot has a fixed standard-normal law: 95% of its probability lies in the central band between the quantiles ±z with z = z_0.975 = 1.959964, leaving α/2 = 0.025 in each tail — bracketing the pivot here and inverting is what produces the ±1.96 σ/√n interval
The pivot Z = (X̄ − μ)√n/σ ~ N(0,1): central mass 0.95 between ±1.96 −1.96 +1.96 0 area = 1 − α = 0.95 α/2 = 0.025 α/2 = 0.025 standardised pivot value z

A third mental model comes free: a confidence interval is the set of hypothesised values the data could not reject at level α\alpha — the test–interval duality that makes intervals and pp-values two faces of one calculation.

The core equations

The defining property is coverage. It is a probability taken over the data XX, holding for every possible value of the fixed parameter θ\theta, which is what makes it a guarantee rather than a description of one dataset.

Pr⁡θ ⁣(θ^−(X)≤θ≤θ^+(X))≥1−α∀ θ(1)\Pr_\theta\!\big(\hat\theta_-(X)\le\theta\le\hat\theta_+(X)\big)\ge 1-\alpha\qquad\forall\,\theta \qquad (1)

where: θ\theta — fixed unknown parameter; XX — random data vector; θ^±\hat\theta_\pm — random endpoints (statistics of XX); 1−α1-\alpha — confidence level, the nominal coverage. The construction tool is the pivot. Its defining feature is that although θ\theta appears inside it, its probability law is completely free of θ\theta, so its quantiles are known numbers.

Q(X,θ) has a sampling distribution independent of θ(2)Q(X,\theta)\ \text{has a sampling distribution independent of }\theta \qquad (2)

where: QQ — a function of both data and parameter, monotone in θ\theta so the bracket can be inverted. Bracketing a≤Q(X,θ)≤ba\le Q(X,\theta)\le b with Pr⁡(a≤Q≤b)=1−α\Pr(a\le Q\le b)=1-\alpha and solving for θ\theta delivers the interval. For a Gaussian sample with known variance the standardised mean is an exact pivot, and inverting it gives the archetypal interval every physicist has met as "±1.96 σ/n\pm1.96\,\sigma/\sqrt n".

Xˉ±z1−α/2 σn(3)\bar X \pm z_{1-\alpha/2}\,\frac{\sigma}{\sqrt n} \qquad (3)

where: Xˉ=1n∑Xi\bar X=\tfrac1n\sum X_i — sample mean; σ\sigma — known population standard deviation; nn — sample size; z1−α/2z_{1-\alpha/2} — standard-normal upper quantile, z0.975=1.959964z_{0.975}=1.959964 at 95%95\%. The half-width shrinks as 1/n1/\sqrt n — quadruple the data to halve it. When σ\sigma is unknown and must be estimated by the sample standard deviation ss, the extra uncertainty inflates the pivot's tails from Gaussian to Student-tt, so the multiplier grows and the interval widens.

Xˉ±tn−1, 1−α/2 sn,s2=1n−1∑i=1n(Xi−Xˉ)2(4)\bar X \pm t_{n-1,\,1-\alpha/2}\,\frac{s}{\sqrt n},\qquad s^2=\frac{1}{n-1}\sum_{i=1}^n (X_i-\bar X)^2 \qquad (4)

where: ss — Bessel-corrected sample standard deviation; tn−1, 1−α/2t_{n-1,\,1-\alpha/2} — Student-tt quantile with n−1n-1 degrees of freedom, e.g. t9,0.975=2.262t_{9,0.975}=2.262, decreasing to z1−α/2z_{1-\alpha/2} as n→∞n\to\infty. When no exact pivot exists, the maximum-likelihood estimate is asymptotically Gaussian; standardising it by its estimated standard error gives an approximate pivot — the Wald interval.

θ^±z1−α/2  Var^(θ^) ,Var^(θ^)≈I(θ^)−1(5)\hat\theta \pm z_{1-\alpha/2}\,\sqrt{\,\widehat{\mathrm{Var}}(\hat\theta)\,},\qquad \widehat{\mathrm{Var}}(\hat\theta)\approx \mathcal I(\hat\theta)^{-1} \qquad (5)

where: θ^\hat\theta — maximum-likelihood estimate; I(θ)\mathcal I(\theta) — Fisher information; the variance is read off the inverse information at the estimate. Valid only for large nn, and poor near parameter boundaries. A better large-sample interval inverts the likelihood-ratio statistic, whose null distribution is χ2\chi^2 by Wilks' theorem; it need not be symmetric and respects parameter boundaries.

{θ0: −2ln⁡L(θ0)L(θ^)≤χ1, 1−α2}(6)\Big\{\theta_0:\ -2\ln\frac{\mathcal L(\theta_0)}{\mathcal L(\hat\theta)}\le \chi^2_{1,\,1-\alpha}\Big\} \qquad (6)

where: L\mathcal L — likelihood function; θ^\hat\theta — MLE maximising L\mathcal L; χ1, 1−α2\chi^2_{1,\,1-\alpha} — chi-square quantile with 11 degree of freedom, equal to 3.8413.841 at 95%95\%, whose square root 1.961.96 recovers the Wald width. For discrete data no interval can hit coverage exactly; the Clopper–Pearson construction inverts the binomial tail probabilities exactly, at the price of being conservative.

[ B−1 ⁣(α2;k,n−k+1), B−1 ⁣(1−α2;k+1,n−k)](7)\Big[\,B^{-1}\!\big(\tfrac{\alpha}{2};k,n-k+1\big),\ B^{-1}\!\big(1-\tfrac{\alpha}{2};k+1,n-k\big)\Big] \qquad (7)

where: kk — observed successes in nn trials; B−1( ⋅ ;a,b)B^{-1}(\,\cdot\,;a,b) — quantile function of the Beta distribution, which the Beta–Binomial identity ties to the binomial tail sums. Actual coverage is ≥1−α\ge1-\alpha.

Derivation AThe z-interval for a Gaussian mean by pivoting

The goal is to build the exact 1−α1-\alpha interval for the mean μ\mu of a Gaussian sample with known variance, by exhibiting an exact pivot, bracketing it between fixed quantiles, and inverting the bracket algebraically so the probability statement carries over verbatim from pivot to parameter. We take X1,…,XnX_1,\dots,X_n independent and identically distributed as N(μ,σ2)N(\mu,\sigma^2) with σ\sigma known, and check that every step is an equivalence, so the coverage is exact for any sample size, not merely asymptotic.

Step 1. The sample mean of independent Gaussians is again Gaussian, Xˉ=1n∑i=1nXi∼N(μ,σ2/n)\bar X=\tfrac1n\sum_{i=1}^n X_i\sim N(\mu,\sigma^2/n), with the same mean and variance shrunk by nn. Why: a sum of independent normals is normal with added variances, and dividing by nn scales the variance by 1/n21/n^2, giving σ2/n\sigma^2/n — this is where the n\sqrt n improvement in precision is born.

Step 2. Standardise to form the pivot Z=(Xˉ−μ)/(σ/n)∼N(0,1)Z=(\bar X-\mu)/(\sigma/\sqrt n)\sim N(0,1). Why: subtracting the mean and dividing by the standard deviation removes every trace of μ\mu and σ\sigma from the distribution, so ZZ carries the unknown μ\mu inside but has a completely known law — the defining property of a pivot.

Step 3. Bracket the pivot between symmetric quantiles: Pr⁡(−z1−α/2≤Z≤z1−α/2)=1−α\Pr(-z_{1-\alpha/2}\le Z\le z_{1-\alpha/2})=1-\alpha. Why: the standard normal is symmetric about zero, so putting α/2\alpha/2 probability in each tail leaves exactly 1−α1-\alpha in the centre, and the quantile z1−α/2=Φ−1(1−α/2)z_{1-\alpha/2}=\Phi^{-1}(1-\alpha/2) is a fixed tabulated number, 1.9599641.959964 at 95%95\%.

Step 4. Invert the double inequality to isolate μ\mu: from −z1−α/2≤(Xˉ−μ)/(σ/n)≤z1−α/2-z_{1-\alpha/2}\le(\bar X-\mu)/(\sigma/\sqrt n)\le z_{1-\alpha/2} one gets Xˉ−z1−α/2σn≤μ≤Xˉ+z1−α/2σn\bar X - z_{1-\alpha/2}\tfrac{\sigma}{\sqrt n}\le\mu\le \bar X + z_{1-\alpha/2}\tfrac{\sigma}{\sqrt n}. Why: each manipulation — multiplying by σ/n>0\sigma/\sqrt n>0, subtracting Xˉ\bar X, negating and flipping the inequality — is an exact equivalence, so the probability 1−α1-\alpha transfers unchanged to the event that μ\mu lies in the interval. *Note: z0.975=Φ−1(0.975)=1.959964z_{0.975}=\Phi^{-1}(0.975)=1.959964 (rounded to 1.961.96) and z0.995=2.575829z_{0.995}=2.575829; the half-width z1−α/2 σ/nz_{1-\alpha/2}\,\sigma/\sqrt n scales as 1/n1/\sqrt n.*

Go deeper · Derivation B · 1 minThe Student-t interval when the variance is unknown
Derivation BThe Student-t interval when the variance is unknown

The goal is to repair the zz-interval for the realistic case where σ\sigma is unknown and must be estimated from the same data, showing that replacing σ\sigma by the sample ss turns the exact Gaussian pivot into an exact Student-tt pivot — heavier-tailed, and so producing a legitimately wider interval, the price for not knowing the spread. We keep the Gaussian sampling assumption, which is what makes the construction exact rather than asymptotic.

Step 1. Two independent building blocks exist for a Gaussian sample: Z=(Xˉ−μ)/(σ/n)∼N(0,1)Z=(\bar X-\mu)/(\sigma/\sqrt n)\sim N(0,1) and (n−1)s2/σ2∼χn−12(n-1)s^2/\sigma^2\sim\chi^2_{n-1}, and crucially Xˉ\bar X and s2s^2 are independent. Why: for normal data alone the sample mean and sample variance are statistically independent (a theorem of Fisher and Cochran), and the scaled variance follows a chi-square with n−1n-1 degrees of freedom because one degree is spent estimating the mean.

Step 2. Form the ratio T=Z/χn−12/(n−1)=(Xˉ−μ)/(s/n)T=Z/\sqrt{\chi^2_{n-1}/(n-1)}=(\bar X-\mu)/(s/\sqrt n), which by definition is distributed as Student-tt with n−1n-1 degrees of freedom. Why: the unknown σ\sigma cancels between the numerator's ZZ and the denominator's ss, leaving a quantity that still hides μ\mu but whose law is the parameter-free tn−1t_{n-1} — again a genuine pivot.

Step 3. Bracket and invert exactly as before: Pr⁡(∣T∣≤tn−1, 1−α/2)=1−α\Pr(|T|\le t_{n-1,\,1-\alpha/2})=1-\alpha gives μ∈Xˉ±tn−1, 1−α/2 s/n\mu\in\bar X\pm t_{n-1,\,1-\alpha/2}\,s/\sqrt n. Why: the tt distribution is symmetric, so the same two-tailed bracket applies, but its heavier tails force tn−1, 1−α/2>z1−α/2t_{n-1,\,1-\alpha/2}>z_{1-\alpha/2}, widening the interval to honestly absorb the uncertainty in ss. *Note: t9,0.975=2.262t_{9,0.975}=2.262 and t29,0.975=2.045t_{29,0.975}=2.045, both exceeding 1.961.96 and decreasing toward it as n→∞n\to\infty, where s→σs\to\sigma and tn−1→N(0,1)t_{n-1}\to N(0,1).*

Go deeper · Derivation C · 1 minConfidence intervals as inverted hypothesis tests
Derivation CConfidence intervals as inverted hypothesis tests

The goal is to prove the duality that unifies this whole subject: a 1−α1-\alpha confidence set is precisely the collection of parameter values a level-α\alpha test would fail to reject, so that whenever no clean pivot exists one can still manufacture a valid interval by inverting a family of tests. We attach to each candidate θ0\theta_0 the acceptance region A(θ0)A(\theta_0) of a level-α\alpha test of θ=θ0\theta=\theta_0, collect the accepted values, and show the resulting random set has coverage 1−α1-\alpha.

Step 1. A level-α\alpha test of H0:θ=θ0H_0:\theta=\theta_0 accepts the true null with the complementary probability, Pr⁡θ0(X∈A(θ0))=1−α\Pr_{\theta_0}(X\in A(\theta_0))=1-\alpha. Why: "level α\alpha" means the test rejects a true null at most a fraction α\alpha of the time, so it accepts a true null with probability 1−α1-\alpha — this is the single probabilistic input the whole argument needs.

Step 2. Define the inverted set C(X)={θ0:X∈A(θ0)}C(X)=\{\theta_0:X\in A(\theta_0)\}, so that membership is equivalent to acceptance: θ0∈C(X)  ⟺  X∈A(θ0)\theta_0\in C(X)\iff X\in A(\theta_0). Why: the definition simply relabels "the data accept θ0\theta_0" as "θ0\theta_0 belongs to the set", converting a family of yes/no test decisions into one region of parameter space.

Step 3. Evaluate the coverage at the true θ\theta: Pr⁡θ(θ∈C(X))=Pr⁡θ(X∈A(θ))=1−α\Pr_\theta(\theta\in C(X))=\Pr_\theta(X\in A(\theta))=1-\alpha. Why: substituting the equivalence from Step 2 at the true value and using Step 1 shows the inverted set covers the truth with probability 1−α1-\alpha — hence C(X)C(X) is a valid confidence set, and inverting the zz-test reproduces exactly the zz-interval of the first derivation. *As a consistency check: inverting the two-sided zz-test of H0:μ=μ0H_0:\mu=\mu_0 returns exactly Xˉ±z1−α/2 σ/n\bar X\pm z_{1-\alpha/2}\,\sigma/\sqrt n, confirming that the duality reproduces the zz-interval of the first derivation.*

Limiting cases

How the standard Gaussian-mean interval specialises and degrades as the assumptions are varied:

CaseResultMeaning
Known variance, exactXˉ±z1−α/2 σn\bar X \pm z_{1-\alpha/2}\,\frac{\sigma}{\sqrt n}Exact for any nn when the data are Gaussian and σ\sigma is known; z0.975=1.959964z_{0.975}=1.959964.
Unknown variance, small nnXˉ±tn−1, 1−α/2 sn\bar X \pm t_{n-1,\,1-\alpha/2}\,\frac{s}{\sqrt n}Use Student-tt; e.g. t9,0.975=2.262t_{9,0.975}=2.262, wider than the zz-interval to pay for estimating σ\sigma.
Large nn (CLT regime)tn−1, 1−α/2⟶z1−α/2t_{n-1,\,1-\alpha/2}\longrightarrow z_{1-\alpha/2}The tt-interval collapses onto the zz-interval, and Xˉ\bar X is asymptotically normal even for non-Gaussian data.
Confidence level limitsα→0⇒z1−α/2→∞\alpha\to 0\Rightarrow z_{1-\alpha/2}\to\inftyDemanding certainty sends the half-width to infinity; α→1\alpha\to1 shrinks it to a useless point.
Discrete datacoverage ≥1−α\ge 1-\alphaNo interval hits 1−α1-\alpha exactly for all pp; Clopper–Pearson over-covers.

Worked examples

1 · A Gaussian mean with unknown variance (fully worked)

A resistor is measured ten times, giving 99.5,99.7,99.8,99.9,100.0,100.1,100.2,100.3,100.4,100.6 Ω99.5,99.7,99.8,99.9,100.0,100.1,100.2,100.3,100.4,100.6\ \Omega. The instrument's noise is not separately characterised, so σ\sigma is unknown. Report a 95%95\% confidence interval for the true resistance.

Step 1. Point estimates. The sample mean is Xˉ=110∑Xi=100.05 Ω\bar X=\tfrac1{10}\sum X_i=\mathbf{100.05\ \Omega}. The Bessel-corrected variance is s2=19∑(Xi−Xˉ)2s^2=\tfrac1{9}\sum(X_i-\bar X)^2, giving s=0.3375 Ωs=\mathbf{0.3375\ \Omega} and a standard error of the mean s/n=0.3375/10=0.1067 Ωs/\sqrt n=0.3375/\sqrt{10}=\mathbf{0.1067\ \Omega}.

Step 2. Pick the multiplier. Because σ\sigma is unknown and n=10n=10 is small, use Student-tt with n−1=9n-1=9 degrees of freedom: t9,0.975=2.262t_{9,0.975}=\mathbf{2.262}, appreciably larger than the Gaussian 1.961.96 — the tax for estimating the spread from only ten points.

Step 3. Assemble the interval. The half-width is t9,0.975 s/n=2.262×0.1067=0.241 Ωt_{9,0.975}\,s/\sqrt n=2.262\times0.1067=\mathbf{0.241\ \Omega}, so the 95%95\% interval is 100.05±0.241=[99.81, 100.29] Ω100.05\pm0.241=\mathbf{[99.81,\,100.29]\ \Omega}.

Step 4. Read it correctly. This does not say "P(μ∈[99.81,100.29])=0.95P(\mu\in[99.81,100.29])=0.95"; it says the rule that produced these endpoints brackets the true resistance 95%95\% of the time across imagined repetitions. Had σ=0.35 Ω\sigma=0.35\ \Omega been known a priori, the zz-interval would use 1.961.96 for a narrower half-width 0.217 Ω0.217\ \Omega. Result: μ=100.05±0.24 Ω\mu = 100.05\pm0.24\ \Omega, i.e. a 95% interval [99.81,100.29] Ω[99.81,100.29]\ \Omega.

2 · A detector efficiency: three intervals for one proportion (fully worked)

A calibration run fires n=10n=10 tagged particles at a detector and k=8k=8 register. Estimate the detection efficiency pp at 95%95\% confidence, comparing the Wald, Wilson, and Clopper–Pearson recipes.

Step 1. Point estimate and naive Wald interval. The estimate is p^=k/n=0.8\hat p=k/n=0.8, with Wald standard error 0.8×0.2/10=0.1265\sqrt{0.8\times0.2/10}=0.1265. The Wald interval 0.8±1.96×0.1265=[0.552, 1.048]0.8\pm1.96\times0.1265=\mathbf{[0.552,\,1.048]} spills past 1.01.0, an impossible efficiency, exposing the recipe's failure near the boundary.

Step 2. The Wilson score interval keeps the z2/nz^2/n continuity terms, staying inside [0,1][0,1]: with z=1.96z=1.96 its centre (p^+z2/2n)/(1+z2/n)(\hat p+z^2/2n)/(1+z^2/n) and half-width give [0.490, 0.943]\mathbf{[0.490,\,0.943]}, asymmetric about p^=0.8\hat p=0.8 and leaning toward the interior — exactly what a bounded parameter demands.

Step 3. The Clopper–Pearson interval inverts the binomial tails exactly through Beta quantiles, [ B−1(0.025;8,3), B−1(0.975;9,2) ]=[0.444, 0.975][\,B^{-1}(0.025;8,3),\,B^{-1}(0.975;9,2)\,]=\mathbf{[0.444,\,0.975]} — the widest of the three, because exact coverage for discrete data forces conservatism (≥0.95\ge0.95).

Step 4. Choose. Wald is disqualified here (it left the parameter space); Wilson is the pragmatic default for moderate nn; Clopper–Pearson is used when a coverage guarantee is mandatory. Had zero been registered (k=0k=0), Wald would collapse to {0}\{0\} with a false 95%95\% claim, while Clopper–Pearson still gives a sensible upper limit B−1(0.975;1,10)=0.308B^{-1}(0.975;1,10)=0.308. Result: efficiency near 0.80 with 95% interval [0.49, 0.94] (Wilson); Wald's [0.55, 1.05] is invalid.

Physics of the portrait

Confidence intervals are one of the youngest ideas a physicist uses daily — not distilled from folklore but constructed as a deliberate alternative to the Bayesian inverse probability that had dominated the nineteenth century.

Origins · 1 minJerzy Neyman and how this was discovered
JN
Jerzy Neyman
1894–1981 · founder of the frequentist theory of confidence intervals

Jerzy Neyman built the confidence interval as an act of philosophical engineering. Trained in Kharkiv and passing through Warsaw and London, he carried one conviction: statistical inference should make guarantees that do not depend on any prior belief about the parameter. In his 1937 paper "Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability" he defined the confidence interval exactly as we use it — a random interval whose coverage is fixed by construction and holds whatever the true parameter is. The move was radical because it relocated the probability from the parameter, where Bayes had put it, onto the procedure, sidestepping any prior. Neyman was explicit, almost combative, that "the parameter is not a random variable"; the confidence lives in the long-run behaviour of the rule, not in the single answer. With Egon Pearson he had already forged the theory of hypothesis testing whose acceptance regions his intervals invert, so testing and estimation became two faces of one framework. Emigrating to Berkeley in 1938, he built a great statistics department and trained a generation who carried the frequentist interval into physics, genetics, and clinical trials, where it remains the default way to quote an experimental uncertainty.

History
1908
— Gosset, writing as "Student", publishes the t-distribution for a small-sample mean
1927
— Wilson introduces the score interval for a binomial proportion
1934
— Clopper and Pearson construct the exact binomial confidence interval
1936
— Garwood derives the exact Poisson rate interval
1937
— Neyman formalises confidence intervals and the theory of coverage

Going further

Texts. Casella & Berger, Statistical Inference, 2nd ed., Ch. 9 (the definitive treatment of interval estimation and duality) · Cowan, Statistical Data Analysis (Oxford) for the physics conventions on Poisson and likelihood intervals · Stone & Goldbart, Mathematics for Physics (CUP) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed. · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed. Key numerical anchors: z0.975=Φ−1(0.975)=1.959964z_{0.975}=\Phi^{-1}(0.975)=1.959964, z0.995=2.575829z_{0.995}=2.575829; t9,0.975=2.262t_{9,0.975}=2.262, t29,0.975=2.045t_{29,0.975}=2.045; χ1,0.952=3.841\chi^2_{1,0.95}=3.841, χ2,0.6832=2.30\chi^2_{2,0.683}=2.30; the zero-count Poisson 95%95\% upper limit −ln⁡(0.05)=2.996-\ln(0.05)=2.996; worked-example intervals [99.81,100.29] Ω[99.81,100.29]\ \Omega and Wilson [0.490,0.943][0.490,0.943], Clopper–Pearson [0.444,0.975][0.444,0.975] for k/n=8/10k/n=8/10. All are standard tabulated or directly computable values.

Prerequisites. Random Variables and Probability Distributions · Cumulative Distribution Functions and Change of Variables · Gaussian (Normal) Distribution · Central Limit Theorem · Expectation, Variance and Moments. Leads to. Conditional Probability and Bayes' Theorem · Multivariate Gaussian Distribution · Poisson Distribution · Binomial and Bernoulli Distributions.

Ask the tutor: Ask me to walk through inverting any pivot or test — from the zz and tt intervals to Clopper–Pearson, Feldman–Cousins, or a two-parameter confidence ellipse — and I will build the interval and check its coverage with you step by step.

What is the difference between a confidence interval and a Bayesian credible interval?

They answer different questions. A frequentist confidence interval treats θ\theta as a fixed constant and makes the endpoints random; its 95%95\% is the long-run fraction of intervals that would cover θ\theta over repeated experiments. A Bayesian credible interval treats θ\theta as random, combines a prior with the likelihood through Bayes' theorem, and reports a range holding 95%95\% of the posterior — so "there is a 95%95\% probability θ\theta is in here" is legitimate for a credible interval and illegitimate for a confidence interval. They often nearly coincide for a Gaussian mean with a flat prior, which is why the distinction is so easily blurred, but they can differ sharply near boundaries or with informative priors.

How do I choose the confidence level, and why not always use 99.99%?

The level 1−α1-\alpha trades reliability against resolution, with no free lunch. A higher level widens the interval — going from 95%95\% to 99%99\% multiplies the Gaussian half-width by z0.995/z0.975=2.576/1.960≈1.31z_{0.995}/z_{0.975}=2.576/1.960\approx1.31, and demanding certainty (α→0\alpha\to0) sends the width to infinity, giving the useless θ∈(−∞,∞)\theta\in(-\infty,\infty). The right level is a domain convention: 95%95\% (about 2σ2\sigma) is the default in most sciences, while particle physics reserves 5σ5\sigma (α≈3×10−7\alpha\approx3\times10^{-7}) for discovery claims because the look-elsewhere effect and systematics demand extreme stringency. Pick the level before seeing the data.

When should I use the t-interval versus the z-interval?

Use the zz-interval only when the population standard deviation σ\sigma is genuinely known independently of the data — for instance a well-characterised instrument noise. In almost every real experiment σ\sigma is estimated from the same sample by ss, and then the correct pivot is Student-tt, giving Xˉ±tn−1,1−α/2 s/n\bar X\pm t_{n-1,1-\alpha/2}\,s/\sqrt n. The distinction matters most for small nn: at n=10n=10 the multiplier is 2.2622.262 rather than 1.961.96, a 15%15\% wider interval. As nn grows the two converge — by n=30n=30 it is 2.0452.045, by n=100n=100 within a percent of 1.961.96 — so for large samples the choice is immaterial and people often quote the zz value out of habit.

Why do binomial and Poisson intervals not achieve exact coverage?

Because the data are discrete. Coverage is a sum of probabilities over the finitely many outcomes that would land the true parameter inside the interval, and as the true pp (or rate) slides continuously, that sum jumps in steps each time an outcome crosses an endpoint. No construction can pin a step function to the constant 1−α1-\alpha for every parameter value, so one must choose: Clopper–Pearson and Garwood guarantee coverage never falls below 1−α1-\alpha but pay with conservatism (often over-covering to 9797–98%98\%), while approximate intervals like Wilson track 1−α1-\alpha on average but dip below it for unlucky values. This is a genuine engineering trade-off, not a defect — the right choice depends on whether under-coverage or width is the greater sin.

What is the confidence ellipsoid and why is its threshold not 1.96²?

For several parameters estimated jointly, the analogue of an interval is a confidence region, and for a multivariate Gaussian estimate it is the ellipsoid (θ^−θ)⊤Σ−1(θ^−θ)≤χp,1−α2(\hat{\boldsymbol\theta}-\boldsymbol\theta)^\top\Sigma^{-1}(\hat{\boldsymbol\theta}-\boldsymbol\theta)\le\chi^2_{p,1-\alpha}, with Σ\Sigma the covariance matrix and pp the number of parameters. The threshold is a chi-square quantile with pp degrees of freedom, growing with pp: for one parameter at 68.3%68.3\% it is 1.001.00, but for two parameters at the same 68.3%68.3\% it is 2.302.30. Reading off one-parameter error bars (Δχ2=1\Delta\chi^2=1) and calling the resulting box a joint region is a classic mistake — it badly under-covers, because the joint region must be larger to catch both parameters at once.

Does a wider interval mean a worse measurement?

Only at a fixed confidence level. There, a narrower interval is more informative, and the width shrinks as σ/n\sigma/\sqrt n — bought with better instruments (smaller σ\sigma) or more data (larger nn). But a wide interval at 99.99%99.99\% can beat a narrow one at 50%50\%, since the narrow one misses the truth half the time, so the honest figure of merit is the pair (level, width) together. The deepest trap is a suspiciously tight interval built on an underestimated σ\sigma or an unmodelled systematic: one that misses the truth is worse than an honest wide one.

Before this

Where this leads