← All projectsGitHub
Digital twins & sim-to-real

Can a rollout cap on a sequential certification test be set without losing the 5% error guarantee, and what does it cost?

research/free-sprtcut

Follow-up to free-sprtcap: re-tuning a capped SPRT's boundaries and final cut so both errors stay at or below 5% exactly costs, for 1% vs 5% (fixed test 181 rollouts), a mean of 107 rollouts at a cap equal to the fixed size and 90 at twice it, against 90 to 95 for the plain capped test that overshoots the error; the fixed test needs 181.

5 tests

What it found

free-sprtcap showed that simply capping Wald's SPRT inflates the unacceptable-rate error (0.067–0.069 at a cap equal to the fixed test's size). This project re-tunes it: an exact dynamic programme over (trials, failures) searches multiples of Wald's two boundaries (0.5 to 2.5×, each side separately) and every possible final cut for the setting that holds both achieved errors at or below 0.05 and minimises the mean rollouts averaged over the acceptable and unacceptable rates. For p1 = 1% against p0 = 5% (fixed test 181 rollouts) the mean is 107 at a cap of 1× the fixed size, 99 at 1.2–1.3×, 94 at 1.5× and 90 at 2×, always well under 181; the plain capped test is cheaper at small caps (90 to 94) only because it breaks the error guarantee, and at 1.75–2× the re-tuned test is cheaper than it (90.3 against 95.0) while holding the guarantee. Two other (p0, p1) pairs show the same pattern. Rollouts are assumed iid Bernoulli with the twin's failure rate (no sim-to-real gap), the boundary grid is coarse (steps of 0.1×), only the average of the two means is minimised, and nothing is sampled: every number is exact.

A figure from its own output

Figure produced by research/free-sprtcut: mean_vs_cap
free-sprtcut/experiments/mean_vs_cap.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.