AI Safety
Statistical Safety Cases: From Tests to Defensible Claims
What zero observed failures can and cannot establish: the exact zero-failure confidence bound and its sample size, simultaneous coverage across prespecified candidates, why duplicated trials and adaptive holdout reuse break the inference, how a total-variation bound would carry a claim to deployment, and where these finite-sample pieces sit inside a structured safety case.
Learning position
Place this page in a reading path.
ai-safety | layer 5 | tier 2. This page has 2 direct prerequisites and 1 published dependent.
What next
Reasoning Monitorability: What an Overseer Can ObserveThis is the first curated or graph-derived continuation from the current page.
Evidence badge
Source-grounded pageThis page has no public Lean mapping yet. Use the evidence page to inspect how claim status labels work.
Why This Matters
Zero observed failures is a dataset. A safety claim is an inference. The assumptions that connect them are part of the result.
A safety case is a structured argument that a particular system, in a particular operating setting, is unlikely to cause an unacceptable outcome. Clymer and colleagues organize such arguments into four categories: total inability to cause a catastrophe, sufficiently strong control measures, trustworthiness despite capability, and, if systems become much more powerful, deference to credible AI advisors. [1] No single benchmark substitutes for that whole argument.
This page develops one component: finite-sample claims about a defined failure event. The mathematics is useful because it makes the limits visible. Three results are derived here from stated assumptions. Statements about the cited papers are attributed to their authors, and the evaluation workflow and safety-case record near the end are proposals.
Before you start: conditional probability and the Bernoulli and binomial models from common probability distributions. Hypothesis testing helps. The optional sequential section connects to confidence sequences, anytime-valid inference and martingales.
Freeze the thing being evaluated
A safety claim has to identify the model version, prompts, tool access, permissions, memory, software wrapper and workload. Changing the surrounding system can change the failure distribution even when the model weights stay fixed.
Unit of exposure
The unit on which a failure probability is defined: one answer, one autonomous trajectory, one database migration, one user-day. A per-answer rate and a per-trajectory rate are different parameters. A system that takes ten times as many actions creates a different exposure pattern even if its per-action failure probability is unchanged.
Separate at least two targets: the ability to perform a dangerous action under strong elicitation, and the probability of undesirable behavior under a particular operating protocol. Shevlane and colleagues distinguish dangerous-capability evaluations from alignment evaluations as inputs to risk management; the two measurements support different arguments. [2]
The calculations below concern a fixed binary event on a declared population of trials. They do not decide which harms are acceptable. Choosing the event and the acceptable rate is a substantive decision made outside the probability calculation.
The exact zero-failure bound
Assume are independent failure indicators from one fixed system and evaluation distribution, with the sample size fixed before any outcome is seen. Let count the failures. Then
One-sided upper confidence bound
A statistic computed from the trials is called a level upper confidence bound for exactly when for every in . The probability is over repeated samples at a fixed . The parameter is not random.
The Zero-Failure Upper Confidence Bound and Its Sample Size
Statement
When no failures are observed, report . For every in ,
so the zero-failure report fails to cover with probability at most . For a target rate in , holds if and only if
Intuition
is the largest failure rate under which a clean run of trials still has probability at least . Any rate above it would make the observed clean run a rare event.
Proof Sketch
If the event is empty. If , then , so .
For the sample size, means . Taking logarithms gives . Multiplying by and dividing by the negative number reverses the inequality to , and is an integer.
Why It Matters
At and 95% confidence, , or 0.2991%. Placing the 95% bound at or below 0.1% takes 2,995 failure-free independent trials. Because , the bound never exceeds , which is about at 95% confidence: the rule of three is a slightly conservative version of the exact bound.
Failure Mode
Every assumption carries weight. Duplicated or clustered trials break independence. A candidate chosen after seeing these outcomes breaks the fixed-system assumption. Restarting the count after a failure, or waiting for a favorable moment of a bound that allows failures, breaks the fixed-sample guarantee. A different deployment population has a different . The statement covers the zero-failure branch only, and deleting observed failures to reach is not an application of it.
The zero-failure branch is one case of the one-sided Clopper-Pearson procedure. With observed failures that procedure reports , the quantile of a Beta distribution, and it reports . Inverting the binomial lower-tail tests gives coverage at least , and at the Beta quantile reduces to . The lab below implements only the zero-failure branch.
A confidence bound is not the probability that the system is safe
A 95% upper bound of 0.2991% does not mean there is a 95% probability that the failure rate is below 0.2991%, and it says nothing about harms outside the defined event. It is the output of a procedure that covers the true rate in at least 95% of repeated experiments under the stated sampling model. A posterior probability needs a prior and answers a different question.
How many trials a zero-failure claim requires
The sample-size formula turns a target into a trial budget. The counts below come from the exact formula, not the rule of three.
| Target failure rate | Confidence | Failure-free independent trials needed |
|---|---|---|
| 1% | 95% | 299 |
| 0.1% | 95% | 2,995 |
| 0.1% | 99% | 4,603 |
| 0.01% | 95% | 29,956 |
| 0.01% | 99% | 46,050 |
The word "independent" is doing real work. Extra log lines from the same underlying trial do not supply the same evidence as new trials.
This is a prospective calculation conditional on observing zero failures. It does not promise that the experiment will pass, and it does not decide whether the target rate is acceptable for the exposure the system will face. Sample size determination treats the general design problem.
Assumption-aware binomial inference
What does zero observed failure establish?
Every calculation assumes zero observed failures. Changing the sampling model can remove the claimed inference.
Evaluation-population upper bound
0.2991%
Target-population upper bound
0.2991%
Independent trials for target*
2,995
Independent draws in this model
1,000
The declared rate criterion is not met, even under the fixed-IID, same-population model.
*Prospective fixed-IID, zero-failure sample-size calculation with Bonferroni allocation across prespecified candidates. It does not repair an invalid current design. A confidence bound is not a probability that the system is safe, and says nothing about unmodeled harms.
The lab opens on the 1,000 independent trials preset: both bounds read 0.2991%, and the 0.1% design target needs 2,995 independent trials. Meet the 0.1% design target sets . The evidence-regime menu lets you break assumptions, and unsupported regimes remove numbers instead of showing a reassuring one. Under adaptive candidate selection or unknown dependence both bounds read "Not supported". Under a shifted deployment population the evaluation bound stays and the target-population bound is withheld.
Selection across checkpoints consumes evidence
Suppose there are candidates, all fixed before the confirmation data are revealed.
Simultaneous Coverage for Prespecified Candidates
Statement
Let be the failure rate of candidate and its upper bound, with for each . Then
For zero-failure bounds from independent trials per candidate, .
Intuition
Each candidate receives a slice of the error budget, and the slices add up to however the candidates' errors are related.
Proof Sketch
The union bound gives . The zero-failure form is the previous proposition with replaced by .
Why It Matters
Picking the best of 100 prespecified checkpoints and reporting its unadjusted bound overstates confidence. With and , each adjusted zero-failure bound is 0.7572% instead of 0.2991%, and reaching 0.1% takes 7,598 trials per candidate instead of 2,995. The lab's 100 fixed candidates preset shows the same calculation.
Failure Mode
The guarantee needs every individual bound to be valid. If a candidate is built after inspecting the confirmation results, its own bound is no longer valid, and raising afterwards does not restore validity. The set must be fixed before confirmation, and counts every candidate that could have been reported, not only the ones that were.
This is not permission to inspect the holdout, construct a new candidate that exploits it, and count that as one more prespecified model. Adaptive reuse of evaluation feedback changes the inference problem. Dwork and colleagues study that problem and give mechanisms that preserve statistical validity under additional assumptions. [3] The same failure appears in ordinary research as p-hacking and multiple testing.
A workable design has a development suite, a frozen candidate-selection decision, and a confirmation suite that returns no tuning feedback before that decision. After a failed confirmation, a revised candidate needs a new validity argument. It cannot inherit the original independence because the test file is still called holdout.
Bonferroni does not repair holdout-driven development
Bonferroni allocation controls simultaneous error for a candidate set fixed in advance, given valid individual bounds. When the confirmation data shaped which candidates exist, the individual bounds are the broken part, and dividing by a larger number does not fix them.
Dependence is not a cosmetic correction
One thousand copies of one trial
Draw one outcome and copy it into a thousand rows, so that . The probability of zero failures is , not . The 95% zero-failure bound in this model is , because the data contain one independent draw. The lab's 1,000 copies of one trial preset shows this calculation and reports one independent draw.
Intermediate cases need a model too. Suppose the thousand trials come from 50 independent scenarios, and within a scenario either every trial fails or none does. The relevant sample size is 50, and the 95% bound after a clean run is , about twenty times the naive 0.2991%.
Unknown dependence is a different case again. There is no universal effective-sample-size number to substitute without a model. Clustered tasks, shared scenarios, repeated users and common environmental shocks need an analysis at the corresponding sampling unit or a justified dependence model.
Different task IDs do not certify independence
Task IDs, random seeds, model temperatures and timestamps are details of how the data were generated. Whether they yield independent failure indicators is an assumption about the joint distribution of failures, and it has to be argued from how tasks, scenarios and users were sampled.
Distribution shift is a separate uncertainty
Even a valid bound on need not bound . More test draws from the same generator do not show that the generator covers the mechanisms present at deployment. A conditional result makes the missing quantity explicit, using total variation distance.
Transferring a Rate Bound Across a Total Variation Gap
Statement
Let and for the failure event , and suppose . Then . If satisfies , then
Intuition
Total variation is the largest amount by which two distributions can disagree about the probability of any single event, and the failure event is one such event.
Proof Sketch
By definition . Taking gives , and every probability is at most 1. On the coverage event , the first inequality yields , so the second probability is at least the probability of coverage.
Why It Matters
It names what a deployment claim built from evaluation data is missing: a number like , and that number has to come from somewhere other than the evaluation sample.
Failure Mode
The inequality does not create . When the two populations have little overlap, for instance prompts from sources that a classifier can tell apart, total variation is close to 1 and the bound is vacuous. The result also assumes the same system and the same event definition in both settings; a changed wrapper, tool set or labeling rule breaks it before any population shift is measured.
Without a justified , the formula supplies nothing. Mechanism-shift tests and field evidence can inform a transfer argument, but they should not be summarized as an arbitrary safety margin. The lab's shifted-population regime keeps the evaluation-population bound and withholds the deployment bound. Detecting that deployment inputs have left the evaluation distribution is its own problem, covered in out-of-distribution detection.
Optional stopping is not fixed-sample inference
Recomputing a fixed-sample interval after every batch and stopping at the first favorable result does not inherit the fixed-sample guarantee. Time-uniform methods, including confidence sequences and tests built from nonnegative supermartingales, are designed for sequential monitoring with data-dependent stopping. [4, 5]
They do not make every changing-model experiment valid. A sequence of outcomes from different checkpoints is not a stationary sample from the checkpoint finally selected. The target parameter and the null hypothesis have to stay meaningful as the procedure adapts.
The self-modification page gives an explicit sequential test per candidate and a lifetime allocation of false-approval error. Keep three budgets separate: development compute, statistical error probability, and permitted operational exposure.
Red-teaming and confirmation play different roles
Exploratory red-teaming searches for failure mechanisms. The examples it selects generally do not estimate a natural deployment frequency. Conversely, a representative random sample can miss a rare, strategically important vulnerability.
Use both kinds of evidence and label them. A discovered exploit is strong evidence that a failure is possible in that setting. A measured failure proportion is a frequency estimate only for the sampling and attack process actually used. Neither dominates the other automatically.
For a control evaluation, in the sense of AI control, record the attack-development budget and whether attackers saw feedback from the defense. For a frequency claim, record the sampling frame, exclusions, missing outcomes, adjudication procedure, and whether the test distribution changed after results were seen.
The adjudicator can also make mistakes. If failure labels are noisy, a binomial model for the labels describes label frequency, not necessarily true failure frequency. Calibrate the adjudicator against independently checked cases or use a justified measurement-error model; the advanced exercise below works one out.
Assemble the safety case
A useful record contains the exact deployment scope, the unacceptable event, evidence sources, an uncertainty statement, assumptions, known counterexamples and response triggers. The safety-case framework supplies the organizing concept; this particular record is a suggestion, not part of the framework. [1]
A hypothetical code agent
A case for a code agent might combine enforced permission restrictions, sandbox-escape testing, a controlled adversarial evaluation, and a zero-failure upper bound on a defined operational failure rate per task. These are different evidence types. The permission restriction is a control argument, the escape test is a capability argument, and the rate bound holds only for the task population it sampled. Each keeps its own scope, and none of them licenses the others.
A failed capability test is not proof of incapability when elicitation was weak or strategic underperformance is plausible. Van der Weij and colleagues report that frontier models can be prompted to underperform selectively on dangerous-capability evaluations while keeping general performance, and that models can be fine-tuned to hide capabilities unless given a password. [6] Those experiments show why the distinction matters. They do not establish that any particular low score is intentional.
A claim should expire, or be reassessed, when the model weights, tools, permissions, workload or monitoring procedures change. The self-modification page makes that evidence-invalidation process explicit.
Check your understanding
Do 1,000 failure-free trials prove that the failure probability is zero?
No. Under the fixed independent model, the 95% upper bound is about 0.299%.
Does Bonferroni correction fix arbitrary holdout-driven model development?
No. It needs valid individual bounds, and adaptation to the holdout can break them.
Are 1,000 copies of one successful trial equivalent to 1,000 independent trials?
No. The explicit duplicate model supplies one independent observation, and its 95% bound is 95%.
Does a valid confidence sequence protect against unspecified distribution shift?
No. Validity under optional stopping and transfer to another population are separate guarantees.
Problem
A team logs 450 failure-free, independent agent trajectories from a fixed system. What is the 95% zero-failure upper bound on the per-trajectory failure rate? Does it support a claim that the rate is below 1%? How many failure-free trajectories would a 99% bound at or below 0.5% require?
Problem
Failures are labeled by an adjudicator that catches a true failure with probability at least (its sensitivity) and may also flag some non-failures. Labels on different trials are independent. After trials with no flagged failures, show that is a level upper bound on the true failure rate , where . Evaluate it for , 95% confidence and .
Problem
A team checks the zero-failure bound after every trial and stops the first time falls to or below, claiming the rate is at most . Show that when the true rate satisfies , the probability of making the claim is at most , even though the stopping time depends on the data. Then show that if the team restarts the count after every observed failure and keeps going, the probability of eventually making the claim is 1 for every .
Takeaway
A defensible claim names its event, sampling unit, system version, selection procedure, uncertainty and transfer assumptions. A precise number without those details is not a safety case.
References
Registry ids in monospace resolve in data/content/sources.json. Each record was checked against its arXiv identifier on 2026-09-15. The derivations on this page are elementary and self-contained; the sources supply the safety-case framework, the evaluation categories, and the adaptive and sequential inference literature.
- [1] Clymer, Gabrieli, Krueger, and Larsen. "Safety Cases: How to Justify the Safety of Advanced AI Systems." 2024. Source. Four categories of safety argument; a framework, not a statistical procedure.
clymer-2024-safety-cases - [2] Shevlane, Farquhar, Garfinkel, et al. "Model evaluation for extreme risks." 2023. Source. Dangerous-capability and alignment evaluations as inputs to risk management.
shevlane-2023-extreme-risks - [3] Dwork, Feldman, Hardt, Pitassi, Reingold, and Roth. "Preserving Statistical Validity in Adaptive Data Analysis." 2014 preprint; STOC 2015. Source. Adaptive reuse of evaluation data and mechanisms that preserve validity.
dwork-2015-adaptive-data-analysis - [4] Howard, Ramdas, McAuliffe, and Sekhon. "Time-uniform Chernoff bounds via nonnegative supermartingales." 2018 preprint; Probability Surveys, 2020. Source. Nonnegative-supermartingale framework for time-uniform crossing guarantees.
howard-2020-time-uniform-chernoff - [5] Howard, Ramdas, McAuliffe, and Sekhon. "Time-uniform, nonparametric, nonasymptotic confidence sequences." 2018 preprint; Annals of Statistics, 2021. Source. Confidence sequences valid under optional stopping; not protection against distribution shift.
howard-2021-confidence-sequences - [6] van der Weij, Hofstätter, Jaffe, Brown, and Ward. "AI Sandbagging: Language Models can Strategically Underperform on Evaluations." 2024. Source. Prompted and password-locked strategic underperformance on capability evaluations.
van-der-weij-2024-sandbagging
Last reviewed: September 15, 2026
Cite this page
Sneiderman, Robby. "Statistical Safety Cases: From Tests to Defensible Claims." TheoremPath, reviewed 2026-09-15. https://theorempath.com/topics/statistical-safety-cases
- Canonical URL
- https://theorempath.com/topics/statistical-safety-cases
- Author
- Robby Sneiderman, TheoremPath
- Last reviewed
- 2026-09-15
- What this is
- A reference page on TheoremPath. Written and maintained by the named author. Not peer reviewed and not refereed by any venue. Each claim below carries its own verification status.
- Terms
- All rights reserved. Non-commercial quotation with attribution permitted.
Canonical graph
Required before and derived from this topic
These links come from prerequisite edges in the curriculum graph. Editorial suggestions are shown here only when the target page also cites this page as a prerequisite.
Required prerequisites
2- Common Probability Distributionslayer 0A · tier 1
- Joint, Marginal, and Conditional Distributionslayer 0A · tier 1
Derived topics
1Graph-backed continuations