Confidence coverage and interval construction
Construct repeated-sampling intervals and explain why boundaries and discreteness invalidate automatic symmetric approximations.
On this page
The question for today
What you’ll understand
- Define coverage as a property of a complete interval procedure.
- Invert sampling statements with explicit tails and confidence levels.
- Recognize sparse-count and boundary failures of asymptotic intervals.
An interval is more than two numbers around a fitted value. Its interpretation depends on the rule that would produce it for every possible data set. In frequentist inference a physical parameter is held fixed while the data, and therefore the interval, vary across repeated experiments. Coverage describes that collection of possible intervals. We will begin with an exactly Gaussian measurement and then consider a zero-count observation, where a familiar square-root error estimate would misleadingly suggest certainty.
Define the ensemble before interpreting confidence
Let C(D) be the interval returned by an analysis applied to random data D. At a fixed true parameter theta, coverage is the probability that theta lies in C(D), computed using the experiment's sampling law. An exact nominal procedure has the target coverage throughout its specified parameter domain; a conservative one has at least that coverage. A particular realized interval either includes the fixed true value or does not. The frequentist definition does not assign posterior probability to that fixed value after observing the interval.
The relevant ensemble includes every repeated operation in the protocol. If calibration data are remeasured, they fluctuate too. If the analysis chooses cuts or decides between an upper limit and a two-sided interval based on the observed data, that choice is part of the procedure whose coverage must be assessed. Quoting the nominal level of a different fixed rule does not establish the adaptive procedure's coverage. Coverage can also depend on unknown nuisance parameters and should be checked over their relevant range.
Invert acceptance regions rather than guessing errors
A Neyman construction specifies, for each candidate parameter, an acceptance region of data values with probability at least the desired confidence level. Inverting these regions gives all candidate parameters whose regions contain the observed data. The ordering of outcomes and allocation of tail probabilities affect the resulting interval. They must be declared to make the procedure reproducible. There is generally more than one valid interval construction for the same sampling distribution, especially with discrete counts.
For a Poisson observation without background, a one-sided upper limit can be defined by the cumulative probability of observing no more than the actual count. At zero observed events this equation is particularly simple: the probability of zero is an exponential. The upper limit is positive, even though the plug-in variance estimate based on the observed count is zero. This limit concerns the mean of the original count model, so translating it into a physical rate requires the exposure and any known efficiency.
Approximate intervals require diagnostic checks
A local quadratic log likelihood or an approximately normal estimator often motivates a symmetric interval or a likelihood-ratio threshold. Such asymptotics need identifiable parameters, appropriate interior true values, a regular sampling model and sufficient information. A nonnegative signal strength at zero is on a boundary; an unidentified peak location under a background-only model is another failure mode. Blindly using an interior chi-square calibration can then give incorrect tail probabilities or coverage. Sparse counts can also remain strongly asymmetric.
Exact discrete procedures often overcover because an acceptance probability cannot vary continuously when whole outcomes are added or removed. This is not the same as assigning a probability that the parameter is physically allowed. Conversely, a Bayesian interval can have useful coverage without being defined by coverage. Report the interval type, level, ordering, nuisance treatment and any simulated coverage checks. A standard deviation alone cannot substitute for these choices, and agreement between two interval methods in one example does not establish general equivalence.
Work it through
An exact known-resolution Gaussian interval
A single hypothetical energy measurement is 10 keV, with exactly known Gaussian standard deviation 2 keV and unrestricted mean mu. Use to construct a two-sided 95% confidence interval and state its interpretation.
The pivot is exactly standard normal under the specified model. Its probability of lying between minus 1.96 and plus 1.96 is approximately 0.95.
Invert the pivot inequality to give . The observed half-width is .
The realized interval is . Repeating this fixed procedure at any fixed mu gives approximately 95% inclusion; this statement does not assign a posterior probability to mu in this particular interval.
The known-sigma Gaussian 95% interval is [6.08, 13.92] keV, with repeated-sampling coverage under the stated model.
The living notebook
Explore the model
Interactive lab · sampling
Sampling variation shrinks with independent information
Reset and set BOTH Success probability p = 0.5 and Independent samples n = 10; predict sample-mean variance 0.025. For a fresh comparison, Reset and set p = 0.5 and n = 40; predict variance 0.00625.
- Mean sample proportion
- 0.5
- Sample-mean variance
- 0.0125
- Uniform CDF error bound
- ≤ 0.1062
Exact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forThe instrument shows exact binomial sample-mean probabilities, a normal comparison and a CDF-error bound. It does not construct confidence intervals, measure coverage or resample experiments.
Pause & reason
Check your understanding
Your turn
Try it yourself
Observe zero Poisson events during 2 s with no background, unit efficiency and exactly known exposure. Find the conventional one-sided 95% upper limit on the rate. Use .
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Set the probability of zero events at the upper mean equal to 0.05, then convert that mean to a rate.
Compare with the solution
At the upper endpoint , hence . Dividing by two seconds gives . The reported interval is from zero to this upper endpoint for this observation. It is a one-sided construction, not the upper endpoint of a two-sided equal-tail 95% interval. Unknown background, efficiency uncertainty or an adaptive stopping rule would require a revised construction and coverage assessment.
Keep the idea
Take it with you
- Confidence refers to the repeated behavior of a specified procedure.
- Tail allocation and discrete ordering affect interval endpoints.
- Zero counts and physical boundaries require more than a symmetric plug-in error.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.