Mathematics · Article
Confidence intervals and uncertainty
Turn a sampling distribution into an uncertainty procedure. Derive normal and binomial confidence intervals, distinguish exact from approximate coverage, and examine how dependence, selection, stopping and the target of prediction change the claim.
Back to MathematicsAfter reading, you can
- Define a confidence procedure for an explicit population quantity and sampling design.
- Explain repeated-sampling coverage without confusing it with a posterior probability or a population fraction.
- Derive mean and variance intervals from normal-model pivots and state their assumptions.
- Compare Wald, Wilson and exact binomial intervals, including zero counts and discrete coverage.
- Assess dependence, simultaneous reporting, selection and stopping as parts of the actual procedure.
- Distinguish confidence, prediction, tolerance and credible intervals, and report their scientific limits.
Ask which unknown quantity the interval concerns
An estimate records what a rule calculated from the observed data. An uncertainty interval adds a claim about the rule’s performance or about a probability model. Its meaning depends on the target and on the way the interval was constructed. Two brackets with the same numerical endpoints can carry quite different claims.
Suppose repeated readings are used to estimate a population mean μ. An interval for μ concerns the common average of that population under the stated model. An interval for the next individual reading concerns a new random value. An interval intended to contain a specified fraction of the population asks another question. Decide which quantity matters before choosing a formula.
The preceding lessons supplied the ingredients: an estimator, its sampling distribution, exact distributions in special models and large-sample approximations under stated assumptions. Here those ingredients become procedures that return sets of plausible parameter values with an explicit coverage property. A narrow set is useful only if its property applies to the actual experiment.
Begin with scalar targets and intervals on a line. The same logic extends to confidence sets for several parameters, to unbounded sets and to sets with separate pieces. Variance pivots, simultaneous coverage and sequential guarantees are deeper paths in this lesson. The following lessons develop testing, power, Bayesian inference and resampling in their own right.
Define the procedure before interpreting its level
Let the complete data be X, with joint law P_θ in a specified model. For a scalar target τ(θ), a confidence procedure returns C(X)=[L(X),U(X)]. The endpoints are calculated from the data and known design information; they cannot require the unknown truth. A finite-sample level 1−α guarantee means P_θ{τ(θ)∈C(X)}≥1−α for every admissible θ, with 0<α<1.
If θ includes nuisance parameters, the guarantee must also hold over their stated range. For example, an interval for a normal mean with unknown variance must be calibrated for every allowed positive variance, rather than only for the variance estimate observed in one data set. An assumed known covariance matrix and an estimated covariance matrix are different inputs to a procedure.
The coverage function is θ↦P_θ{τ(θ)∈C(X)}. Its infimum over the model is the confidence coefficient; an infimum need not be attained. An exact pivotal construction may have equality at every parameter. A conservative construction can have coverage above the nominal level. A nominal label on an approximation does not establish a uniform finite-sample lower bound.
The complete procedure includes how observations were selected, when sampling stopped, which analyses were tried and which interval was reported. Computing endpoints with a familiar formula is the final step of that procedure. Its coverage cannot be assessed by silently replacing the actual experiment with a simpler one.
The interval varies across repetitions; the parameter is fixed
Under the fixed-parameter frequentist model, the unknown target is held fixed while hypothetical data sets vary. Each data set gives another interval. A procedure with exact 95% coverage contains that fixed target with probability 0.95 across repetitions of the complete experiment. The random object in that statement is the interval.
After one data set x is observed, C(x) either contains the true target or does not. The coverage property alone does not supply a posterior probability of 0.95 for the target being inside those particular endpoints. It also does not say that 95% of the observations, or 95% of future individual values, lie in a confidence interval for a mean.
Even an exact procedure does not force exactly 95 covering intervals in every collection of 100 repetitions. If those repetitions are independent and each has coverage exactly 0.95, the number covering is Binomial(100,0.95), with expectation 95 and variance 4.75. A visual demonstration should display the coverage it actually generated, rather than move intervals until a predetermined count is reached.
n=16; μ=10; known σ=2; seed=158; repetitions=32; level=19/20.
IID normal readings, fixed μ and genuinely known positive σ. Independent hypothetical experiments calibrate coverage; the fixed32-bit sequence only draws a reproducible illustration.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Interval half-width | z_((1+19/20)/2) × (2)/√16 | ≈0.979982 | Known-spread normal mean CI; measurement units |
| Theoretical coverage | 19/20 | ≈0.95 | Exact under the iid normal model; quantile evaluated numerically |
| Realised covering count | 31 | ≈31 | Illustration, not forced to its expectation |
| Expected count under independent repetitions | 152/5 | ≈30.4 | A repeated-experiment expectation, not a fixed quota |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Repetition 1 | ≈8.75392885919245 | ≈10.7138928437325 | ≈9.73391085146247 | Contains declared truth | covers the fixed mean |
| Repetition 2 | ≈9.15936714220168 | ≈11.1193311267417 | ≈10.1393491344717 | Contains declared truth | covers the fixed mean |
| Repetition 3 | ≈7.66875740630217 | ≈9.62872139084222 | ≈8.64873939857219 | Misses declared truth | misses the fixed mean |
| Repetition 4 | ≈9.04064427255184 | ≈11.0006082570919 | ≈10.0206262648219 | Contains declared truth | covers the fixed mean |
| Repetition 5 | ≈9.26193210522224 | ≈11.2218960897623 | ≈10.2419140974923 | Contains declared truth | covers the fixed mean |
| Repetition 6 | ≈9.37336953896467 | ≈11.3333335235047 | ≈10.3533515312347 | Contains declared truth | covers the fixed mean |
| Repetition 7 | ≈8.95412532392918 | ≈10.9140893084692 | ≈9.93410731619921 | Contains declared truth | covers the fixed mean |
| Repetition 8 | ≈8.88322783621479 | ≈10.8431918207548 | ≈9.86320982848482 | Contains declared truth | covers the fixed mean |
| Repetition 9 | ≈9.61960328294043 | ≈11.5795672674805 | ≈10.5995852752105 | Contains declared truth | covers the fixed mean |
| Repetition 10 | ≈9.2244217508327 | ≈11.1843857353728 | ≈10.2044037431027 | Contains declared truth | covers the fixed mean |
| Repetition 11 | ≈9.00168785794459 | ≈10.9616518424846 | ≈9.98166985021461 | Contains declared truth | covers the fixed mean |
| Repetition 12 | ≈9.7886612691538 | ≈11.7486252536939 | ≈10.7686432614238 | Contains declared truth | covers the fixed mean |
| Repetition 13 | ≈9.88345320726748 | ≈11.8434171918075 | ≈10.8634351995375 | Contains declared truth | covers the fixed mean |
| Repetition 14 | ≈8.71708281629027 | ≈10.6770468008303 | ≈9.69706480856029 | Contains declared truth | covers the fixed mean |
| Repetition 15 | ≈8.32534767435891 | ≈10.285311658899 | ≈9.30532966662894 | Contains declared truth | covers the fixed mean |
| Repetition 16 | ≈8.51823966412164 | ≈10.4782036486617 | ≈9.49822165639167 | Contains declared truth | covers the fixed mean |
| Repetition 17 | ≈9.67857092122028 | ≈11.6385349057603 | ≈10.6585529134903 | Contains declared truth | covers the fixed mean |
| Repetition 18 | ≈9.30157948120097 | ≈11.261543465741 | ≈10.281561473471 | Contains declared truth | covers the fixed mean |
| Repetition 19 | ≈9.09591353184459 | ≈11.0558775163846 | ≈10.0758955241146 | Contains declared truth | covers the fixed mean |
| Repetition 20 | ≈9.36681790923701 | ≈11.3267818937771 | ≈10.346799901507 | Contains declared truth | covers the fixed mean |
| Repetition 21 | ≈9.3064012148906 | ≈11.2663651994307 | ≈10.2863832071606 | Contains declared truth | covers the fixed mean |
| Repetition 22 | ≈8.9807007504816 | ≈10.9406647350216 | ≈9.96068274275162 | Contains declared truth | covers the fixed mean |
| Repetition 23 | ≈8.75360606611325 | ≈10.7135700506533 | ≈9.73358805838327 | Contains declared truth | covers the fixed mean |
| Repetition 24 | ≈9.11746135323137 | ≈11.0774253377714 | ≈10.0974433455014 | Contains declared truth | covers the fixed mean |
| Repetition 25 | ≈9.09709687554854 | ≈11.0570608600886 | ≈10.0770788678186 | Contains declared truth | covers the fixed mean |
| Repetition 26 | ≈8.28798169947092 | ≈10.247945684011 | ≈9.26796369174095 | Contains declared truth | covers the fixed mean |
| Repetition 27 | ≈9.24999500568939 | ≈11.2099589902294 | ≈10.2299769979594 | Contains declared truth | covers the fixed mean |
| Repetition 28 | ≈9.45917864389683 | ≈11.4191426284369 | ≈10.4391606361669 | Contains declared truth | covers the fixed mean |
| Repetition 29 | ≈8.90608338716473 | ≈10.8660473717048 | ≈9.88606537943476 | Contains declared truth | covers the fixed mean |
| Repetition 30 | ≈9.23848437071875 | ≈11.1984483552588 | ≈10.2184663629888 | Contains declared truth | covers the fixed mean |
| Repetition 31 | ≈8.57082866770421 | ≈10.5307926522443 | ≈9.55081065997424 | Contains declared truth | covers the fixed mean |
| Repetition 32 | ≈9.05950928525821 | ≈11.0194732697983 | ≈10.0394912775282 | Contains declared truth | covers the fixed mean |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
This probability calculation is conditional on the declared model and design being appropriate. More precision under that model does not remove a systematic measurement offset, repair selection of an unrepresentative population or establish a causal interpretation. Those are scientific questions about the experiment and its assumptions.
Invert a probability statement whose calibration is known
A pivot combines the data and unknown parameter so that its distribution does not depend on unknown parameters. If a pivot Q(X,θ) has known lower and upper quantiles qₗ and qᵤ, begin with a probability statement such as P_θ{qₗ≤Q(X,θ)≤qᵤ}=1−α. Solve those same inequalities for the target, preserving their direction and the parameter’s domain.
A more general construction chooses an acceptance region A_θ in the data space with P_θ{X∈A_θ}≥1−α. Define C(x)={θ:x∈A_θ}. Then the events {θ∈C(X)} and {X∈A_θ} are identical. This is why valid inversion gives coverage. The resulting set need not always be a single finite interval.
For an interval, state whether quantiles are lower-tail quantiles and how the tail error is divided. Equal-tailed two-sided intervals use α/2 in each tail. A one-sided bound uses its entire allowed error in one tail. Exchanging these quantiles changes the procedure, even if both results are called 95% bounds.
Separate numerical approximation from mathematical approximation. A numerical value such as 1.96 approximates an exact normal quantile. Replacing a nonnormal sampling law by a normal limit is a different approximation with additional assumptions. High precision in the quantile calculation cannot repair a poor approximation to the sampling law.
Derive the normal mean interval when population spread is known
Assume X₁,…,Xₙ are iid N(μ,σ²), with n≥1 and σ>0 known. The sample mean M has law N(μ,σ²/n). Therefore Z=(M−μ)/(σ/√n) has the standard normal law. Let Φ be its distribution function and z_q=Φ⁻¹(q). For z=z_(1−α/2), the event −z≤Z≤z has probability 1−α.
Multiply by the positive quantity σ/√n and solve for μ. The resulting interval is [M−zσ/√n,M+zσ/√n]. Under this exact iid normal model its coverage is exactly 1−α for every μ. The standard error σ/√n has the same measurement units as the readings, so the endpoints do too.
For 95% coverage, z_0.975≈1.9599639845, commonly displayed as 1.96. The quantile notation specifies the exact mathematical procedure; endpoints calculated from the printed decimal are numerical approximations. If σ is obtained from an external finite sample rather than genuinely treated as known, its uncertainty has not disappeared merely because a number was inserted in this formula.
One-sided statements have different endpoints. An upper 1−α bound for μ is M+z_(1−α)σ/√n; the associated confidence set extends to −∞. A lower bound is M−z_(1−α)σ/√n and extends to +∞. Which tail matters should follow the question and design, rather than a preference formed after seeing the estimate.
Estimating the spread changes the reference distribution
Now retain the iid normal model with σ²>0, but let both μ and σ² be unknown and n≥2. Define S²=Σᵢ(Xᵢ−M)²/(n−1). The normal-model results are (n−1)S²/σ²~χ²_(n−1) and independence of M and S². These are stronger statements than unbiasedness of S².
The ratio T=(M−μ)/(S/√n) then has Student’s t distribution with ν=n−1 degrees of freedom, wherever S>0. Invert its central probability statement to get [M−t_(ν,1−α/2)S/√n,M+t_(ν,1−α/2)S/√n]. The t quantile accounts for the estimated spread through this exact ratio law.
Simply replacing σ by S in the normal pivot does not leave it standard normal. For small ν the t quantile can be substantially larger than its normal counterpart. As ν grows, t quantiles approach normal quantiles; that limiting fact does not make every finite data set normal or independent.
Under the stated continuous normal model with positive variance, S=0 has probability zero; the displayed ratio is undefined there. A theoretical interval rule can specify a value on that null event without changing its model coverage. Actual all-equal rounded readings are a reason to examine measurement resolution and assumptions, rather than claim that the population mean has been learned without uncertainty.
State the limit argument when exact normal sampling is unavailable
For iid observations with a finite positive variance σ² and n≥2, define the studentized quotient √n(M−μ)/S on S>0 and set it to 0 on S=0. A nonnormal model can give S=0 positive probability at finite n. Since S² converges in probability to σ²>0, that event’s probability tends to zero. The central limit theorem and consistency of S² then justify the extended quotient’s N(0,1) limit. One complete large-sample interval rule returns M±z_(1−α/2)S/√n on S>0 and the whole real line on S=0. Using a t quantile that tends to z gives the same first-order limit under those assumptions.
Here the finite-sample coverage is generally approximate, rather than the exact t coverage of normal observations. Its quality depends on the sampling law and regime. Skewness, rare large values and slow convergence can matter. No universal sample-size threshold makes the approximation exact or establishes that a chosen real data set meets its conditions.
A Cauchy population has no finite mean, so a purported interval for its population mean lacks that target in the first place. Infinite-variance models do not meet the finite-variance argument above; other limit results require their own hypotheses. Dependence or clustered data also changes the variance and can require a different central limit theorem.
Diagnostics and scientific knowledge can expose problems with a proposed model; they do not prove that every unobserved tail or selection mechanism is harmless. State the approximation, identify the target and design, and assess the plausible sources of error. More displayed digits or more simulated repetitions under the same assumed model do not establish its real-world adequacy.
Precision changes predictably under a fixed valid model
In the known-σ normal model, the two-sided interval length is 2zσ/√n. Holding σ and the confidence level fixed, doubling n divides the length by √2, while multiplying n by four halves it. Raising the confidence level raises z and makes the interval wider. These comparisons hold the target, model and procedure fixed.
If the design requires a half-width no greater than a chosen h>0, the known-σ normal calculation gives n≥(zσ/h)², rounded upward to an integer. This plans the width of that particular confidence interval. It is not automatically a power calculation for a hypothesis test, and an uncertain planning value for σ remains an assumption.
For the t interval, the realised width depends on S and its quantile also depends on n. A planned width based on a guessed spread is therefore not a deterministic promise about the realised sample. Different designs can spend the same number of observations very differently: correlated repeats may provide much less information about a mean than independent ones.
A shorter interval is not intrinsically a better procedure. The interval that always returns one point can be very short and have poor coverage. Comparisons need a common coverage requirement, target and scientific design, as well as length or other loss criteria. Exact discrete procedures can be conservative and wider because their allowed errors cannot always be spent continuously.
A variance interval reverses reciprocal endpoints
As an optional extension, retain iid N(μ,σ²) observations, unknown μ and σ²>0, and n≥2. The pivot V=(n−1)S²/σ² has a chi-square law with ν=n−1 degrees of freedom. Write q_r for that law’s lower-tail r quantile. The central event q_(α/2)≤V≤q_(1−α/2) has probability 1−α.
Both quantiles are positive. Solving for σ² reverses their reciprocal order: [(n−1)S²/q_(1−α/2),(n−1)S²/q_(α/2)]. The interval is generally asymmetric around S². Its endpoints have squared measurement units. Taking square roots gives a confidence interval for the positive standard deviation in ordinary measurement units.
S²=4; n=16; ν=15; level=19/20.
IID normal observations; unknown mean and positive population variance. Sample variance uses n−1. An all-equal rounded record is held rather than treated as certainty.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Lower chi-square quantile | χ²_(15,1/40) | ≈6.26214 | Lower-tail convention; numerical quantile |
| Upper chi-square quantile | χ²_(15,39/40) | ≈27.4884 | Lower-tail convention; numerical quantile |
| Variance interval lower | 15×(4)/χ²_(15,39/40) | ≈2.18274 | Squared measurement units |
| Variance interval upper | 15×(4)/χ²_(15,1/40) | ≈9.58139 | Squared measurement units |
| SD interval lower | √(variance lower endpoint) | ≈1.47741 | Ordinary measurement units |
| SD interval upper | √(variance upper endpoint) | ≈3.09538 | Ordinary measurement units |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Normal variance CI | ≈2.18273946745699 | ≈9.58139248348903 | ≈4 | Not the target of this row | S² shown as reference, not a claim that it is the truth |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
The exact chi-square pivot uses the normal sampling law. The fact that S² is unbiased under a larger iid finite-variance class does not make this same chi-square interval exact throughout that class. Unbiasedness is one expectation identity; an exact reference distribution is much more information.
Keep the lower-tail quantile convention visible when using software or a table. A function labelled by an upper-tail probability can use the complementary input. Reciprocal inversion is also why the larger chi-square quantile belongs in the lower variance endpoint, rather than beside the corresponding upper endpoint by visual analogy.
Transform the set together with the target
Suppose C(X)=[L,U] covers a scalar parameter θ with a stated probability, and g is strictly increasing on the parameter domain. The transformed interval [g(L),g(U)] has the same coverage for g(θ), with endpoints interpreted within that domain. For a strictly decreasing transformation, reverse their order: [g(U),g(L)]. The event is the same after applying the one-to-one transformation.
This is a set transformation, not a claim that g of an unbiased estimator remains unbiased or that a symmetric interval remains symmetric. A positive rate and its reciprocal mean duration, for example, have different units and exchange their endpoint order. If a method first gives values outside a target’s domain, explain the domain treatment rather than apply an undefined logarithm or reciprocal.
For a transformation that is not one-to-one, the image g(C) still covers g(θ) whenever C covers θ, so its coverage is at least that of C. Equality need not follow: g(θ) can belong to the image even when θ lies outside C. The image can require considering an interior extremum, rather than transforming only the two endpoints.
The same care applies to approximate intervals produced by a delta method. A first-order normal approximation can fail where the derivative vanishes or at a boundary. The estimator lesson’s squared-normal example illustrates that a different limiting distribution and scale may enter. A valid uncertainty claim follows the relevant sampling law, not merely a change of axis labels.
For binary data, inspect the boundaries before trusting a normal formula
Let K~Binomial(n,p), with fixed n≥1, independent trials and one common p∈[0,1]. The observed proportion is p̂=K/n. The familiar Wald interval uses p̂±z√[p̂(1−p̂)/n], with z=z_(1−α/2). It replaces the unknown variance in a normal approximation by an estimated variance.
At K=0 or K=n, that estimated variance is zero and the Wald interval collapses to a single endpoint. Yet a rare positive probability can easily produce no successes in a small sample. Other counts can produce an endpoint below 0 or above 1. These are signs that the procedure needs examination in the binomial model, rather than reasons to interpret its nominal label as an exact guarantee.
Intersecting a Wald interval with [0,1] removes impossible parameter values from the displayed set, but does not fix its coverage for a true p already in [0,1]. Membership of that p is unchanged by the intersection. In particular, a collapsed zero-count interval still misses every p>0.
Binomial formulas refer to the fixed-n common-probability independent-trial model. Sampling without replacement, clustered responses, heterogeneous trial probabilities or a data-dependent stop can require another law. A binary outcome label does not, by itself, establish that a binomial model is the right experiment.
Wilson intervals solve a different inequality
Instead of estimating the standard error at p̂ before inversion, start from the score inequality n(p̂−p)²≤z²p(1−p). For each candidate p this compares the deviation with its binomial-model variance. Treat it as an inequality in p and collect the candidates that satisfy it.
Expanding gives (n+z²)p²−(2np̂+z²)p+np̂²≤0. Since the leading coefficient is positive, the accepted values lie between its roots. With d=1+z²/n, the centre is (p̂+z²/(2n))/d and the half-width is (z/d)√[p̂(1−p̂)/n+z²/(4n²)]. These are the two-sided Wilson endpoints.
The roots lie in [0,1] in this binomial setting. At K=0 the lower endpoint is exactly 0 and the upper is z²/(n+z²); at K=n the reflected endpoints are n/(n+z²) and 1. These algebraic forms also avoid interpreting tiny cancellation errors in a computer’s general root formula as meaningful probabilities.
The quadratic inversion is exact algebra, but using a standard normal critical value is a distributional approximation. Wilson coverage is not guaranteed to be at least the nominal level at every finite n and p. Its boundary behaviour improves the zero-width Wald problem without converting a normal calibration into exact binomial tail inversion.
Exact binomial tails give a finite-sample guarantee
A Clopper–Pearson interval uses the binomial law itself. For an observed count k with 0<k≤n, define its lower endpoint L_k by P_(L_k){K≥k}=α/2, and set L_0=0. For 0≤k<n, define its upper endpoint U_k by P_(U_k){K≤k}=α/2, and set U_n=1. The interior roots are unique because the relevant tails are monotone in p.
These definitions use the fixed n and include closed endpoints. The same roots can be written as beta-distribution quantiles: L_k is the α/2 quantile of Beta(k,n−k+1), when k>0, and U_k is the 1−α/2 quantile of Beta(k+1,n−k), when k<n. These beta formulas express the binomial tail identities; they do not require assigning a Bayesian prior.
To see the coverage guarantee, fix the true p. The event L_K>p can occur only for counts whose upper binomial tail at p is below α/2. If there are such counts, take their smallest one; the entire error event is its upper-tail event and has probability at most α/2. The event U_K<p is controlled by the analogous lower-tail argument. A union bound makes total noncoverage at most α.
Thus exact means inversion of the finite binomial sampling law, with coverage at least 1−α throughout its parameter space. Discreteness generally prevents equality at every p and can make the interval conservative. Numerically solving the tails introduces a separate root-approximation error, so a computed decimal needs a documented tolerance and boundary treatment.
No observed successes does not prove a zero probability
With k=0, the two-sided equal-tailed Clopper–Pearson interval is [0,1−(α/2)^(1/n)]. Its upper endpoint solves P_p(K=0)=(1−p)ⁿ=α/2. With k=n, reflection gives [(α/2)^(1/n),1]. The uncertainty is nonzero even though the empirical variance used by the Wald formula vanishes.
A one-sided 1−α upper bound after zero successes instead solves (1−p)ⁿ=α, giving [0,1−α^(1/n)]. The one-sided and two-sided bounds use different tail allocations. In twenty trials at the 95% level their upper endpoints are approximately 0.139108 and 0.168433 respectively. They should not be exchanged while keeping the interpretation unchanged.
For the one-sided zero-count bound, write 1−α^(1/n)=1−exp[(log α)/n]. When n is sufficiently large for the first-order exponential approximation, this is approximately −log(α)/n. At α=0.05, −log(α)≈2.9957 gives the familiar approximate 3/n rule. It is not the exact two-sided 95% formula and can be inaccurate for a small n.
Under a true p>0, the event K=0 has positive probability (1−p)ⁿ. For p=0.01 and n=20 it is approximately 0.817907. A rule returning [0,0] on that event therefore misses this true probability in most such samples. Absence of observed successes and evidence that the probability is exactly zero are different statements.
Calculate what the procedure covers, rather than trusting its label
For a fixed binomial procedure with interval I(k) at each count, its coverage at p is c(p)=Σ_(k=0)^n 1{p∈I(k)} C(n,k)pᵏ(1−p)^(n−k). This sums the probabilities of precisely those possible samples whose intervals cover the specified truth. It is a finite sampling-law calculation, rather than a simulation.
At n=10 and p=0.05, a nominal two-sided 95% Wald interval covers for counts 1,2,3, but not for count 0. The corresponding coverage is approximately 0.400235. Wilson covers for counts 0,1, giving approximately 0.913862. Clopper–Pearson covers for counts 0,1,2, giving approximately 0.988496. The worked calculation gives the exact finite fractions behind these decimals.
n=10; k=0; assessment p=1/20; level=19/20; prior for green row=Beta(1,1).
Fixed n, independent Bernoulli trials with one common p. CP tails and credible-rule coverage membership use exact rational sums. Wilson/Wald assess numerical quantile endpoints; solver error is separate from sampling calibration.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Wald: lower endpoint | k/n − z√[(k/n)(1−k/n)/n] | ≈0 | Numerical endpoint; probability units |
| Wald: upper endpoint | k/n + z√[(k/n)(1−k/n)/n] | ≈0 | Original endpoint, not silently clipped |
| Wald: finite coverage at assessment p | 819680384663/2048000000000 | ≈0.400235 | Σ Bin(n,p) atoms for counts {1,2,3}. Membership uses displayed numerical normal-quantile endpoints. |
| Wilson: lower endpoint | Lower score-quadratic root | ≈0 | Numerical endpoint; probability units |
| Wilson: upper endpoint | Upper score-quadratic root | ≈0.277533 | Original endpoint, not silently clipped |
| Wilson: finite coverage at assessment p | 9357943235591/10240000000000 | ≈0.913862 | Σ Bin(n,p) atoms for counts {0,1}. Membership uses displayed numerical normal-quantile endpoints. |
| Clopper–Pearson: lower endpoint | Equal-tailed binomial tail root (explicit0 boundary) | ≈0 | Numerical endpoint; probability units |
| Clopper–Pearson: upper endpoint | Equal-tailed binomial tail root (explicit1 boundary) | ≈0.308497 | Original endpoint, not silently clipped |
| Clopper–Pearson: finite coverage at assessment p | 2530550893109/2560000000000 | ≈0.988496 | Σ Bin(n,p) atoms for counts {0,1,2}. Membership from exact rational inclusive binomial tails. |
| Beta(1,1) posterior: lower endpoint | Beta(k+1,n−k+1) alpha/2 quantile | ≈0.00229897 | Numerical endpoint; probability units |
| Beta(1,1) posterior: upper endpoint | Beta(k+1,n−k+1) 1−alpha/2 quantile | ≈0.284914 | Original endpoint, not silently clipped |
| Beta(1,1) posterior: finite coverage at assessment p | 9357943235591/10240000000000 | ≈0.913862 | Σ Bin(n,p) atoms for counts {0,1}. External frequentist assessment of a posterior rule. |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Wald | ≈0 | ≈0 | ≈0 | Misses declared truth | Plug-in normal interval; original untruncated endpoints retained |
| Wilson | ≈0 | ≈0.277532799862889 | ≈0 | Contains declared truth | Normal-score calibration; not uniformly nominal finite coverage |
| Clopper–Pearson | ≈0 | ≈0.308497107818761 | ≈0 | Contains declared truth | Finite-binomial confidence construction, at-least nominal in its ideal definition |
| Beta(1,1) posterior | ≈0.00229897221381427 | ≈0.284914152918154 | ≈0 | Contains declared truth | Posterior credible interval under uniform prior; no uniform frequentist guarantee |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
The Wilson example explicitly shows why exact algebraic inversion does not imply a uniform 95% finite-sample guarantee. The Clopper–Pearson value at this p illustrates conservatism, while its general lower guarantee comes from the tail proof. One favourable value, or a finite numerical grid of values, is not a proof about every parameter in a continuum.
Coverage functions for discrete procedures can jump when p crosses an endpoint I(k), because a positive probability mass enters or leaves the acceptance set. Such jumps are part of the method, rather than sampling noise. A plotted curve must preserve their meaning and distinguish exact enumeration, numerical root precision and any interpolation used for display.
Use the experiment’s variance and distribution
For any square-integrable sample, Var(M)=n⁻²ΣᵢΣⱼCov(Xᵢ,Xⱼ). The familiar σ²/n follows when the common variance is σ² and all cross covariances vanish. Under dependence those terms remain. A normal marginal distribution for each observation does not, by itself, make the iid interval valid.
Consider sixteen jointly normal readings with common unknown mean μ, each with variance 4 and every distinct pair correlation 0.2. Their sample mean estimates μ and has variance (4/16)[1+15(0.2)]=1. An iid calculation would use variance 1/4. Its nominal 95% mean interval has only 2Φ(z_0.975/2)−1≈0.672905 coverage under this stated joint law. The correct known-covariance normal interval for μ uses the actual standard error 1.
n=16; σ=2; rho=1/5; observed mean=10; level=19/20.
Jointly Gaussian readings share one common unknown mean μ; the target is μ. Marginal variance and equicorrelation0<=rho<=1 are known. No generic dependent-data CLT, estimated covariance degrees of freedom or effective-n substitution is claimed.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Finite mean variance factor | 4 | ≈4 | Known equicorrelation covariance model |
| True mean variance | sigma²×(4)/16 | ≈1 | Squared measurement units |
| Naive iid standard error | sigma/√16 | ≈0.5 | Incorrect under nonzero correlation |
| Actual known-covariance standard error | sigma√((4)/16) | ≈1 | Measurement units |
| Naive iid interval actual coverage | 2Phi(z/√(4))−1 | ≈0.672905 | Exact stated Gaussian model, numerical normal CDF |
| Known-covariance interval coverage | 19/20 | ≈0.95 | Exact joint-Gaussian calibration; covariance assumed known |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Naive iid normal CI | ≈9.02001800772998 | ≈10.97998199227 | ≈10 | Not the target of this row | Coverage is assessed over repeated joint Gaussian samples, not from whether this observed interval contains its own centre. |
| Known-covariance normal CI | ≈8.04003601545995 | ≈11.9599639845401 | ≈10 | Not the target of this row | Coverage is assessed over repeated joint Gaussian samples, not from whether this observed interval contains its own centre. |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Simple random sampling without replacement gives a different correction. For a fixed population with integer N≥2, variance v_N defined with denominator N, and integer 1≤n≤N, Var(M)=(v_N/n)(N−n)/(N−1). At a census the sampling variance is zero. The one-entry census N=n=1 is also fixed and has variance zero directly, without using the quotient involving N−1.
These variance identities do not automatically provide a normal pivot or t degrees of freedom. A variance-matched effective sample size can describe mean precision in a particular model, but is not universally an exact binomial trial count or an exact t degree of freedom. Cluster, time-series and survey procedures need their own distributional or limit justification.
A family of intervals needs a family-level statement
Suppose m parameters are each reported with a marginal 95% interval. This means each individual procedure has that coverage under its assumptions. It does not mean that all m intervals cover together with probability 95%. The joint event requires all of the individual coverage events to hold.
If the coverage events are independent and each has probability exactly 0.95, the all-cover probability is 0.95ᵐ. For two intervals it is 0.9025; for ten it is approximately 0.598737. The product calculation requires independence. Dependence can change the joint probability while leaving the individual probabilities unchanged.
A simple simultaneous guarantee uses marginal error bounds α₁,…,αₘ whose sum is at most α. By the union bound, the probability of at least one miss is at most Σαⱼ≤α. Independence is unnecessary for this Bonferroni guarantee. Equal allocation sets αⱼ=α/m, so two-sided normal intervals use z_(1−α/(2m)).
The family must reflect the analyses actually examined under the reporting plan. Counting only the most interesting displayed intervals after looking at many outcomes does not establish a family-level guarantee for that selection process. More tailored simultaneous methods can use structure and dependence; their own assumptions and calibration still matter.
Choosing an interval after looking changes the rule
A predesignated interval and the interval selected for its most extreme apparent result are different procedures. The distinction concerns the actual reporting rule, not a change in the arithmetic used to draw each interval. A selection rule can preferentially choose intervals whose estimates landed unusually far from the truth.
For a clean counterexample, let ten independent standard normal estimates all have true means zero. Attach the ordinary interval Zⱼ±z_0.975 to each, then report the one with the largest |Zⱼ|. The selected interval contains zero exactly when every |Zⱼ|≤z_0.975. Its coverage is therefore 0.95¹⁰≈0.598737, even though each predesignated interval has exact 95% coverage.
This calculation uses equal true means, independent standardized estimates and that specific selection rule. It is an explicit counterexample to automatic preservation of a nominal label, rather than a universal formula for every kind of selection. Selecting by another criterion or under another dependence structure gives another procedure to analyse.
A simultaneous confidence family covers the selected member whenever it covers all members. Other selective-inference methods target guarantees for specified selection events. Neither interpretation is supplied merely by printing the original unadjusted interval beside a result chosen after the data were examined.
The time of reporting is part of coverage
A fixed-sample guarantee need not survive a decision to keep collecting data until an interval excludes a chosen reference value. To see this without confusing dependent cumulative looks with independent ones, consider independent fresh batches. Each batch gives an exact 95% interval for the same true mean zero. Stop at the first of ten batches whose interval excludes zero; if none does, report batch ten.
The reported interval covers zero exactly when none of the ten intervals misses. Under the stated independence, coverage is again 0.95¹⁰, approximately 0.598737. The reference zero is fixed in advance and equals the truth in this counterexample. This is not a product formula for overlapping cumulative intervals, which share observations.
m=10; marginal level=19/20; scheme=independent.
Independent standardized normal estimates, every true mean0. Selection and fresh-batch stopping are precisely specified counterexamples, not universal selection or cumulative-look formulas.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Predesignated marginal coverage | 19/20 | ≈0.95 | Exact normal interval for one fixed parameter |
| All ordinary intervals cover | 6131066257801/10240000000000 | ≈0.598737 | Independent coverage events; all true standardized means0 |
| Largest-|Z| selected interval covers0 | 6131066257801/10240000000000 | ≈0.598737 | For equal true means0, selection covers exactly when every interval covers |
| Fresh-batch stopped interval covers0 | 6131066257801/10240000000000 | ≈0.598737 | Stop at first exclusion of the predeclared true reference0, else report batch m; batches independent |
| Bonferroni all-cover probability under independence | 97393677359695041798001/102400000000000000000000 | ≈0.95111 | Marginal level1−alpha/m; product for this independent example |
| Bonferroni general lower guarantee | 19/20 | ≈0.95 | Union bound applies to valid marginal procedures without requiring independence |
| Bonferroni normal critical value | z_(1−(1/20)/(2×10)) | ≈2.80703 | Wider intervals account for the whole prespecified family |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Preplanned finite-look procedures can allocate a total error budget across their looks and use a union bound. For an unbounded sequence, a confidence sequence instead requires P_θ{τ(θ)∈C_t for every t}≥1−α under its sampling assumptions. Requiring the joint event across all times is stronger than requiring separate 1−α coverage at each fixed time.
The time-uniform event implies coverage at an almost surely finite chosen stopping time. It does not assert the same coverage conditional on every realised stopping time or selected data pattern. Constructing efficient confidence sequences needs additional theory; the point here is to identify the stronger guarantee rather than reuse a fixed-time formula without its calibration.
A mean, one new item and a population fraction are different targets
Under the iid normal model, the mean interval estimates a fixed μ. A prediction interval instead targets an independent future reading X_new from the same population. Since Var(X_new−M)=σ²(1+1/n), the future reading’s individual variation remains even when M becomes precise.
With unknown σ²>0 and n≥2, (X_new−M)/(S√(1+1/n)) has a t_(n−1) law: X_new−M is normal, independent of S², and its stated variance supplies the scale. Therefore M±t_(n−1,1−α/2)S√(1+1/n) has exact prediction coverage under that model. Coverage is joint over the sample and the new reading; it is not automatically a conditional guarantee at every observed sample.
For the same sample, its prediction half-width is √(n+1) times the mean-confidence half-width. As n grows, mean uncertainty can shrink toward zero while individual variation remains. An interval for an average of several future items would have another variance, reflecting the size and independence of that future group.
A tolerance interval asks for a population-content guarantee. If T(X) is the returned interval and F_θ the population law, a statement such as P_θ{P_θ(X_new∈T(X) | X)≥γ}≥1−α requires the random interval to contain at least population fraction γ with confidence 1−α. There are two specified levels. The ordinary prediction formula does not automatically establish that stronger content claim.
Known σ=2; M=10; assessment μ=10; n=16; confidence=19/20; content=19/20.
IID normal readings and an independent future reading; sigma is genuinely known. Known-spread mean/prediction specializations are distinct from the unknown-spread t formulas in the text. Tolerance has two levels and its own derivation.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Mean confidence interval: half-width | z sigma/√n | ≈0.979982 | Measurement units |
| Mean confidence interval: realised population content | Phi((M+h−mu)/sigma)−Phi((M−h−mu)/sigma) | ≈0.37586 | Assessment uses a specified truth, not an input needed by the interval endpoints |
| One new reading: prediction interval: half-width | z sigma√(1+1/n) | ≈4.04057 | Measurement units |
| One new reading: prediction interval: realised population content | Phi((M+h−mu)/sigma)−Phi((M−h−mu)/sigma) | ≈0.956646 | Assessment uses a specified truth, not an input needed by the interval endpoints |
| Population content: tolerance interval: half-width | k sigma; Phi(q+k)−Phi(q−k)=gamma, q=z/√n | ≈4.34709 | Measurement units |
| Population content: tolerance interval: realised population content | Phi((M+h−mu)/sigma)−Phi((M−h−mu)/sigma) | ≈0.970261 | Assessment uses a specified truth, not an input needed by the interval endpoints |
| Tolerance factor | Unique k>0 with Phi(z/√n+k)−Phi(z/√n−k)=gamma | ≈2.17355 | Because content decreases in |M−mu|/sigma, attaining gamma is the event |M−mu|<=z sigma/√n. |
| Confidence of attaining specified content | 19/20 | ≈0.95 | Ideal known-spread normal construction; distinct from a one-item prediction probability |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Mean confidence interval | ≈9.02001800772998 | ≈10.97998199227 | ≈10 | Contains declared truth | Confidence target is fixed mu, not population content |
| One new reading: prediction interval | ≈5.95943073466746 | ≈14.0405692653325 | ≈10 | Not the target of this row | Joint sample/new-item coverage; not conditional coverage for every sample |
| Population content: tolerance interval | ≈5.65290715203535 | ≈14.3470928479647 | ≈10 | Not the target of this row | Population content at least0.95 with confidence0.95, under this known-spread construction |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
A posterior interval uses a different probability model
A Bayesian credible interval is computed from a posterior distribution under a declared prior and likelihood. It can have posterior probability 0.95 conditional on the observed data. That is a probability statement about the parameter in the Bayesian model, rather than the fixed-parameter repeated-sampling statement used to define confidence coverage.
For example, observe zero successes in ten iid Bernoulli trials and assign a Beta(1,1) prior to p. The posterior is Beta(1,11), with distribution function F(t)=1−(1−t)¹¹ for 0≤t≤1. Its equal-tailed 95% credible endpoints are 1−0.975^(1/11) and 1−0.025^(1/11), approximately 0.002299 and 0.284914.
For those same ten zero-success trials, the equal-tailed 95% Clopper–Pearson confidence interval is [0,1−0.025^(1/10)], approximately [0,0.308497]. Its guarantee came from binomial tails at fixed p, while the credible interval came from a posterior under the chosen prior. Similar formulas or comparable widths do not transfer one interpretation to the other.
As an external repeated-sampling check at binomial p=0, the stated equal-tailed credible rule never covers zero, because the data are always all zero and its lower endpoint is positive. That does not contradict its posterior probability under the declared continuous prior. Bayesian intervals can be assessed for frequentist coverage, and priors can be scientifically justified or questioned; both tasks require specifying the model rather than treating the word uncertainty as a single universal guarantee.
Resampling does not make coverage assumption-free
A nonparametric bootstrap resamples from the empirical distribution and uses the resulting statistic distribution to approximate a sampling distribution. Its validity depends on the sampling structure, statistic and asymptotic regime. The later resampling lesson develops those conditions and different interval constructions.
With twenty all-zero binary observations, every ordinary bootstrap resample is also all zero. A percentile interval for the sample proportion is therefore [0,0], regardless of how many resamples are computed. More resamples reduce Monte Carlo error in that conditional bootstrap calculation; they do not introduce successes absent from the empirical distribution.
If the true binomial probability is positive, an all-zero original sample remains possible with probability (1−p)²⁰. A procedure that collapses to zero on that event can have poor coverage. The issue is not a failure to run the resampling code enough times. It is a limitation of that empirical approximation for the procedure and regime.
Other difficult cases can involve extremes, boundaries, dependence or heavy tails. They need method-specific treatment rather than a universal promise that bootstrap avoids assumptions. Keep any simulation’s assumed population distinct from the observed data and report whether an interval’s calibration is exact, asymptotic, numerical or still unestablished.
Report the claim that the design and calculation support
A useful report identifies the population quantity, sampling unit, sample size, measurement units, design, interval method and level. State the important assumptions and whether calibration is exact under a model or asymptotic. Preserve enough information to reproduce the method, including which variance convention and quantile were used.
Use sensible displayed precision without hiding the mathematical definition. For example, quote the normal quantile through z_0.975 and present readable rounded endpoints. If a finite binomial sum or symbolic pivot supplies an exact result, keep that exact description separate from its decimal approximation. Distinguish numerical solver tolerance from scientific uncertainty.
Account for analyses that affect the reporting rule: selected endpoints, outcomes, subgroups, stopping decisions or multiple comparisons. A correctly computed interval under an incomplete description of the procedure can carry an incorrect coverage interpretation. Preserve the chosen rule and relevant context in the record.
Finally, an interval quantifies a stated component of uncertainty. It does not itself establish a measurement system’s lack of bias, representativeness, causality or practical importance. A confidence interval containing a reference value does not prove that value, and excluding it does not give a posterior probability that a hypothesis is false. The next lessons connect intervals with tests and scientific effect sizes while retaining these distinctions.
Compare targets, sampling assumptions and reporting rules. Read the calibration statement beside each interval; a common confidence label does not make different procedures interchangeable.
Repeated intervals and their fixed target
32 illustrative intervals; known spread. Computed under the displayed model and procedure.
n=16; μ=10; known σ=2; seed=158; repetitions=32; level=19/20.
IID normal readings, fixed μ and genuinely known positive σ. Independent hypothetical experiments calibrate coverage; the fixed32-bit sequence only draws a reproducible illustration.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Interval half-width | z_((1+19/20)/2) × (2)/√16 | ≈0.979982 | Known-spread normal mean CI; measurement units |
| Theoretical coverage | 19/20 | ≈0.95 | Exact under the iid normal model; quantile evaluated numerically |
| Realised covering count | 31 | ≈31 | Illustration, not forced to its expectation |
| Expected count under independent repetitions | 152/5 | ≈30.4 | A repeated-experiment expectation, not a fixed quota |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Repetition 1 | ≈8.75392885919245 | ≈10.7138928437325 | ≈9.73391085146247 | Contains declared truth | covers the fixed mean |
| Repetition 2 | ≈9.15936714220168 | ≈11.1193311267417 | ≈10.1393491344717 | Contains declared truth | covers the fixed mean |
| Repetition 3 | ≈7.66875740630217 | ≈9.62872139084222 | ≈8.64873939857219 | Misses declared truth | misses the fixed mean |
| Repetition 4 | ≈9.04064427255184 | ≈11.0006082570919 | ≈10.0206262648219 | Contains declared truth | covers the fixed mean |
| Repetition 5 | ≈9.26193210522224 | ≈11.2218960897623 | ≈10.2419140974923 | Contains declared truth | covers the fixed mean |
| Repetition 6 | ≈9.37336953896467 | ≈11.3333335235047 | ≈10.3533515312347 | Contains declared truth | covers the fixed mean |
| Repetition 7 | ≈8.95412532392918 | ≈10.9140893084692 | ≈9.93410731619921 | Contains declared truth | covers the fixed mean |
| Repetition 8 | ≈8.88322783621479 | ≈10.8431918207548 | ≈9.86320982848482 | Contains declared truth | covers the fixed mean |
| Repetition 9 | ≈9.61960328294043 | ≈11.5795672674805 | ≈10.5995852752105 | Contains declared truth | covers the fixed mean |
| Repetition 10 | ≈9.2244217508327 | ≈11.1843857353728 | ≈10.2044037431027 | Contains declared truth | covers the fixed mean |
| Repetition 11 | ≈9.00168785794459 | ≈10.9616518424846 | ≈9.98166985021461 | Contains declared truth | covers the fixed mean |
| Repetition 12 | ≈9.7886612691538 | ≈11.7486252536939 | ≈10.7686432614238 | Contains declared truth | covers the fixed mean |
| Repetition 13 | ≈9.88345320726748 | ≈11.8434171918075 | ≈10.8634351995375 | Contains declared truth | covers the fixed mean |
| Repetition 14 | ≈8.71708281629027 | ≈10.6770468008303 | ≈9.69706480856029 | Contains declared truth | covers the fixed mean |
| Repetition 15 | ≈8.32534767435891 | ≈10.285311658899 | ≈9.30532966662894 | Contains declared truth | covers the fixed mean |
| Repetition 16 | ≈8.51823966412164 | ≈10.4782036486617 | ≈9.49822165639167 | Contains declared truth | covers the fixed mean |
| Repetition 17 | ≈9.67857092122028 | ≈11.6385349057603 | ≈10.6585529134903 | Contains declared truth | covers the fixed mean |
| Repetition 18 | ≈9.30157948120097 | ≈11.261543465741 | ≈10.281561473471 | Contains declared truth | covers the fixed mean |
| Repetition 19 | ≈9.09591353184459 | ≈11.0558775163846 | ≈10.0758955241146 | Contains declared truth | covers the fixed mean |
| Repetition 20 | ≈9.36681790923701 | ≈11.3267818937771 | ≈10.346799901507 | Contains declared truth | covers the fixed mean |
| Repetition 21 | ≈9.3064012148906 | ≈11.2663651994307 | ≈10.2863832071606 | Contains declared truth | covers the fixed mean |
| Repetition 22 | ≈8.9807007504816 | ≈10.9406647350216 | ≈9.96068274275162 | Contains declared truth | covers the fixed mean |
| Repetition 23 | ≈8.75360606611325 | ≈10.7135700506533 | ≈9.73358805838327 | Contains declared truth | covers the fixed mean |
| Repetition 24 | ≈9.11746135323137 | ≈11.0774253377714 | ≈10.0974433455014 | Contains declared truth | covers the fixed mean |
| Repetition 25 | ≈9.09709687554854 | ≈11.0570608600886 | ≈10.0770788678186 | Contains declared truth | covers the fixed mean |
| Repetition 26 | ≈8.28798169947092 | ≈10.247945684011 | ≈9.26796369174095 | Contains declared truth | covers the fixed mean |
| Repetition 27 | ≈9.24999500568939 | ≈11.2099589902294 | ≈10.2299769979594 | Contains declared truth | covers the fixed mean |
| Repetition 28 | ≈9.45917864389683 | ≈11.4191426284369 | ≈10.4391606361669 | Contains declared truth | covers the fixed mean |
| Repetition 29 | ≈8.90608338716473 | ≈10.8660473717048 | ≈9.88606537943476 | Contains declared truth | covers the fixed mean |
| Repetition 30 | ≈9.23848437071875 | ≈11.1984483552588 | ≈10.2184663629888 | Contains declared truth | covers the fixed mean |
| Repetition 31 | ≈8.57082866770421 | ≈10.5307926522443 | ≈9.55081065997424 | Contains declared truth | covers the fixed mean |
| Repetition 32 | ≈9.05950928525821 | ≈11.0194732697983 | ≈10.0394912775282 | Contains declared truth | covers the fixed mean |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Invert the variance pivot in reciprocal order
Normal variance pivot; sixteen observations. Computed under the displayed model and procedure.
S²=4; n=16; ν=15; level=19/20.
IID normal observations; unknown mean and positive population variance. Sample variance uses n−1. An all-equal rounded record is held rather than treated as certainty.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Lower chi-square quantile | χ²_(15,1/40) | ≈6.26214 | Lower-tail convention; numerical quantile |
| Upper chi-square quantile | χ²_(15,39/40) | ≈27.4884 | Lower-tail convention; numerical quantile |
| Variance interval lower | 15×(4)/χ²_(15,39/40) | ≈2.18274 | Squared measurement units |
| Variance interval upper | 15×(4)/χ²_(15,1/40) | ≈9.58139 | Squared measurement units |
| SD interval lower | √(variance lower endpoint) | ≈1.47741 | Ordinary measurement units |
| SD interval upper | √(variance upper endpoint) | ≈3.09538 | Ordinary measurement units |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Normal variance CI | ≈2.18273946745699 | ≈9.58139248348903 | ≈4 | Not the target of this row | S² shown as reference, not a claim that it is the truth |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Four intervals, with different calibration claims
No successes in ten trials. Computed under the displayed model and procedure.
n=10; k=0; assessment p=1/20; level=19/20; prior for green row=Beta(1,1).
Fixed n, independent Bernoulli trials with one common p. CP tails and credible-rule coverage membership use exact rational sums. Wilson/Wald assess numerical quantile endpoints; solver error is separate from sampling calibration.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Wald: lower endpoint | k/n − z√[(k/n)(1−k/n)/n] | ≈0 | Numerical endpoint; probability units |
| Wald: upper endpoint | k/n + z√[(k/n)(1−k/n)/n] | ≈0 | Original endpoint, not silently clipped |
| Wald: finite coverage at assessment p | 819680384663/2048000000000 | ≈0.400235 | Σ Bin(n,p) atoms for counts {1,2,3}. Membership uses displayed numerical normal-quantile endpoints. |
| Wilson: lower endpoint | Lower score-quadratic root | ≈0 | Numerical endpoint; probability units |
| Wilson: upper endpoint | Upper score-quadratic root | ≈0.277533 | Original endpoint, not silently clipped |
| Wilson: finite coverage at assessment p | 9357943235591/10240000000000 | ≈0.913862 | Σ Bin(n,p) atoms for counts {0,1}. Membership uses displayed numerical normal-quantile endpoints. |
| Clopper–Pearson: lower endpoint | Equal-tailed binomial tail root (explicit0 boundary) | ≈0 | Numerical endpoint; probability units |
| Clopper–Pearson: upper endpoint | Equal-tailed binomial tail root (explicit1 boundary) | ≈0.308497 | Original endpoint, not silently clipped |
| Clopper–Pearson: finite coverage at assessment p | 2530550893109/2560000000000 | ≈0.988496 | Σ Bin(n,p) atoms for counts {0,1,2}. Membership from exact rational inclusive binomial tails. |
| Beta(1,1) posterior: lower endpoint | Beta(k+1,n−k+1) alpha/2 quantile | ≈0.00229897 | Numerical endpoint; probability units |
| Beta(1,1) posterior: upper endpoint | Beta(k+1,n−k+1) 1−alpha/2 quantile | ≈0.284914 | Original endpoint, not silently clipped |
| Beta(1,1) posterior: finite coverage at assessment p | 9357943235591/10240000000000 | ≈0.913862 | Σ Bin(n,p) atoms for counts {0,1}. External frequentist assessment of a posterior rule. |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Wald | ≈0 | ≈0 | ≈0 | Misses declared truth | Plug-in normal interval; original untruncated endpoints retained |
| Wilson | ≈0 | ≈0.277532799862889 | ≈0 | Contains declared truth | Normal-score calibration; not uniformly nominal finite coverage |
| Clopper–Pearson | ≈0 | ≈0.308497107818761 | ≈0 | Contains declared truth | Finite-binomial confidence construction, at-least nominal in its ideal definition |
| Beta(1,1) posterior | ≈0.00229897221381427 | ≈0.284914152918154 | ≈0 | Contains declared truth | Posterior credible interval under uniform prior; no uniform frequentist guarantee |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Confidence, prediction and population content
Mean, future item and content; known spread. Computed under the displayed model and procedure.
Known σ=2; M=10; assessment μ=10; n=16; confidence=19/20; content=19/20.
IID normal readings and an independent future reading; sigma is genuinely known. Known-spread mean/prediction specializations are distinct from the unknown-spread t formulas in the text. Tolerance has two levels and its own derivation.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Mean confidence interval: half-width | z sigma/√n | ≈0.979982 | Measurement units |
| Mean confidence interval: realised population content | Phi((M+h−mu)/sigma)−Phi((M−h−mu)/sigma) | ≈0.37586 | Assessment uses a specified truth, not an input needed by the interval endpoints |
| One new reading: prediction interval: half-width | z sigma√(1+1/n) | ≈4.04057 | Measurement units |
| One new reading: prediction interval: realised population content | Phi((M+h−mu)/sigma)−Phi((M−h−mu)/sigma) | ≈0.956646 | Assessment uses a specified truth, not an input needed by the interval endpoints |
| Population content: tolerance interval: half-width | k sigma; Phi(q+k)−Phi(q−k)=gamma, q=z/√n | ≈4.34709 | Measurement units |
| Population content: tolerance interval: realised population content | Phi((M+h−mu)/sigma)−Phi((M−h−mu)/sigma) | ≈0.970261 | Assessment uses a specified truth, not an input needed by the interval endpoints |
| Tolerance factor | Unique k>0 with Phi(z/√n+k)−Phi(z/√n−k)=gamma | ≈2.17355 | Because content decreases in |M−mu|/sigma, attaining gamma is the event |M−mu|<=z sigma/√n. |
| Confidence of attaining specified content | 19/20 | ≈0.95 | Ideal known-spread normal construction; distinct from a one-item prediction probability |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Mean confidence interval | ≈9.02001800772998 | ≈10.97998199227 | ≈10 | Contains declared truth | Confidence target is fixed mu, not population content |
| One new reading: prediction interval | ≈5.95943073466746 | ≈14.0405692653325 | ≈10 | Not the target of this row | Joint sample/new-item coverage; not conditional coverage for every sample |
| Population content: tolerance interval | ≈5.65290715203535 | ≈14.3470928479647 | ≈10 | Not the target of this row | Population content at least0.95 with confidence0.95, under this known-spread construction |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Which interval was reported?
Ten independent estimates or fresh batches. Computed under the displayed model and procedure.
m=10; marginal level=19/20; scheme=independent.
Independent standardized normal estimates, every true mean0. Selection and fresh-batch stopping are precisely specified counterexamples, not universal selection or cumulative-look formulas.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Predesignated marginal coverage | 19/20 | ≈0.95 | Exact normal interval for one fixed parameter |
| All ordinary intervals cover | 6131066257801/10240000000000 | ≈0.598737 | Independent coverage events; all true standardized means0 |
| Largest-|Z| selected interval covers0 | 6131066257801/10240000000000 | ≈0.598737 | For equal true means0, selection covers exactly when every interval covers |
| Fresh-batch stopped interval covers0 | 6131066257801/10240000000000 | ≈0.598737 | Stop at first exclusion of the predeclared true reference0, else report batch m; batches independent |
| Bonferroni all-cover probability under independence | 97393677359695041798001/102400000000000000000000 | ≈0.95111 | Marginal level1−alpha/m; product for this independent example |
| Bonferroni general lower guarantee | 19/20 | ≈0.95 | Union bound applies to valid marginal procedures without requiring independence |
| Bonferroni normal critical value | z_(1−(1/20)/(2×10)) | ≈2.80703 | Wider intervals account for the whole prespecified family |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
The sampling design changes coverage
Sixteen joint normal readings, correlation 1/5. Computed under the displayed model and procedure.
n=16; σ=2; rho=1/5; observed mean=10; level=19/20.
Jointly Gaussian readings share one common unknown mean μ; the target is μ. Marginal variance and equicorrelation0<=rho<=1 are known. No generic dependent-data CLT, estimated covariance degrees of freedom or effective-n substitution is claimed.
| Quantity | Exact value or expression | Approximation | Meaning |
|---|---|---|---|
| Finite mean variance factor | 4 | ≈4 | Known equicorrelation covariance model |
| True mean variance | sigma²×(4)/16 | ≈1 | Squared measurement units |
| Naive iid standard error | sigma/√16 | ≈0.5 | Incorrect under nonzero correlation |
| Actual known-covariance standard error | sigma√((4)/16) | ≈1 | Measurement units |
| Naive iid interval actual coverage | 2Phi(z/√(4))−1 | ≈0.672905 | Exact stated Gaussian model, numerical normal CDF |
| Known-covariance interval coverage | 19/20 | ≈0.95 | Exact joint-Gaussian calibration; covariance assumed known |
Every interval behind the figure
| Interval / repetition | Lower endpoint | Upper endpoint | Reference centre | Declared-mean containment | Meaning |
|---|---|---|---|---|---|
| Naive iid normal CI | ≈9.02001800772998 | ≈10.97998199227 | ≈10 | Not the target of this row | Coverage is assessed over repeated joint Gaussian samples, not from whether this observed interval contains its own centre. |
| Known-covariance normal CI | ≈8.04003601545995 | ≈11.9599639845401 | ≈10 | Not the target of this row | Coverage is assessed over repeated joint Gaussian samples, not from whether this observed interval contains its own centre. |
Exact definitions and finite fractions are retained in the table. Values marked ≈ are numerical approximations; short figure labels use six significant digits. Root solving and quantile evaluation have numerical error, separate from the method’s sampling assumptions and exact or approximate coverage claim. Extremely small numerical tail or content values can round to zero without being mathematically impossible.
Worked examples
Invert a normal pivot
Sixteen hypothetical iid normal calibration readings have a known population standard deviation of 2 units and an observed mean of 10 units. Construct a two-sided 95% confidence interval for the population mean and interpret its calibration.
- The target is the fixed mean μ. The known-σ standard error is 2/√16=0.5 units. Under the stated iid normal model, (M−μ)/0.5 has a standard normal law.
- Use the lower-tail quantile z_0.975≈1.9599639845. Invert −z≤(M−μ)/0.5≤z to obtain M−0.5z≤μ≤M+0.5z.
- At the observed M=10, the interval is [10−0.5z,10+0.5z]≈[9.020018,10.979982] units. Its length is z≈1.959964 units.
- Across independent repetitions of this complete experiment, the procedure covers μ with probability 0.95. In 100 repetitions the covering count would have mean 95 and variance 4.75; it is not forced to be exactly 95.
The observed interval is approximately [9.020018,10.979982] units. Its 95% statement is exact coverage in the declared normal model, with numerically approximated endpoints; it is not a posterior probability for μ in this particular interval.
The same numerical standard error can need another quantile
Hypothetical readings are 8,9,10,11,12 units. Assume iid normal observations with unknown mean and positive unknown variance. Find the 95% mean interval. Compare it with the counterfactual calculation if the population variance had instead been genuinely known as 5/2.
- The sample size is n=5 and the mean is M=10. The residual sum of squares is 4+1+0+1+4=10, so S²=10/4=5/2 squared units.
- The estimated standard error is S/√5=√(1/2) units. Under the unknown-variance iid normal model, the pivot uses t with 4 degrees of freedom, whose 0.975 quantile is approximately 2.7764451052.
- The t interval is 10±2.7764451052√(1/2), approximately [8.036757,11.963243] units. The half-width is approximately 1.963243 units.
- If σ² were truly known as 5/2, the numerical standard error would happen to be the same, but the pivot would be normal. The interval would then be 10±z_0.975√(1/2)≈[8.614096,11.385904]. Substituting the observed S² and calling it known does not justify that counterfactual model.
Use approximately [8.036757,11.963243] units for the stated unknown-variance normal model. The wider t interval reflects the reference law for estimating the spread, even though the comparison deliberately uses the same numerical standard error.
Track reciprocals and squared units
Ten hypothetical iid normal readings have observed sample variance S²=4 squared units, calculated with denominator n−1. Both the mean and positive population variance are unknown. Find 95% intervals for σ² and σ.
- The pivot V=9S²/σ² has a chi-square law with 9 degrees of freedom. Its lower-tail 0.025 and 0.975 quantiles are approximately 2.7003895000 and 19.0227677986.
- Start from q_0.025≤36/σ²≤q_0.975. Both quantiles are positive, so inversion gives 36/q_0.975≤σ²≤36/q_0.025.
- The variance endpoints are approximately 1.892469 and 13.331410 squared units. They are not symmetric around the observed variance 4.
- Square root is strictly increasing on the positive domain. The corresponding standard-deviation interval is approximately [1.375670,3.651220] units, with the same normal-model coverage.
The σ² interval is approximately [1.892469,13.331410] squared units; the σ interval is approximately [1.375670,3.651220] units. Their exact calibration comes from the iid normal chi-square pivot, rather than from unbiasedness alone.
Predicting an individual reading needs more spread
Use the five readings 8,9,10,11,12 units from the earlier worked example. Under the same iid normal model with unknown variance, compare the 95% mean confidence interval with a 95% prediction interval for one independent future reading.
- The observed mean is 10, S²=5/2, and the reference quantile is t_(4,0.975)≈2.7764451052. The mean standard error is √(1/2).
- For a new independent reading, Var(X_new−M)=σ²(1+1/5). The prediction scale estimated from the sample is S√(1+1/5)=√3 units.
- The mean interval is 10±t_(4,0.975)√(1/2)≈[8.036757,11.963243]. The prediction interval is 10±t_(4,0.975)√3≈[5.191056,14.808944].
- The prediction-to-mean width ratio is √3/√(1/2)=√6≈2.449490. The prediction statement concerns the joint repetition of sample and independent future reading, rather than a guarantee about the fraction of the whole population in the displayed interval.
The mean interval is approximately [8.036757,11.963243] units and the one-reading prediction interval approximately [5.191056,14.808944] units. Their different widths follow different targets; neither is automatically a tolerance interval.
Solve the binomial score inequality
Twenty hypothetical independent checks have a common unknown success probability p, with two observed successes. Calculate a two-sided nominal 95% Wilson interval and compare the Wald interval under this fixed-n binomial model.
- The observed proportion is p̂=2/20=1/10. Let z=z_0.975≈1.9599639845 and d=1+z²/20. Expand the score condition 20(p̂−p)²≤z²p(1−p) as a quadratic in p.
- The centre is (0.1+z²/40)/d. Its half-width is (z/d)√[0.1(0.9)/20+z²/(4·20²)]. These are the exact roots of that inequality for the chosen z.
- The resulting Wilson endpoints are approximately 0.027866 and 0.301034. They remain within the binomial parameter space.
- The Wald calculation uses standard error √[0.1(0.9)/20] and gives approximately [−0.031478,0.231478]. Intersecting it with [0,1] changes its displayed lower endpoint but not whether it contains any true p in the parameter space.
The Wilson interval is approximately [0.027866,0.301034], compared with Wald [−0.031478,0.231478] before intersection. Wilson’s algebraic inversion is exact, while its normal critical-value calibration remains approximate at finite n.
Invert the finite sampling law
For the same fixed twenty iid binary checks and two observed successes, construct the equal-tailed 95% Clopper–Pearson interval. State what its exactness means.
- For a candidate lower endpoint L, the upper tail is P_L(K≥2)=Σ_(j=2)^20 C(20,j)Lʲ(1−L)^(20−j). Set this equal to 0.025.
- For the upper endpoint U, use the lower tail P_U(K≤2)=Σ_(j=0)^2 C(20,j)Uʲ(1−U)^(20−j)=0.025. The upper tail increases with p and the lower tail decreases with p, so each relevant root is unique.
- Numerical root calculation gives L≈0.0123485272 and U≈0.3169827140. These are decimal approximations to the stated exact tail definitions.
- For every p∈[0,1], the binomial-tail construction has noncoverage probability at most 0.05. Because the data law is discrete, its coverage is generally not exactly 0.95 and can exceed it.
The interval is approximately [0.012349,0.316983]. Exact refers to its finite binomial construction and at-least-95% guarantee, with numerical approximation kept separate from the mathematical coverage statement.
Allocate the tail error explicitly
No successes are observed in twenty hypothetical fixed-n iid Bernoulli trials. Compare equal-tailed two-sided 95% Clopper–Pearson, one-sided 95% Clopper–Pearson, two-sided nominal 95% Wilson and the usual Wald intervals.
- The zero-count binomial probability is (1−p)²⁰. The two-sided exact upper endpoint solves this probability equal to 0.025, giving 1−0.025^(1/20)≈0.1684334710, with lower endpoint 0.
- The one-sided exact upper endpoint instead solves the probability equal to 0.05. It is 1−0.05^(1/20)≈0.1391083407. The two intervals have different tail-error allocations despite sharing a 95% label.
- Wilson’s zero-count algebra gives endpoints 0 and z_0.975²/(20+z_0.975²)≈0.1611251581. The Wald plug-in variance is zero and its interval is [0,0].
- At the hypothetical true p=0.01, a zero count has probability 0.99²⁰≈0.8179069376. Thus a zero-width interval on these data cannot be justified by treating the absence of observed successes as proof that p is zero.
The respective intervals are approximately [0,0.168433], [0,0.139108], [0,0.161125] and [0,0]. Only the first two here have the stated finite binomial at-least-95% guarantees, each under its own one- or two-sided definition.
Sum the samples that really cover
For ten fixed iid Bernoulli trials, assess the actual coverage at true p=1/20 of the nominal two-sided 95% Wald, Wilson and Clopper–Pearson procedures. This is a hypothetical model calculation with known truth for assessment, rather than use of a known p to estimate itself.
- Construct each method’s interval at every possible observed count k=0,…,10, and test membership of the fixed p=1/20. Wald covers at k=1,2,3; Wilson at k=0,1; Clopper–Pearson at k=0,1,2.
- For Wald, sum those three binomial probabilities. The exact result is 819680384663/2048000000000≈0.4002345628. In particular, its failure at the probable zero count is costly.
- For Wilson, the sum is 9357943235591/10240000000000≈0.9138616441. For Clopper–Pearson it is 2530550893109/2560000000000≈0.9884964426.
- These are exact finite probability fractions for the stated acceptance sets and rational p; the endpoint membership comes from the methods’ definitions. They show the behaviour at this particular p. A general guarantee requires an argument over the whole parameter space, such as the exact tail proof.
Actual coverage at this p is approximately 40.02% for Wald, 91.39% for Wilson and 98.85% for Clopper–Pearson. A nominal level, an exact algebraic step and an exact finite-sample guarantee are distinct facts.
A wrong standard error can undo exact marginal normality
Sixteen hypothetical jointly normal readings have a common unknown mean μ, variance 4 squared units each and common pairwise correlation 0.2. Their observed sample mean is 10 units. The covariance structure is known. For the target μ, compare an iid-based 95% normal interval with the correct known-covariance interval.
- The covariance of two distinct readings is 0.2·4=0.8 squared units. Var(M)=[16·4+16·15·0.8]/16²=1 squared unit, equivalently (4/16)[1+15(0.2)].
- The iid formula would use standard error 2/√16=0.5, rather than the true standard error 1. Its interval is 10±0.5z_0.975≈[9.020018,10.979982].
- Since the true standardized mean error is N(0,1), that naive interval covers with probability P(|Z|≤z_0.975/2)=2Φ(z_0.975/2)−1≈0.6729049923.
- Using the known covariance gives 10±z_0.975≈[8.040036,11.959964], with exact 95% coverage under this joint normal law. The mean-variance ratio can be described by an effective n of 4 here, but that does not create a universal t degree-of-freedom rule.
The iid interval covers only about 67.29% under the specified law. The correct interval is approximately [8.040036,11.959964] units. The problem was the experiment’s covariance, rather than numerical accuracy of its normal quantile.
Allocate a family error budget
Ten independent normal mean procedures each have exact 95% marginal coverage. Calculate the probability all ten ordinary intervals cover, then give a Bonferroni procedure guaranteeing at least 95% simultaneous coverage.
- Independence makes the ordinary all-cover probability 0.95¹⁰=6131066257801/10240000000000≈0.5987369392. The probability of at least one miss is therefore approximately 0.4012630608.
- For a family error budget α=0.05, allocate α/10=0.005 to each marginal interval. Each marginal confidence level becomes 0.995, with two-sided normal quantile z_(1−0.005/2)=z_0.9975≈2.8070337683.
- The union bound gives probability of any miss at most 10·0.005=0.05 even without independence, provided the marginal error bounds hold under the full model.
- Under the stated independence, the adjusted all-cover probability is exactly 0.995¹⁰=97393677359695041798001/102400000000000000000000≈0.9511101305. It is slightly above 0.95, consistent with the general lower bound.
Ordinary marginal intervals cover together with probability about 59.87%. The Bonferroni normal intervals use critical value approximately 2.807034 and guarantee at least 95% family coverage; independence gives approximately 95.11% here.
Analyse which interval gets reported
Take ten independent standard normal estimates with true means all zero. First report the interval Zⱼ±z_0.975 attached to the largest |Zⱼ|. Separately, for ten independent fresh batches targeting the same true zero mean, stop at the first ordinary 95% interval excluding zero, or report batch ten if none does. What is coverage in each experiment?
- Each predesignated interval has exact 95% coverage. For selection by the largest absolute estimate, the reported interval covers zero if and only if that largest absolute estimate is at most z_0.975.
- This is the same event as all ten |Zⱼ| being at most the critical value. Independence gives coverage 0.95¹⁰≈0.5987369392.
- For the stated fresh-batch stopping rule, any exclusion makes the reported interval miss zero at the first such batch. If no batch excludes zero, the reported final interval covers. Thus coverage is again the probability that all ten cover: 0.95¹⁰.
- The calculations rely on these explicit rules and independence. They do not give this product formula for overlapping cumulative looks, unequal true means under selection or arbitrary adaptive analyses. Those procedures require their own coverage analysis.
Each reported procedure has coverage approximately 59.87%, despite the exact 95% marginal intervals. Selection and stopping are parts of the uncertainty procedure, rather than harmless changes made after its calibration.
Keep the posterior and sampling statements separate
Ten hypothetical iid Bernoulli trials have zero successes. Declare a Beta(1,1) prior for a Bayesian calculation. Find the equal-tailed 95% credible interval and compare the equal-tailed 95% Clopper–Pearson interval for the same sample.
- The likelihood is proportional to (1−p)¹⁰. Multiplying by the uniform beta prior and normalizing gives Beta(1,11), with density 11(1−p)¹⁰ and CDF F(t)=1−(1−t)¹¹.
- Solve F(L)=0.025 and F(U)=0.975. This gives L=1−0.975^(1/11)≈0.0022989722 and U=1−0.025^(1/11)≈0.2849141529. The posterior probability between these quantiles is exactly 0.95 in the stated Bayesian model.
- The Clopper–Pearson lower endpoint is 0, and its upper solves (1−U)¹⁰=0.025. Thus it gives [0,1−0.025^(1/10)]≈[0,0.3084971078], with finite-binomial coverage at least 95%.
- The prior is an explicit modelling choice. The credible statement conditions on that prior and the data; the confidence statement concerns repetitions at each fixed binomial p. A tolerance statement would instead specify a population fraction and a confidence level, and is neither of these claims.
The credible interval is approximately [0.002299,0.284914] with 95% posterior probability under Beta(1,1) plus the likelihood. The confidence interval is approximately [0,0.308497] with at-least-95% repeated-sampling coverage in the binomial model.
Try it yourself
Two hundred independent repetitions each use an exact 90% confidence procedure. What are the mean and variance of the number of intervals covering the fixed target? Must exactly 180 cover?
Show the answer and reasoning
The count is Binomial(200,0.9), with mean 180 and variance 18. Exactly 180 is not required.
Each repetition contributes an independent Bernoulli coverage indicator with success probability 0.9. Expectations add to 200·0.9 and variances add to 200·0.9·0.1. Coverage describes the probability law of the procedure, rather than fixing the realised number of successes in every finite group.
Twenty-five iid normal readings have known population standard deviation 5 units and observed mean 20 units. Write the two-sided 90% mean interval, using z_0.95≈1.6448536270.
Show the answer and reasoning
It is 20±z_0.95, approximately [18.355146,21.644854] units.
The standard error is 5/√25=1 unit. A two-sided level 0.9 allocates 0.05 to each tail, so the needed lower-tail quantile is 0.95. The quantile notation defines the exact normal-model procedure; the displayed endpoints are rounded.
Four iid normal observations have unknown positive variance, observed mean 7 units and sample standard deviation 2 units. Use t_(3,0.975)≈3.1824463053 to obtain the 95% mean interval.
Show the answer and reasoning
It is 7±3.1824463053, approximately [3.817554,10.182446] units.
With n=4, the estimated standard error is S/√n=1 and the exact normal-model pivot has n−1=3 degrees of freedom. Using a normal critical value would not retain that exact finite-sample t calibration.
A device records rounded readings, all equal in one small sample. Why does plugging S=0 into a normal-theory t expression not establish that the population mean has zero uncertainty?
Show the answer and reasoning
The displayed t ratio is undefined at S=0, and the actual rounded measurement law needs examination.
Under a continuous iid normal model with positive variance, S=0 is a null event and a theoretical rule can be defined there separately. Rounding can give equal recorded readings positive probability even when underlying values vary. A zero plug-in spread does not establish that the continuous sampling assumptions or a zero-width uncertainty claim are appropriate.
In a known-σ normal design with a fixed confidence level, a planned sample size gives a chosen half-width. How must sample size change to halve that half-width? Does that alone specify a test’s statistical power?
Show the answer and reasoning
Multiply the sample size by four, subject to integer rounding. It does not by itself specify power.
The confidence half-width is zσ/√n, so replacing n by 4n divides it by two. Power additionally needs a testing procedure, its significance level and an alternative parameter value or effect, among other assumptions. Precision planning and power planning answer different design questions.
For n=6 iid normal observations with unknown mean and observed S²=9 squared units, write a 95% variance interval using lower-tail χ²_5 quantiles q_r. Then state the standard-deviation interval.
Show the answer and reasoning
The variance interval is [45/q_0.975,45/q_0.025] squared units. The standard-deviation interval is [√(45/q_0.975),√(45/q_0.025)] units.
The pivot is 5S²/σ²=45/σ². Inverting its positive central quantiles reverses their reciprocal order. Square root is increasing on the positive domain, so it preserves endpoint order while changing squared units to ordinary units.
For n=10 and no binomial successes, express the two-sided nominal 95% Wilson endpoints using z=z_0.975. Explain whether exact quadratic inversion proves exact 95% coverage.
Show the answer and reasoning
The endpoints are 0 and z²/(10+z²). Exact algebra does not prove exact finite-binomial coverage.
At p̂=0 the Wilson quadratic is p[(10+z²)p−z²]≤0, whose roots give those endpoints. The use of the normal critical value is a distributional calibration step. Its finite-sample coverage still has to be assessed in the binomial sampling law.
No successes occur in ten fixed iid Bernoulli trials. Give the upper endpoints of two-sided equal-tailed 95% and one-sided 95% Clopper–Pearson intervals. Which is larger?
Show the answer and reasoning
Two-sided: 1−0.025^(1/10)≈0.308497. One-sided: 1−0.05^(1/10)≈0.258866. The two-sided endpoint is larger.
The zero-count probability is (1−p)¹⁰. The two-sided rule assigns 0.025 to this tail, while the one-sided rule assigns 0.05. A smaller tail probability requires a larger p in this decreasing probability expression, so its upper endpoint is farther from zero.
All ten fixed iid Bernoulli trials succeed. Give the two-sided equal-tailed 95% Clopper–Pearson interval and relate it to the zero-success case.
Show the answer and reasoning
It is [0.025^(1/10),1], approximately [0.691503,1].
The lower endpoint solves P_p(K=10)=p¹⁰=0.025, and the upper endpoint is 1 by convention. Replacing successes with failures changes p to 1−p, reflecting the zero-count interval around 1/2. Nonzero uncertainty remains even though the empirical variance is zero.
An interval procedure has average coverage 95% under one chosen distribution over parameter values. Does that establish at-least-95% frequentist coverage at every fixed parameter?
Show the answer and reasoning
No. An average can conceal parameter values with coverage below 95%.
The finite-sample confidence guarantee requires a lower bound at every admissible parameter, including nuisance values. Averaging the coverage function with weights is another mathematical quantity. A lower value in one region can be balanced by a higher value elsewhere, so the average alone does not establish the required infimum.
At n=10 and true binomial p=1/2, use the nominal two-sided 95% Wilson score inequality to find its covering counts and exact coverage. Take z_0.975²≈3.841459.
Show the answer and reasoning
The covering counts are k=2,…,8, with exact coverage 501/512≈0.978515625.
The condition is 10(k/10−1/2)²≤z²/4, or (k−5)²≤(10z²)/4≈9.6036475. Hence the integer counts are 2 through 8. Their fair-binomial probability is 1−2[C(10,0)+C(10,1)]/2¹⁰=1−22/1024=501/512. This value above 95% does not imply the same lower bound at every p.
Nine jointly normal readings each have variance 9 squared units and pairwise correlation 1/4, with known covariance. What is the mean’s standard error? Does matching it by an effective sample size determine an exact t distribution?
Show the answer and reasoning
Var(M)=3 squared units and the standard error is √3 units. No exact t law follows from variance matching alone.
The variance is (9/9)[1+8(1/4)]=3. An iid calculation would use variance 1. The known joint normal law gives a normal mean pivot using √3; a t law would require the appropriate independent variance estimate and chi-square ratio, which an effective-size label does not provide.
A simple random sample of 10 distinct entries is taken from a fixed population of N=50. Its population variance with denominator N is v_N=16 squared units. Find Var(M) and its standard error. Does this identity alone prove a normal confidence interval exact?
Show the answer and reasoning
Var(M)=64/49 squared units and SE=8/7 units. The variance identity alone does not establish an exact normal pivot.
Use (v_N/n)(N−n)/(N−1)=(16/10)(40/49)=64/49. The finite-population correction describes variance under the design. The full distribution or an appropriate approximation is still needed for interval calibration. Replacing the denominator convention without adjustment would change this value.
Four independent procedures each have exact 90% marginal coverage. What is their all-cover probability? What marginal confidence level gives a Bonferroni at-least-90% family guarantee?
Show the answer and reasoning
Their ordinary all-cover probability is 0.9⁴=0.6561. Use marginal level 1−0.1/4=0.975 for the Bonferroni guarantee.
The product uses independence. For the adjusted procedure, four error bounds of 0.025 sum to 0.1, so the union bound guarantees at least 0.9 simultaneous coverage even without independence. A two-sided normal version uses z_(1−0.025/2)=z_0.9875.
Five independent standard normal estimates all have true means zero. Report only the ordinary 95% interval attached to the largest absolute estimate. What is coverage under this stated rule?
Show the answer and reasoning
It is 0.95⁵=0.7737809375.
The selected interval covers zero exactly when the largest absolute estimate is at most z_0.975. Equivalently, all five predesignated intervals must cover. Independence gives the product. The rule and equal true means are essential to this calculation; it is not a universal selection correction.
Four independent fresh batches each yield an exact 95% interval for a common true mean zero. Stop and report the first interval excluding zero, or report the fourth if none does. What is the reported interval’s coverage? Can that product be reused for cumulative overlapping looks?
Show the answer and reasoning
Coverage is 0.95⁴=0.81450625. The same product is not justified for overlapping cumulative looks.
A miss in any batch causes reporting of a noncovering interval at the first miss. Coverage therefore occurs exactly when all four cover. The stated fresh batches give independence. Cumulative looks share data and require analysis of their joint law or a valid sequential guarantee.
For the same iid normal sample of size n=15 with unknown positive variance, compare the two-sided mean confidence and one-independent-reading prediction widths at a common level.
Show the answer and reasoning
The prediction interval is four times as wide, because √(n+1)=4.
Both use the same t_(14,1−α/2) quantile and S. Divide the prediction scale S√(1+1/15) by the mean scale S/√15 to obtain √16=4. The future item adds its own variation; the wider target cannot be represented by the mean interval alone.
Twenty iid Bernoulli observations are all zero. An ordinary nonparametric percentile bootstrap for their proportion always returns [0,0] on this event. At a hypothetical true p=0.02, what upper bound on overall coverage follows from this event alone?
Show the answer and reasoning
Coverage is at most 1−0.98²⁰, approximately 0.332392.
The all-zero original sample occurs with probability (1−0.02)²⁰=0.98²⁰≈0.667608. Every ordinary resample is then zero, so the interval misses the positive truth. Other data sets could also cause misses; that is why the result is an upper bound rather than an exact coverage calculation. Increasing the number of resamples cannot remove this particular obstruction.
What to carry forward
- A confidence procedure concerns a specified fixed target and the complete sampling and reporting design. Its coverage is a property across possible data sets.
- A realised confidence interval does not, from coverage alone, carry a posterior probability for its fixed parameter or describe a fraction of observations.
- Exact normal mean and variance intervals come from stated pivots. Unknown spread, dependence, transformations and nonnormal sampling require their own arguments.
- Wilson uses exact quadratic algebra with approximate normal calibration. Exact binomial tail inversion instead supplies a finite-sample at-least-coverage guarantee.
- Zero successes and all successes still leave uncertainty. One-sided and two-sided levels allocate different tail errors, and clipping a poor interval does not repair its coverage.
- Marginal, simultaneous, selected and sequential coverage refer to different procedures. Account for which result is reported and when sampling ends.
- Confidence, prediction, tolerance and credible intervals answer different questions. Report the target, units, assumptions, method, level and exact or approximate status without assigning guarantees the procedure has not established.
References
Sources for the concepts and teaching approaches in this article.
- NIST/SEMATECH e-Handbook of Statistical MethodsNIST/SEMATECHGovernment statistical handbook1.3.5.2 Confidence Limits for the Mean7.2.4.1 Confidence Intervals for a Binomial Proportion4.5.1.2 Uncertainty of a Single Predicted Response7.2.6.3 Tolerance Intervals for a Normal Distribution
- Standard Error: Sampling Design and Mean PrecisionPhilip B. Stark; University of California, BerkeleyAuthor university textbook section
- Time-Uniform, Nonparametric, Nonasymptotic Confidence SequencesSteven R. Howard, Aaditya Ramdas, Jon McAuliffe and Jasjeet SekhonPrimary research paper