Zero failures and binomial confidence bounds / 零失败与二项置信上限 / 失敗ゼロと二項信頼上限 Article date: 2026-10-26 Files zero-failures-binomial-lab.py Complete offline calculation script zero-failures-binomial-results.json Actual output from the recorded environment zero-failures-binomial-README.txt This file Run from the extracted directory python3 zero-failures-binomial-lab.py > rerun.json Recorded environment macOS 27.0.1, arm64, CPython 3.12.14; Python standard library only. No package installation, network access, temporary database, or service needed. The environment block may differ on another machine. Numerical results should agree within floating-point tolerance; byte-identical JSON is not required. What this computes Failures are counted as 1. n is fixed in advance. Binomial bounds assume independent Bernoulli trials with the same failure probability p. alpha=0.05 means a one-sided 95% upper confidence bound, unless labelled as the upper endpoint of the equal-tailed two-sided 95% interval (alpha/2). For zero failures: upper = 1 - alpha**(1/n), evaluated using expm1/log. For x