A print operator checks twenty test pages and doesn't find a single defect. One colleague writes “zero percent.” Another reports an upper limit of about thirteen point nine one percent. The customer wants to know how many sheets might be defective in the next carton. Three different objects have entered the discussion: a count in an inspected set, a confidence limit on a process parameter, and a future count. Matching their labels to the right objects matters more than deciding which number sounds reassuring.

The result of the inspection was zero out of twenty. That is an exact statement about what was recorded under the stated inspection rule. The second number comes from asking how often a process at a proposed rate would yield a sample as clean as the one observed. It is not a revised inspection tally. It also is not a ceiling on the number of defects in the next carton. The fact that the two quantities can be plotted together in percent is convenient and potentially misleading.
All pages and inspection results in this article are invented. The mathematical demonstration assumes twenty independent binary observations at one fixed defect probability. It is not a quality standard, a recommended acceptance plan, or a finding about a real printer. The distinction is easiest to see by focusing on the unusual simplicity of the zero-event case instead of starting with an all-purpose interval formula.
Define the event and its denominator first
Suppose a page either has at least one qualifying print defect or does not, using a declared visual rule. A page with three defects contributes one positive outcome under that rule. If the task is to count blemishes, the denominator, event definition and appropriate probability model can differ. The article concerns the number of defective pages, not the number of marks. Someone who changes the meaning of a positive halfway through has not just revised a heading; they have changed the data-generating question.
The model assigns each inspected page a probability p of a positive result, fixed across the twenty pages. Independence means the outcome for one page does not change the probabilities assigned to outcomes for others. Those are assumptions about the particular process and selection, not properties generated by making a two-column spreadsheet. Consecutive pages from one short run might share a common disturbance. Pages from different product settings might have different probabilities. The clean arithmetic below is conditional on a setting in which these features do not invalidate the model.
A separate issue is whether the inspection can detect the defects of interest. Twenty pages inspected under a narrow lighting condition could yield zero marks detected without establishing that all twenty are free of marks visible under a different criterion. If the binary variable is detection under the declared protocol, then that is what p addresses. Converting a detection probability into a probability of any true defect requires additional knowledge about the observation process. An exact confidence procedure does not correct a misdefined event.
Write down the observational unit as well. Twenty pages might mean twenty sheets inspected on one side each, or ten sheets printed on both sides. If marks on two sides of a sheet share a cause, the two sides may not behave like independent trials. Choosing to count sheets can be reasonable if a purchaser cares whether either face is defective. A claim stated per page should not quietly use sheets in the denominator. A transparent inspection report identifies what was eligible, what was looked at and how the cases were grouped.
Finally, look at how the pages entered the sample. Picking twenty apparently good sheets from a finished pile is not equivalent to observing twenty preselected outputs. Deciding to repeat a check until twenty clean pages appear changes the sampling rule as well. An apparent success series can arise from a decision about which observations to keep. That matters when using a repeated-sampling calculation that assumes a fixed number of trials and a declared rule. The inspection tally may still be literally correct, but the stated uncertainty would no longer have its original basis.
Zero observed and one-sided exact upper limit
The display reports a fictional observed share and a calculated upper endpoint, both in percent. Neither is an official target, a real inspection finding, or an estimate of a future batch count. The second bar is drawn in proportion to 13.91 on a zero-origin scale; the numeric labels and table give the exact displayed rounded values. Zero is represented by no bar.
Observed defect share 0 95 percent upper limit █████████████▉ 13.91
| Quantity | Percent |
|---|---|
| Observed defect share | 0 |
| 95 percent upper limit | 13.91 |
The first row is zero divided by twenty, converted to percent. The second row is the upper confidence endpoint from one particular method and confidence direction. It is not a new observation, and the rows should not be averaged or added. Calling the difference “thirteen point nine one points of hidden defects” would confuse uncertainty about a rate with an uncounted portion of the inspected pages. The sample did not increase in size and nobody found more marks after computing the bound.
The bar and table use a rounded endpoint. A decision whose limit sits close to that rounded value should use the unrounded calculation and stated comparison rule. An acceptance boundary written with one significant digit and a statistical endpoint carried to many digits can invite an illusion of exact policy. Display precision is an editorial choice. The exactness of the method comes from how its sampling probabilities are calculated, not from the number of decimals displayed.
“Upper limit” needs the qualifier “confidence.” An engineering specification may also be an upper limit, but it is selected for what the purchaser or design requires. The confidence endpoint is calculated after inspecting the documented sample under an inference rule. It does not rewrite the specification and is not itself proof that a particular requirement was met. Both kinds of values can appear in the same report if they have separate labels.
Recover the confidence endpoint from the probability of a clean sample
With independent pages and fixed p, the chance that any one page is not defective is one minus p. The chance that all twenty are not defective is the product of twenty such factors, or (1 minus p) to the twentieth power. The same formula follows by setting the event count to zero in the binomial probability mass function. See the NIST handbook entry on the binomial distribution. In its terminology a “success” is simply the counted event, so here a defect is the mathematical success even though the printer would prefer otherwise.
The relationship decreases as p increases. At p equal to zero, a clean set is certain under the model. At p equal to one, a clean set is impossible. For intermediate p it is possible, but may be rare. Inverting the zero-count lower tail asks where the probability of a result this low first reaches the chosen tail level. Zero is the lowest possible count, so “as low as zero” means exactly zero here. That is what makes the arithmetic especially transparent.
At a one-sided 95 percent confidence level, the tail threshold in this inversion is 0.05. Set (1 minus p) to the twentieth power equal to 0.05. Taking the twentieth root and subtracting from one gives p equal to 1 minus 0.05 raised to the power of one twentieth. The result is about 0.13910834 on the probability scale, or about 13.91 percent. If the actual fixed probability equaled this boundary, the probability of zero in twenty under the assumed model would be five percent. That is a statement conditional on a specified value of p, not the probability that this particular bound is correct.
The R reference for the exact binomial test describes Clopper-Pearson confidence intervals and one-sided alternatives. For the defect-as-event coding, an upper endpoint corresponds to the less alternative in an exact binomial test. That direction can feel backward until the test is phrased correctly: a count this low is evidence against proposed rates that are too high. The confidence set retains rates not excluded in that direction. If the counted event is instead a clean page, the parameter is the complement and the direction has to change accordingly.
A concrete code check in R would inspect the confidence interval returned by the exact binomial test for zero counted events in twenty trials with the less alternative and confidence level 0.95. The enclosed p-value, if inspected too, concerns the proposed null probability supplied for the test; it is not the upper confidence endpoint. A careless report can copy the wrong numeric column and still sound plausible. Check the field name as well as the result. The zero-count equation provides an independent way to verify that the upper endpoint is around 13.91 percent.
A two-sided exact interval of overall confidence level 95 percent allocates probability to two tails in the construction. At zero the lower endpoint remains zero but the upper one uses 0.025 in this formula for the equal-tailed construction, not 0.05. It is therefore higher, about 16.84 percent. This is why an otherwise reputable software report can give a different boundary without there being any disagreement about the zero counts or binomial formula. Inspect whether the task called for a one-sided upper assurance or an equal-tailed interval before selecting a number.
Why zero is not the rate and the endpoint is not a second rate estimate
Zero is the observed fraction and the binomial maximum likelihood estimate of p when all counts are zero. The best-fitting single value under that likelihood does not encode how many competing nonzero values could plausibly produce the observations. A clean sample is perfectly compatible with a nonzero rate. The upper confidence endpoint summarizes a tail inversion, not a replacement point estimate. Printing both numbers properly distinguishes the observed outcome from what it can exclude about a model parameter.
A useful intuition comes from possible fixed rates. At five percent, the chance of a clean twenty under the model is 0.95 to the twentieth power, about 35.85 percent. At ten percent it is 0.90 to the twentieth power, about 12.16 percent. At twenty percent it is 0.80 to the twentieth power, about 1.15 percent. These examples are derived under proposed rates, not estimated from the workshop. They show why a small clean sample can be convincing against very large rates while leaving substantial room for smaller but operationally important rates.
There is a distinction between saying that a high rate would rarely generate zero in twenty and saying it is impossible. A process with a twenty percent rate can produce such a sample. It is simply an unusual outcome under the stated assumptions. A confidence procedure permits rare outcomes to lead to exclusions of the true value; that possibility is included in its repeated-sampling interpretation. “We ruled it out at the stated confidence level” is not a logical proof that the excluded value cannot be true.
Nor does an upper endpoint divide possible rates into those uniquely supported and those that are equally likely within the interval. At zero observed, the likelihood changes across the range; smaller rates give a higher probability of the clean count. A confidence interval does not assign probabilities to its contained rates. If a different method uses a prior and a posterior distribution for p, a probabilistic statement about the parameter can be formulated within that alternative framework. It should not be attributed to the confidence calculation without actually doing that work.
The lower boundary at zero is a property of the parameter's support and the outcome. It does not give a claim of proof that the true rate is zero. Conversely, the upper boundary does not assert the process operates near thirteen point nine percent. The interval, from zero through the endpoint, is an inference output for the fixed p under the declared method. Calling it the range of observed per-page outcomes would be especially confusing, since individual pages in the model can have only the two binary outcomes, not intermediate defect fractions.
What “95 percent” can and cannot attach to
Imagine repeating the fixed inspection design many times at one true, unchanged defect probability. Every sample produces an upper confidence endpoint under the chosen method. Over repetitions the method is designed to produce endpoints at or above the true value at least the declared fraction of the time under its assumptions. The R exact binomial test documentation describes this at-least property for its Clopper-Pearson construction. The underlying outcomes are discrete, so the actual coverage need not equal the nominal number for every true p.
This property applies to the rule rather than granting each displayed interval a probability about a fixed parameter. After observing these twenty pages, the upper endpoint is a computed number. Under this frequentist account, the true p is considered fixed and either lies below that number or does not. It is not moved around by the report. Saying “the method has at least 95 percent coverage under its binomial assumptions” communicates the guarantee it was designed to provide. Saying “there is a 95 percent chance this printed number covers the actual fixed rate” adds a different interpretation.
The word exact is easy to oversell. Here it refers to using the binomial sampling distribution for the confidence construction, rather than appealing to an approximate bell shape. It does not mean the defect classification is perfect, the trials really are independent, or the true process can have only finitely many risk classes. Exact probabilities under an ill-suited model are still conditional on that model. For a quality decision, document both the correctness of the calculation and what supports applying it. A beautifully checked formula cannot resolve a selection problem.
The stated confidence level also does not guarantee that ninety-five percent of future pages will be good. A parameter confidence level addresses how the interval procedure behaves across repeated datasets. A claim about the fraction of good future pages concerns the process itself, and a claim about one future carton adds sampling variation. The same word “percent” occurs in all three statements. What the percentage is a fraction of is the most important piece of its label.
Change the sample size rather than rebranding the same result
The table could look dramatically different with another fixed sample size even if the observed share were still zero. Under the same independent model and one-sided rule, the upper endpoint after zero in n is one minus 0.05 raised to the power of one over n. As n increases, the clean outcome would be harder to obtain at a fixed positive p, so the compatible upper limit falls. With fewer inspected pages the opposite occurs. A report that publishes only zero percent hides the denominator that makes the statements different.
A common approximation for moderately large n is roughly three divided by n for the one-sided upper ninety-five percent zero-event case. It comes from approximating one minus an exponential with its leading small-argument term: negative log of 0.05 is about 2.996. In twenty trials the rough expression gives about fifteen percent, not the exact 13.91 percent. It may be useful for a quick intuition about sample size, but replacing the promised exact calculation with the approximation near a decision boundary would be a mistake.
The same equation can outline a hypothetical sample design if one wants a zero-event upper confidence endpoint at or below a prespecified target. Solve the inequality on the denominator before observing the sample, state the independence and rate assumptions, and remember it describes the case in which no defects are observed. It is not a guarantee that inspection will return zero. If defects appear, the resulting upper endpoint uses the general binomial calculation rather than the zero formula. Design planning and reporting an observed result are separate acts even when they share the same equation.
There is also a selection issue if a report combines the cleanest points from many samples. Twenty observations from the selected clean sample do not function like one sample fixed in advance if prior failed checks were used to decide which batch to present. Likewise a team that keeps increasing the sample until a desired confidence limit appears is using more than the originally stated rule. A planned sequential design deserves its own inference. Someone receiving a report can ask which runs were started, which were complete, and why this one is the one described.
A future carton adds a random count
Let the next carton contain m pages. If its pages are independent at the same known p, the number of defective pages is itself a binomial random variable with size m and probability p. It can range from zero to m. The mean number for that model is m times p, not a boundary on the realized count. The binomial distribution and quantile documentation describes calculating cumulative probabilities and discrete quantiles when the size and probability are supplied.
To see why a rate times batch size is not a count limit, suppose for illustration that p is known to be ten percent and the new carton has twenty pages. The model's mean count is two. The actual count can be three, four or more. It can also be zero. The mean is what would average out over many such cartons, not a cap for a single one. A count prediction uses the distribution of counts around the mean. With an estimated rather than known p, there is also uncertainty about where that distribution should be centered and how dispersed it should be.
Multiplying the exact upper endpoint by the new carton size would give the mean count evaluated at the upper endpoint of the parameter interval. If the true p is less than or equal to that endpoint and the new carton follows the same model, its true conditional mean would be no greater than that product. This inference is mathematical but much weaker than saying the actual count cannot exceed the product. Rounding the product upward to a whole page does not solve the problem. The size of the batch can change the practical stakes without changing the meaning of the parameter confidence interval.
Even computing a high quantile at the estimate of zero is inadequate here. Inserting zero into the future binomial distribution predicts a count of zero with certainty. That result is the logical output of treating a boundary estimate as known. It discards the very uncertainty that the confidence limit was introduced to express. A report can present forecasts under selected fixed scenarios without claiming a prediction guarantee. If a prediction interval with a stated repeated-trial guarantee is required, its construction must account for how both the old sample and the future batch are generated.
Another choice is to compute a future upper quantile using the upper confidence rate as a conservative scenario. In the simple fixed-p binomial model, a larger supplied p shifts counts upward in the sense that the chance of exceeding a fixed count increases. A quantile at the upper endpoint can be useful as a conditional scenario when described honestly. It does not automatically have the same unconditional coverage level as the parameter limit. One source of failure is that the upper endpoint can fall below the true p in repeated sampling; the other is that the future count can exceed a high quantile even at a known rate. A formal joint guarantee must explicitly address both sources, not reuse the same printed percentage for both.
Future counts are discrete, so deciding what an upper count means requires a boundary convention. A quantile may give the smallest whole count whose cumulative probability meets or exceeds the chosen level under its model. The mass at that count can make achieved coverage larger than the nominal value. A threshold written as “at most three” includes three, while “fewer than three” does not. This is another reason a continuous-looking bar at 13.91 percent cannot do all the work. A prediction question must name a count, its horizon, and the comparison event.
Finite inspected sets and continuing processes are different targets
If all twenty pages were the only pages ever printed and all were inspected under a reliable rule, zero defects would describe that finite set. There may be no reason to put a confidence limit around its observed proportion as a description of that set. Uncertainty about the detection method is still a separate matter. A confidence limit becomes relevant when inferring a larger process probability or a defined unobserved population, and the assumptions for that target need to be stated.
Suppose instead the twenty pages were sampled without replacement from a known finite carton whose contents are already fixed. Then the outcomes of successive draws are not independent conditional on the carton composition in the same way they would be in the Bernoulli model. A calculation tailored to the finite population can answer a different question about the number of defective pages among those already printed. It is not automatically the calculation applied to new pages generated next week. Describe whether the target is a fixed inventory or output from a continuing process before borrowing model language.
When drawn pages are a small share of a large population, someone may choose an approximation and justify it for their decision. In other designs, the finite sampling fraction is material enough that a binomial calculation would be poorly matched. The key point in the toy is not to prescribe one procedure for all inspection work. It is to keep the apparent precision of the upper endpoint tied to the stated independent binary model. Different assumptions produce different probabilities of a clean sample.
Nor should a manager assume a new carton has the same process setting because it uses the same printer name. Paper stock, press settings, inspection protocol or production phase might change. If the new group comes from a meaningfully different regime, a rate limit for the old regime may not help even as a conditional prediction scenario. A handoff can identify the unit, time window and conditions for which the old data provide evidence. This is more useful than adding decimals to a rate meant to apply forever.
Group-level disturbances can affect future counts in a different way. Pages in a carton might all share the same printing conditions, while variability across cartons is substantial. Then small illustrative independent-page calculations understate how many ways counts can cluster even if the overall average rate seems modest. If the relevant decision is about cartons, sampling several independently selected cartons may reveal more about between-carton variation than repeatedly taking adjacent pages from one carton. No statistically neat correction can recover the missing source of variation without evidence or assumptions.
An acceptance rule is a third decision, not the output of an interval
A buyer or production lead may specify an inspection plan that accepts a batch when its sample contains no defects. That is a decision rule; it is not equivalent to asserting that the population rate is zero or that no future carton will have defects. Under the independent model, the probability of acceptance for a fixed p would be the probability of a clean sample. That relationship can be used to study the rule, but it still does not give the probability that a particular accepted batch satisfies a target without an additional framework.
The tension becomes apparent if a team casually chooses a requirement after seeing the statistics. One person says zero of twenty passed because no marks were recorded. Another compares the upper confidence endpoint to a rate specification of, say, five percent and says the evidence misses the desired assurance. Both can apply legitimate arithmetic, yet they are answering different questions. An organization should decide before seeing the count whether it is using a sample acceptance rule, an inferential assurance requirement, or another design. It may use both if it is explicit about what follows from each result.
A report can therefore describe the result in layers. “No qualifying defects were observed in twenty inspected pages” is the sample result. “The one-sided 95 percent exact upper confidence limit for the fixed rate is 13.91 percent under the declared model” is the statistical inference. “The batch met the stated acceptance rule” can follow if that rule was documented and satisfied. None of those lines should be quietly edited into “the next carton will be defect-free.” A forecast would require a separate statement of the new batch size, conditions and uncertainty.
The language of guarantees deserves particular caution. A contractual promise may apply regardless of what a sample reveals. A process assurance procedure may identify how often incorrect favorable decisions would be expected under assumptions and proposed rates. A confidence interval procedure has its own coverage property. None of the three supplies the others by default. The arithmetic is not a substitute for identifying what the organization has promised and on what evidence it can speak about quality.
See the inversion as a comparison, not a search for the most plausible rate
A helpful graph for understanding the calculation would place proposed fixed rates on the horizontal axis and the chance of observing zero in twenty on the vertical axis. At the left the probability is one, and it descends as the proposed rate grows. The published upper endpoint is where the curve meets the five-percent mark. On that graph it is easy to see why the upper rate and the tail level are different numbers. The first is a location on the horizontal axis, while the second is a probability attached to an outcome at that proposed rate. Switching the axis labels in prose produces a confident-sounding reversal.
Compare two legitimate questions asked of the same graph. If a manager asks whether a proposed rate of ten percent would be excluded by the stated one-sided rule, the approximate twelve-percent probability of a clean sample at that rate is above the five-percent cutoff. The zero result would not exclude that rate at this level in this direction. If the manager asks whether the observed sample is more likely under a five-percent rate than under a ten-percent rate, it is: their clean-sample probabilities differ. Not excluded does not mean equally supported. Neither statement gives the probability that the printer truly operates at either proposed rate.
Suppose an analyst has copied the printed endpoint into a chart used for comparing samples of different sizes. The next reader might incorrectly see a narrower limit as evidence that the inspected set had fewer defects, even if both sets had zero. Preserve both the numerator and denominator beside each endpoint. When all observed shares are zero, differences in the resulting limits can arise entirely from the amount of evidence. This is a case where the sample count does more explanatory work than repeating the same percentage next to a row of bars.
Ask what evidence would separate the print scenarios
A manager reading the toy report might ask for more observations from the same process. It matters what “more” means. Repeating judgments on the identical twenty sheets may provide evidence about agreement between inspectors or the reliability of detection. It does not create twenty new independent outcomes from the printer. Taking more sheets from the exact same uninterrupted run could provide more evidence about that run while doing little to test whether another run behaves similarly. A new set selected across relevant production conditions addresses a different uncertainty. The report should match the added evidence to the concern rather than simply increasing the total printed next to zero.
A change of inspection rule also calls for a separate comparison. Consider a first operator who counts only missing ink and another who also counts minor alignment faults. Zero under the narrower definition and a positive count under the broader one need not represent deterioration. A historical zero may be retained as a valid observation about its original event definition without being pooled with the later outcomes. Harmonizing the rules may require re-evaluating stored images or starting a new series; relabeling the old numerator does not harmonize anything.
Finally, check whether every potential defect has the same consequence for the decision at hand. A binary endpoint could count all rejected pages equally while the buyer cares specifically about severe legibility issues. If so, define and track that outcome explicitly and give its own denominator and confidence analysis. If the analyst selects types only after looking for a clean result, document that selection rather than reporting the smallest limit as if it were the only planned test. The same twenty inspected pages can supply several observations about different features, but the resulting inferences need their own labels. A useful inspection report makes the endpoint of practical interest apparent before a reader has to infer it from the selected calculation.
A usable handoff preserves three kinds of uncertainty
Start with a small observation ledger: the sample design or selection rule, the sample size, the condition identifying a defect, the recorded positives and any unavailable readings. If a page could not be inspected, its outcome is unknown. Adding it to the denominator as if it were clean manufactures evidence. Logging it separately makes possible a later decision about whether the planned sample is complete. Record whether quantities refer to pages, sides or cartons so that a later reviewer can reproduce the observed fraction correctly.
The parameter report should incorporate its method, assumptions, direction and confidence level. A useful check for the example is whether an independent calculation recreates the endpoint from the zero-event probability. If a software number looks different, confirm that defects rather than clean pages were counted, that the level is one-sided, and that the output field really is the bound. After those checks there is no need to hide the observed zero. It remains the central fact that made the simple inversion possible.
The forecast report, if needed, should name the count and horizon rather than reusing a percent interval. It should identify how the next batch is related to the inspected one and what supports that relationship. For a scenario calculation a stated p and m may suffice. For a formal prediction a reviewer should ask how both rate uncertainty and future variation enter the claimed coverage. If the only evidence is the toy observation, report the limits rather than borrowing assurance from the case of a known p.
There are times when the next useful step is not a more complicated model. Better selection, a clearer defect definition or recording how many pages actually came from each run can materially change what the data support. If the intended use is to translate a scattered sample into an inference about a stable process, evidence that the process was observed under comparable conditions is more helpful than one more decimal place. If the intended use is to compare printers, inspect whether both were measured under the same declared detection rule before comparing confidence endpoints.
Return to the twenty clean pages. Their observed share is zero. Under the fictional independent binary model, a rate near 13.91 percent would produce that clean outcome about five percent of the time, which is why it marks the one-sided confidence endpoint. The next carton will have its own random count if the process continues, and its count is not a confidence endpoint multiplied by a stack size. The most useful sentence in the report is the one that tells the reader which of these three questions was actually answered.