← All projectsGitHub
Digital twins & sim-to-real

When should a twin run that counts rare failures stop?

research/stop-twin

When to stop a twin run counting rare failures: sequential Wald stopping halts on zero failures (90% of runs at p=10⁻³, coverage 9.6%), inverse sampling to m failures gives exactly unbiased (m−1)/(N−1) with relative sd ≈1/√(m−2) and an exact interval (95.0–95.5%), while a fixed run planned for the wrong p delivers 63–200% half-width.

8 tests

What it found

Running a safety twin “until the interval is narrow” stops on zero failures, because p̂=0 has Wald half-width 0: with a target of p/5, 90% of runs stop at the first check for p=10−3 (99% at 10−4), the interval covers p in 9.6% of runs and the reported rate is 10× too low. Running until m failures (inverse sampling) makes (m−1)/(N−1) exactly unbiased while m/N is about m/(m−1) too high, gives relative sd ≈1/√(m−2) whatever p is (m=102 for 10%; measured 0.101), and an exact interval covers 95.0–95.5%. A fixed run planned for p=10−3 delivers a 20% relative half-width there but 63% at 10−4. A one-failure minimum alone restores Wald coverage in this configuration, because the target already forces ~96 failures. Stylised (iid Bernoulli failures, faithful twin, no run cap).

A figure from its own output

Figure produced by research/stop-twin: coverage_vs_minfail
stop-twin/experiments/coverage_vs_minfail.svg, written by the project's own experiment code.

Paper, code and results

More in Digital twins & sim-to-real

All 164 Digital twins & sim-to-real projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.