Part III · Chapter 6 · The Window · lesson 4
Work it the other way: how many to rule out one in twenty?
14 min
Builds on Twenty-five clean out of twelve hundred proves less than you think
Part III · Chapter 6 · The Window · lesson 4
14 min
Builds on Twenty-five clean out of twelve hundred proves less than you think
Four hundred and twenty change tickets went through the period. Your reviewer will test some of them, and somebody has to say how many.
The previous lesson worked forwards: here is the sample, here is what it fails to rule out. This one works backwards, which is the direction anybody planning the work actually needs. Pick the rate you want excluded. Pick how sure you want to be. The sample size falls out.
Predict
Inverting the bound takes one line of arithmetic.
A clean test of n items leaves a bound that falls roughly as one over n. So for any rate you want to exclude, there is a smallest n that gets the bound below it, and it depends on only two things: the rate, and the confidence.
Not the population. That is the surprising part — the required sample is essentially the same whether you are drawing from four hundred items or forty thousand, which is why the published tables can be printed without a population column at all.
What the population decides is whether the answer is reachable. When the sample a target needs is larger than the population holds, sampling cannot get you there, and the only remaining route is examining every item.
Sampling confidence
Hypothetical model, not a forecast
The largest deviation rate a sample does not rule out. A clean test estimates the rate at zero; this is the worst rate still consistent with that result, which is a different and much larger number.
It assumes
It ignores
Four hundred and twenty tickets is all you have. Tighten the rate you want excluded, or raise the confidence you want it excluded at, until a clean test cannot get you there from this population at all — the sample needed is larger than the population holds.
How often a bound computed this way is right. It is never 100.
The rate the conclusion wants its upper bound to sit below.
| Items examined | Bound a clean test of this size supports | The rate you want excluded |
|---|---|---|
| 1 | 95% | 5% |
| 2 | 77.4% | 5% |
| 3 | 62.9% | 5% |
| 5 | 44.8% | 5% |
| 8 | 31% | 5% |
| 12 | 21.7% | 5% |
| 20 | 13.6% | 5% |
| 25 | 11% | 5% |
| 30 | 9.05% | 5% |
| 50 | 5.24% | 5% |
| 80 | 3.1% | 5% |
| 120 | 1.9% | 5% |
| 200 | 0.95% | 5% |
| 300 | 0.48% | 5% |
Not there yet — keep moving the controls.
Read the sample size the model solves for as you move the two controls.
At one item in twenty, with the usual confidence, it is fifty-nine. Tighten the target to one in a hundred and it is two hundred and ninety-nine — five times the sample for a fifth of the rate, which is the ratio worth carrying in your head. Raise the confidence instead and keep the target at one in a hundred, and it passes four hundred and fifty, which is more tickets than the period contained.
That last state is the one worth sitting with. The conclusion was not expensive; it was unavailable. No sampling plan reaches it from four hundred and twenty items, and the only honest routes are to examine every ticket, to accept a looser target, or to accept less confidence in it.
Check
The number the model solves for is the with-replacement one, because that is the formula the published tables are built from. It is slightly conservative: at this population it asks for fifty-nine items where the exact finite-population arithmetic reaches the same bound at fifty-three.
Six items of extra work for a figure that is easier to defend because everybody else computes it the same way. That is usually a trade worth taking, and it is worth knowing which direction the error runs — towards more sample, not less.
The whole inversion assumes deviations occur independently: that whether ticket number two hundred has its approval tells you nothing about ticket two hundred and one.
Real deviations cluster. A rule gets misconfigured on a Tuesday and every change that week goes through unapproved; somebody covers for a colleague for a fortnight and does it differently. The failures arrive in runs, and a random sample of fifty-nine spread across the period is poorly placed to see a run: it will probably catch one item from the bad fortnight, which looks like an isolated slip rather than the two weeks it came from.
That is not an argument for a bigger sample. It is an argument for looking at when the deviations you find fall, which is what the evidence-coverage model in track 4 is for, and for treating one deviation as a question about a period rather than as a count of one.