Validation report
Engine validation report
The whole validation run: every package against certified data, published references and independent software, and the curve fitting engine against simulations with known answers.
- checks, every one passing
- 10,367
- validation cases
- 468
- independent reference sources
- 98
- NIST certified problems reproduced
- 64
Checked against
70Published references
Papers, textbooks and R's documented output.
23Independent software
R packages, SciPy and statsmodels.
5Closed forms
Values known exactly.
5Certified data
NIST StRD problems with certified values.
1Simulation
Seeded designs with known truth.
The full report
Open any section. Your browser's find opens the one that matches.
Every suite, against known answers
One runner executes every package's test suite and every validation case, and writes the run's summary, the source for the copy and the website's validation figures:
- Each case compares our numbers with reference values from one or more cited sources and reports the digits of agreement. Fixtures carry their source URL, citation and licence.
- The statistics package's original reference suite is included in the counts through an adapter, so every check is counted once.
- The framework is identical in the three packages; the runner refuses to run if the copies differ.
- References are public and citable only: certified data sets (NIST), published papers and textbooks, and the documented output of open reference software (R and its packages, SciPy, statsmodels). No GraphPad software, file or output was used.
- The runner also writes, from the same run: the block below; the table of the statistics package's validation cases in the statistics report; and the committed values of the run-bound figures in the site's figures. The website reads its validation figures and tables from the summary at build time (its
figuresblock holds the display strings, such aschecks: passed of total), so the site, this report and the statistics report always quote the same run.
Python 3.12.14, NumPy 2.5.4, SciPy 1.18.1, statsmodels 0.15.0. Machine-readable: the run's summary. Slow (full-size) simulations not included in this run.
Headline figures
- 10,367 of 10,367 numerical and behaviour checks pass. The suite cites 98 external reference sources (certified data sets, published papers and textbooks, documented output of R and other reference software); behaviour checks have separate expected outcomes.
- All 64 NIST StRD certified problems reproduced: 27 nonlinear (from both NIST starts), 11 linear (statistics package and curve fitter), 11 ANOVA, 9 univariate and 6 MCMC target distributions.
- NIST nonlinear regression: every certified parameter and standard error matched to at least 6.5 significant digits from both starting points (NIST's pass mark is 4).
Digits of agreement = −log10(|ours − reference| / |reference|), capped at 15 (11 for NIST nonlinear certificates). Printed references (R output, papers) can only agree to the digits they print, so their minimum digits are low by construction; their pass rule is half a unit of the last printed digit.
| area | cases | checks | passed | sources | min digits | median digits |
|---|---|---|---|---|---|---|
| NIST StRD | 102 | 1919 | 1919 | 5 | 3.4 | 11.0 |
| Curve fitting | 88 | 1724 | 1724 | 22 | 1.2 | 8.0 |
| Statistics | 175 | 3974 | 3974 | 71 | 0.3 | 14.3 |
| Integrations | 51 | 2338 | 2338 | 14 | 1.1 | 15.0 |
| Properties and simulation | 34 | 206 | 206 | 6 | 8.8 | 15.0 |
| Robustness | 18 | 206 | 206 | 4 | – | – |
| total | 468 | 10367 | 10367 | 104 |
By package
| package | cases | checks | passed |
|---|---|---|---|
| engine | 195 | 3791 | 3791 |
| statistics package | 235 | 4514 | 4514 |
| integrations | 38 | 2062 | 2062 |
By topic
| area | topic | package | cases | checks | passed | min digits |
|---|---|---|---|---|---|---|
| NIST StRD | Linear regression (engine v2 curve fitter) | engine | 11 | 220 | 220 | 6.9 |
| NIST StRD | Linear regression (stats package) | stats | 11 | 132 | 132 | 6.9 |
| NIST StRD | Nonlinear regression (engine library equations) | engine | 7 | 153 | 153 | 7.2 |
| NIST StRD | Nonlinear regression (engine v2) | engine | 27 | 1071 | 1071 | 3.4 |
| NIST StRD | Normal posterior (MCMC certificates) | engine | 6 | 60 | 60 | 13.8 |
| NIST StRD | One-way ANOVA (HTTP API) | engine | 11 | 110 | 110 | 3.9 |
| NIST StRD | One-way ANOVA (stats package) | stats | 11 | 110 | 110 | 3.9 |
| NIST StRD | Univariate summary statistics (HTTP API) | engine | 9 | 36 | 36 | 8.3 |
| NIST StRD | Univariate summary statistics (stats package) | stats | 9 | 27 | 27 | 8.3 |
| Curve fitting | Calculator pages (v1 /api/fit) | engine | 11 | 470 | 470 | 2.0 |
| Curve fitting | Dose-response (drc) | engine | 3 | 70 | 70 | 3.8 |
| Curve fitting | Drug-combination synergy | engine | 16 | 189 | 189 | 1.2 |
| Curve fitting | Entered means (mean, SD, N) | engine | 7 | 107 | 107 | 7.3 |
| Curve fitting | Five-parameter logistic | engine | 5 | 62 | 62 | 5.2 |
| Curve fitting | Global and shared-parameter fits | engine | 7 | 279 | 279 | 2.3 |
| Curve fitting | Growth curves (Zwietering) | engine | 3 | 25 | 25 | 7.4 |
| Curve fitting | Independent reference audit | engine | 1 | 51 | 51 | 7.7 |
| Curve fitting | Model comparison | engine | 1 | 25 | 25 | 3.7 |
| Curve fitting | Nonlinearity (Hougaard's skewness, Box's bias) | engine | 2 | 58 | 58 | 1.5 |
| Curve fitting | Poisson and robust fitting | engine | 4 | 36 | 36 | 3.4 |
| Curve fitting | Profile-likelihood intervals | engine | 1 | 13 | 13 | 3.0 |
| Curve fitting | R reference fits (nls) | engine | 16 | 218 | 218 | 2.5 |
| Curve fitting | Standard-curve interpolation | engine | 8 | 88 | 88 | 3.8 |
| Curve fitting | Weighted fits | engine | 3 | 33 | 33 | 1.9 |
| Statistics | Area under curve | stats | 2 | 8 | 8 | 3.6 |
| Statistics | Assay quality | stats | 2 | 50 | 50 | 12.9 |
| Statistics | Bland–Altman | stats | 2 | 8 | 8 | 2.1 |
| Statistics | Clustering | stats | 3 | 316 | 316 | 6.8 |
| Statistics | Contingency tables | stats | 13 | 167 | 167 | 2.1 |
| Statistics | Correlation | stats | 5 | 43 | 43 | 3.6 |
| Statistics | Data transforms (normalise, baseline, linearising plots) | engine | 4 | 96 | 96 | 15.0 |
| Statistics | Descriptive statistics | stats | 4 | 24 | 24 | 4.1 |
| Statistics | Effect sizes | stats | 3 | 43 | 43 | 0.8 |
| Statistics | Equivalence tests | stats | 3 | 62 | 62 | 1.3 |
| Statistics | Frequency distributions | stats | 2 | 44 | 44 | 15.0 |
| Statistics | Independent reference audit | stats | 1 | 397 | 397 | 6.8 |
| Statistics | Linear regression | stats | 7 | 572 | 572 | 0.3 |
| Statistics | Logistic regression | stats | 4 | 21 | 21 | 3.5 |
| Statistics | Method comparison | stats | 6 | 86 | 86 | 2.8 |
| Statistics | Method validation | stats | 6 | 168 | 168 | 3.4 |
| Statistics | Mixed-effects model | stats | 5 | 39 | 39 | 3.1 |
| Statistics | Mixed-effects models | stats | 1 | 65 | 65 | 10.1 |
| Statistics | Multiple comparisons | stats | 14 | 225 | 225 | 0.7 |
| Statistics | Multiple t tests | stats | 3 | 21 | 21 | 1.3 |
| Statistics | Nested designs | stats | 2 | 31 | 31 | 9.7 |
| Statistics | Nonparametric tests | stats | 4 | 20 | 20 | 4.2 |
| Statistics | Normality | stats | 5 | 53 | 53 | 1.1 |
| Statistics | One-way ANOVA | stats | 3 | 35 | 35 | 2.9 |
| Statistics | Other | stats | 1 | 8 | 8 | 15.0 |
| Statistics | Outliers | stats | 2 | 11 | 11 | 1.6 |
| Statistics | P values from test statistics | stats | 3 | 50 | 50 | 4.1 |
| Statistics | PCA | stats | 4 | 81 | 81 | 2.1 |
| Statistics | Parts of whole | stats | 1 | 17 | 17 | 15.0 |
| Statistics | Poisson regression | stats | 2 | 10 | 10 | 3.8 |
| Statistics | Power and sample size | stats | 6 | 64 | 64 | 1.7 |
| Statistics | ROC curves | stats | 4 | 28 | 28 | 1.8 |
| Statistics | Regression diagnostics | stats | 1 | 6 | 6 | 3.6 |
| Statistics | Repeated-measures ANOVA | stats | 10 | 133 | 133 | 2.5 |
| Statistics | Summary-data tests | stats | 2 | 55 | 55 | 4.4 |
| Statistics | Survival | stats | 14 | 548 | 548 | 2.6 |
| Statistics | Two-way ANOVA | stats | 8 | 260 | 260 | 2.8 |
| Statistics | What next (POST /api/next) | engine | 10 | 85 | 85 | 5.6 |
| Statistics | t tests | stats | 3 | 24 | 24 | 4.0 |
| Integrations | Cell counters and seeding | integrations-py | 3 | 76 | 76 | 15.0 |
| Integrations | Chromatography: peaks and calibration | integrations-py | 5 | 269 | 269 | 2.7 |
| Integrations | Flow cytometry (FCS) | integrations-py | 6 | 665 | 665 | 6.6 |
| Integrations | Gel and blot densitometry | integrations-py | 5 | 169 | 169 | – |
| Integrations | Growth curves (OD600) | integrations-py | 2 | 154 | 154 | 15.0 |
| Integrations | Image decoding (PNG, TIFF) for densitometry | integrations-py | 2 | 62 | 62 | 15.0 |
| Integrations | Instrument exports through ASM (allotropy) | integrations-py | 6 | 122 | 122 | 15.0 |
| Integrations | Liquid-handler worklists (Tecan, Hamilton, Biomek, Echo, generic CSV) | integrations-py | 3 | 476 | 476 | 3.0 |
| Integrations | Plate-reader standard curves (engine /api/v2/interpolate) | engine | 4 | 75 | 75 | 3.5 |
| Integrations | qPCR (ΔΔCt) | stats | 8 | 132 | 132 | 1.1 |
| Integrations | qPCR (ΔΔCt), independent reference implementation | integrations-py | 5 | 65 | 65 | 1.1 |
| Integrations | qPCR standard curves and efficiency | stats | 2 | 73 | 73 | 2.7 |
| Properties and simulation | CI coverage | engine, stats | 11 | 61 | 61 | – |
| Properties and simulation | Coverage and error rates (stats reference suite) | stats | 5 | 14 | 14 | – |
| Properties and simulation | Drug-combination synergy | engine | 2 | 8 | 8 | 10.7 |
| Properties and simulation | Family-wise error | stats | 1 | 4 | 4 | – |
| Properties and simulation | Invariance | engine, stats | 6 | 68 | 68 | 8.8 |
| Properties and simulation | Nonlinearity (Hougaard's skewness, Box's bias) | engine | 1 | 3 | 3 | – |
| Properties and simulation | Power | stats | 2 | 14 | 14 | 13.5 |
| Properties and simulation | Type I error | engine, stats | 4 | 15 | 15 | – |
| Properties and simulation | What next (POST /api/next) | engine | 2 | 19 | 19 | 15.0 |
| Robustness | Constant data | stats | 1 | 27 | 27 | – |
| Robustness | Degenerate fits | engine | 1 | 10 | 10 | – |
| Robustness | Extreme scales | engine, stats | 2 | 49 | 49 | – |
| Robustness | Growth curves (OD600) | integrations-py | 1 | 4 | 4 | – |
| Robustness | Input validation | stats | 1 | 17 | 17 | – |
| Robustness | Invalid requests | engine | 1 | 12 | 12 | – |
| Robustness | Large n | engine, stats | 2 | 14 | 14 | – |
| Robustness | Large tables | stats | 1 | 6 | 6 | – |
| Robustness | Missing values | stats | 1 | 17 | 17 | – |
| Robustness | Non-finite input | engine | 1 | 6 | 6 | – |
| Robustness | Separation | stats | 1 | 7 | 7 | – |
| Robustness | Singular designs | stats | 1 | 5 | 5 | – |
| Robustness | Statistics API sweep | engine | 1 | 2 | 2 | – |
| Robustness | Ties | stats | 1 | 9 | 9 | – |
| Robustness | Too few observations | stats | 1 | 14 | 14 | – |
| Robustness | Zero cells | stats | 1 | 7 | 7 | – |
NIST StRD, digits of agreement per problem
Nonlinear regression (engine v2, user-defined equations; certified to 11 digits). Decimal data in process; the HTTP column sends the data as binary64 JSON numbers (the web app's path).
| problem | difficulty | start 1: parameters / SDs / residual SD / RSS | start 2 | HTTP binary64, starts 1 / 2: parameters |
|---|---|---|---|---|
| Misra1a | lower | 11.0 / 10.8 / 10.6 / 10.5 | 11.0 / 10.8 / 10.6 / 10.5 | 11.0 / 11.0 |
| Chwirut2 | lower | 8.9 / 9.3 / 10.9 / 11.0 | 8.6 / 9.0 / 10.9 / 11.0 | 8.9 / 8.6 |
| Chwirut1 | lower | 9.7 / 10.0 / 10.9 / 11.0 | 10.0 / 10.3 / 10.9 / 11.0 | 9.7 / 10.0 |
| Lanczos3 | lower | 10.5 / 11.0 / 11.0 / 10.6 | 10.6 / 10.7 / 11.0 / 10.6 | 10.5 / 10.6 |
| Gauss1 | lower | 10.6 / 10.6 / 11.0 / 11.0 | 10.6 / 10.6 / 11.0 / 11.0 | 10.6 / 10.6 |
| Gauss2 | lower | 10.0 / 9.9 / 10.7 / 10.6 | 9.9 / 9.9 / 10.7 / 10.6 | 10.0 / 9.9 |
| DanWood | lower | 11.0 / 11.0 / 11.0 / 11.0 | 8.7 / 8.8 / 11.0 / 11.0 | 11.0 / 8.7 |
| Misra1b | lower | 9.5 / 9.3 / 11.0 / 11.0 | 11.0 / 10.8 / 11.0 / 11.0 | 9.5 / 11.0 |
| Kirby2 | average | 8.5 / 8.9 / 10.8 / 11.0 | 10.0 / 10.4 / 10.8 / 11.0 | 8.5 / 10.0 |
| Hahn1 | average | 7.5 / 8.3 / 11.0 / 10.6 | 10.4 / 10.4 / 11.0 / 10.6 | 7.5 / 10.4 |
| Nelson | average | 8.0 / 8.0 / 11.0 / 10.9 | 8.3 / 8.4 / 11.0 / 10.9 | 8.0 / 8.3 |
| MGH17 | average | 8.3 / 7.8 / 11.0 / 11.0 | 10.9 / 10.6 / 11.0 / 11.0 | 8.3 / 10.9 |
| Lanczos1 | average | 10.6 / 10.6 / 11.0 / 10.8 | 10.6 / 10.6 / 11.0 / 10.8 | 10.6 / 10.6 |
| Lanczos2 | average | 10.4 / 10.8 / 10.7 / 11.0 | 10.4 / 10.8 / 10.7 / 11.0 | 10.4 / 10.4 |
| Gauss3 | average | 9.2 / 8.6 / 10.8 / 11.0 | 9.5 / 9.3 / 10.8 / 11.0 | 9.2 / 9.5 |
| Misra1c | average | 10.6 / 10.6 / 11.0 / 11.0 | 10.8 / 10.6 / 11.0 / 11.0 | 10.6 / 10.8 |
| Misra1d | average | 9.4 / 9.2 / 11.0 / 11.0 | 11.0 / 11.0 / 11.0 / 11.0 | 9.4 / 11.0 |
| Roszman1 | average | 7.2 / 7.8 / 11.0 / 11.0 | 7.1 / 7.6 / 11.0 / 11.0 | 7.2 / 7.1 |
| ENSO | average | 6.8 / 8.0 / 11.0 / 11.0 | 6.5 / 7.7 / 11.0 / 11.0 | 6.8 / 6.5 |
| MGH09 | higher | 7.6 / 7.7 / 11.0 / 11.0 | 7.2 / 7.3 / 11.0 / 11.0 | 7.6 / 7.2 |
| Thurber | higher | 8.5 / 7.8 / 10.6 / 11.0 | 8.0 / 7.4 / 10.6 / 11.0 | 8.5 / 8.0 |
| BoxBOD | higher | 8.0 / 7.9 / 11.0 / 10.4 | 9.2 / 9.1 / 11.0 / 10.4 | 8.0 / 9.2 |
| Rat42 | higher | 11.0 / 10.5 / 10.4 / 11.0 | 9.5 / 9.2 / 10.4 / 11.0 | 11.0 / 9.5 |
| MGH10 | higher | 8.7 / 8.7 / 11.0 / 11.0 | 10.9 / 11.0 / 11.0 / 11.0 | 8.7 / 10.9 |
| Eckerle4 | higher | 9.7 / 9.7 / 11.0 / 10.7 | 10.6 / 10.4 / 11.0 / 10.7 | 9.7 / 10.6 |
| Rat43 | higher | 8.0 / 8.0 / 11.0 / 11.0 | 8.4 / 8.4 / 11.0 / 11.0 | 8.0 / 8.4 |
| Bennett5 | higher | 11.0 / 10.4 / 10.6 / 11.0 | 11.0 / 10.4 / 10.6 / 11.0 | 11.0 / 11.0 |
Linear regression (certified to 15 digits): the statistics package (pivoted QR) and the engine's v2 curve fitter.
| problem | difficulty | stats: parameters / SDs / residual SD | engine: parameters / SDs / residual SD |
|---|---|---|---|
| Norris | lower | 12.5 / 14.0 / 14.1 | 13.6 / 13.9 / 14.0 |
| Pontius | lower | 13.2 / 13.1 / 13.1 | 13.0 / 13.6 / 13.6 |
| NoInt1 | average | 14.7 / 15.0 / 15.0 | 14.7 / 15.0 / 15.0 |
| NoInt2 | average | 15.0 / 15.0 / 15.0 | 15.0 / 15.0 / 15.0 |
| Filip | higher | 7.2 / 7.4 / 8.6 | 7.2 / 7.5 / 8.5 |
| Longley | higher | 10.9 / 12.2 / 12.2 | 11.0 / 12.0 / 12.1 |
| Wampler1 | higher | 9.8 / 9.7 / 9.7 | 15.0 / 15.0 / 15.0 |
| Wampler2 | higher | 13.3 / 14.6 / 14.6 | 13.2 / 15.0 / 15.0 |
| Wampler3 | higher | 9.6 / 13.7 / 14.5 | 10.7 / 13.7 / 14.2 |
| Wampler4 | higher | 8.9 / 13.7 / 14.8 | 8.9 / 13.6 / 14.8 |
| Wampler5 | higher | 6.9 / 13.7 / 14.8 | 6.9 / 13.6 / 14.8 |
ANOVA and univariate statistics (certified to 15 digits): minimum over every certified quantity, through the statistics package directly and through the engine's HTTP API.
| problem | difficulty | stats package | HTTP API |
|---|---|---|---|
| SiRstv | lower | 13.1 | 13.1 |
| SmLs01 | lower | 15.0 | 15.0 |
| SmLs02 | lower | 15.0 | 15.0 |
| SmLs03 | lower | 15.0 | 15.0 |
| AtmWtAg | average | 10.2 | 10.2 |
| SmLs04 | average | 10.1 | 10.1 |
| SmLs05 | average | 9.9 | 9.9 |
| SmLs06 | average | 9.9 | 9.9 |
| SmLs07 | higher | 4.0 | 4.0 |
| SmLs08 | higher | 3.9 | 3.9 |
| SmLs09 | higher | 3.9 | 3.9 |
| PiDigits | lower | 15.0 | 15.0 |
| Lottery | lower | 15.0 | 15.0 |
| Lew | lower | 15.0 | 15.0 |
| Mavro | lower | 13.1 | 13.1 |
| Michelso | lower | 13.8 | 13.8 |
| NumAcc1 | lower | 15.0 | 15.0 |
| NumAcc2 | average | 15.0 | 15.0 |
| NumAcc3 | average | 9.5 | 9.5 |
| NumAcc4 | higher | 8.3 | 8.3 |
Normal-model posterior target distributions (the six MCMC certificates): all ten targets through HTTP; absolute tolerance 6e-15 after centering location values. Analytic targets, not a sampler test.
| problem | minimum digits | passed |
|---|---|---|
| mcmc01 | 13.8 | True |
| mcmc02 | 13.8 | True |
| mcmc03 | 13.8 | True |
| mcmc04 | 13.8 | True |
| mcmc05 | 13.8 | True |
| mcmc06 | 13.8 | True |
Simulations with a known answer
Small pure functions with known truth, ported from the research laboratories' formulas (not imported):
| laboratory | truth | design | noise |
|---|---|---|---|
| enzyme kinetics | v = Vmax·S/(Km+S); Vmax ~ U(0.5, 5) mM/s, Km ~ U(0.3, 5) mM | S = 0.1, 0.2, 0.5, 1, 2, 5, 10, 20 mM | 0, 0.05%, 0.1% (2% as a stress test) |
| thermal response | ΔT = A(1−e^(−t/τ)); A ~ U(5, 40) K, τ ~ U(10, 60) s | t = 2, 5, 10, 20, 40, 80, 160, 300 s | 0, 0.05%, 0.1% (2% as a stress test) |
| drug clearance | first order C0·e^(−kt), k ~ U(0.08, 0.15), or zero order C0 − k0·t, k0 = C0·U(0.03, 0.06); C0 ~ U(5, 50) | supplied t = 0.1, 0.25, 0.5 h; safe range 0.1–8 h; query 14 h | 0.5%, 1%, 2% |
| light attenuation | exponential I0·e^(−μd), μ ~ U(0.06, 0.15), or inverse square I0/(1+d/d0)², d0 ~ U(13, 33); I0 ~ U(20, 200) | supplied d = 0.2, 0.4, 0.8 cm; safe range 0.2–10 cm; query 25 cm | 0.5%, 1%, 2% |
Noise is multiplicative and log-normal (y = f·e^(σz)), as in the research laboratories, and every fit uses
weighting: "relative". Mechanism episodes alternate the true mechanism (balanced), and the supplied points sit where
the two mechanisms agree (matched initial slope), so they cannot separate them.
Parameter recovery
Requirement: within 5% on low-noise data. 500 seeded data sets per cell, fitted through run_fit.
| laboratory | noise | max relative error over 500 data sets | all converged |
|---|---|---|---|
| enzyme | 0% | Vmax 4.4e-16, Km 6.7e-16 | yes |
| enzyme | 0.05% | Vmax 0.15%, Km 0.22% | yes |
| enzyme | 0.1% | Vmax 0.25%, Km 0.38% | yes |
| thermal | 0% | A 6.7e-16, τ 1.2e-15 | yes |
| thermal | 0.05% | A 0.12%, τ 0.22% | yes |
| thermal | 0.1% | A 0.19%, τ 0.34% | yes |
The worst case is 0.38%, far inside 5%. Separately, every model in the catalogue (all 15) recovers its parameters from noise-free data to 0.1%.
Confidence interval coverage
Requirement: 90–98% over 500 seeded data sets. Profile-likelihood CIs (all 3000 fits used the profile; none fell back to the bootstrap). With 500 data sets the binomial standard error of a coverage near 95% is about 1 point.
| laboratory | noise | coverage |
|---|---|---|
| enzyme | 0.05% | Vmax 95.6%, Km 95.0% |
| enzyme | 0.1% | Vmax 92.4%, Km 95.2% |
| enzyme | 2% | Vmax 94.6%, Km 93.0% |
| thermal | 0.05% | A 95.2%, τ 95.4% |
| thermal | 0.1% | A 96.2%, τ 96.0% |
| thermal | 2% | A 96.2%, τ 94.8% |
All cells are inside 90–98% (range 92.4–96.2%).
Telling mechanisms apart
Protocol, the same for every episode:
- fit the three supplied points with the two candidate models (
exp_decayvszero_order, orexp_decayvsinverse_square),x_bounds= the safe range, targety_at_xat the query; - measure at the engine's
next_measurement.x, refit, measure at the newnext_measurement.x(the budget of two); - refit with five points; the decision is
preferredand the prediction isprediction.yat the query.
Success = right mechanism and prediction within 5% of the true response at the query (the research rule). 100 episodes per family and noise level (600 in total).
| family | noise | right mechanism | success | status decided | right when decided | query CI covers truth¹ | median design (x1, x2) |
|---|---|---|---|---|---|---|---|
| drug clearance | 0.5% | 98% | 98% | 90% | 100% | 96.9% | 8, 4.25 h |
| drug clearance | 1% | 93% | 87% | 79% | 96.2% | 96.8% | 8, 4.27 h |
| drug clearance | 2% | 79% | 60% | 61% | 93.4% | 92.4% | 8, 4.27 h |
| light attenuation | 0.5% | 98% | 98% | 97% | 99.0% | 99.0% | 10, 4.48 cm |
| light attenuation | 1% | 92% | 90% | 87% | 97.7% | 95.7% | 10, 4.48 cm |
| light attenuation | 2% | 80% | 62% | 63% | 88.9% | 93.8% | 10, 4.48 cm |
¹ Among episodes with the right mechanism: the 95% bootstrap CI of the prediction at the query (400 replicates) contains the true response.
By noise level (both families, 200 episodes each):
| noise | right mechanism | success (right mechanism and prediction within 5%) |
|---|---|---|
| 0.5% | 98.0% | 98.0% |
| 1% | 92.5% | 88.5% |
| 2% | 79.5% | 61.0% |
Requirement: at least 85% correct mechanism at 1% noise. Measured: 92.5% (185 of 200).
Against the scripted oracle and a non-discriminating design (same episodes, same noise draws; the oracle measures at the top and the middle of the safe range, fits both mechanisms by least squares on log responses and picks the lower RSS; the control measures at 2× and 3× the last supplied point):
| family | noise | right mechanism: engine / oracle / control | success: engine / oracle / control |
|---|---|---|---|
| drug clearance | 0.5% | 98 / 98 / 65% | 98 / 98 / 24% |
| drug clearance | 1% | 93 / 92 / 65% | 87 / 88 / 20% |
| drug clearance | 2% | 79 / 79 / 64% | 60 / 57 / 6% |
| light attenuation | 0.5% | 98 / 98 / 57% | 98 / 98 / 43% |
| light attenuation | 1% | 92 / 92 / 50% | 90 / 90 / 23% |
| light attenuation | 2% | 80 / 80 / 56% | 62 / 62 / 12% |
The engine chooses its own measurements (first the far end of the range, then about the middle) and matches the oracle's hand-picked design: overall success 82.5% (engine, 495 of 600) vs 82.2% (oracle, 493 of 600). The research reported 117/144 (81%) for its oracle on development instances. Measuring next to the supplied points leaves the mechanism near chance (50–65%), which confirms that the task tests the choice of measurement.
What the numbers say about honesty:
- When the engine reports
decided, it is right 96–100% of the time at 0.5–1% noise, and 89–93% at 2% noise. With five points the 0.9 Akaike-weight threshold is not a guarantee; the remaining errors are high-noise cases where the wrong curve happens to fit the five points better. - At 2% noise, success is limited by the 5% prediction rule at a query 1.75–2.5× beyond the measurable range, for the oracle as much as for the engine. The prediction CI still covers the truth in 92–94% of those episodes, so the reported uncertainty is honest even when the point prediction misses the 5% band.
Checks that catch a bad fit
| check | constructed case | result |
|---|---|---|
min_points | 3 points, Michaelis–Menten vs substrate inhibition | fails (needs 6) |
confirmation | target y at x = 6 with no point near 6; then a point at 6.1 added | fails, then passes |
residual_pattern | a straight line fitted to 12 exponential-decay points | fails (runs test) |
extrapolation | target at x = 500 with data up to 32 | fails; target at 3 passes |
identifiability | Michaelis–Menten with all substrate far below Km | fails |
data_sanity | negative x with the 4-parameter logistic (error); a duplicated row (warn); a zero response with relative weighting (warn) | fails in each case |
On clean Michaelis–Menten data every check except confirmation passes (test_good_data_passes_everything_but_confirmation).
Other checks
- Design: from three agreeing clearance points the engine proposes a discriminating point
beyond 4 h, never within 5% of an existing point;
decidedwith a target proposes the confirmation measurement at the target x; once confirmed, or when the target is outside the range, it switches tonarrow_target. - Determinism: identical requests give byte-identical responses.
- Explanation guardrail: verified text is returned;
text with an invented number (50 mM, 1.987) is replaced by the template with
verified: false; refusals and API errors fall back to the template; the template explanation verifies. - Calculator pages: the statuses, preferred models and CIs quoted on the ten calculator pages are pinned, so an engine change that would contradict the page text fails the suite.
- API contract, statistics and parsing.
Part A totals: 102 tests in the default run, 5 more under -m slow; all pass with engine 0.2.0.
NIST nonlinear regression
The National Institute of Standards and Technology publishes 27 nonlinear least-squares problems with certified parameters, parameter standard deviations, residual sum of squares and residual SD, computed in 128-bit precision. They span three levels of difficulty, and each comes with two official starting points: Start 1 far from the solution, Start 2 closer.
How they were run.
- Every problem goes through the public v2 pipeline as a user-defined equation, typed in the engine's equation language (e.g.
- Each problem is fitted from NIST's Start 1 and from its Start 2, with no constraints, equal weights and Wald standard errors. Nelson is fitted to ln(y) with the data column
x2, as NIST specifies. - The data are sent as the decimal strings NIST prints. The engine fits in binary64 and uses the decimal text only for its extended-precision refinement (see ‡).
Accuracy measure. The log relative error is LRE = −log10(|value − certified| / |certified|), about the number of matching significant digits, capped at 11 (NIST certifies 11 digits). The requirement (F-16) is LRE ≥ 4 for every parameter, every parameter SD and the residual SD, and LRE ≥ 6 for the residual sum of squares, from both starts.
Result: met on all 27 problems from both starts. Each cell gives the minimum LRE over the parameters, the minimum over the parameter SDs, the residual SD, and the residual sum of squares.
| problem | difficulty | n | p | start 1: parameters / SDs / residual SD / RSS | start 2 |
|---|---|---|---|---|---|
| Misra1a | lower | 14 | 2 | 9.8 / 9.5 / 10.6 / 10.5 | 10.1 / 9.8 / 10.6 / 10.5 |
| Chwirut2 | lower | 54 | 3 | 7.5 / 7.9 / 10.9 / 11.0 | 8.6 / 9.0 / 10.9 / 11.0 |
| Chwirut1 | lower | 214 | 3 | 8.5 / 8.8 / 10.9 / 11.0 | 8.5 / 8.9 / 10.9 / 11.0 |
| Lanczos3 | lower | 24 | 6 | 6.8 / 6.8 / 11.0 / 10.6 | 7.9 / 7.9 / 11.0 / 10.6 |
| Gauss1 | lower | 250 | 8 | 10.6 / 10.6 / 11.0 / 11.0 | 8.6 / 8.4 / 11.0 / 11.0 |
| Gauss2 | lower | 250 | 8 | 10.0 / 9.9 / 10.7 / 10.6 | 9.9 / 9.9 / 10.7 / 10.6 |
| DanWood | lower | 6 | 2 | 11.0 / 11.0 / 11.0 / 11.0 | 11.0 / 11.0 / 11.0 / 11.0 |
| Misra1b | lower | 14 | 2 | 10.9 / 10.9 / 11.0 / 11.0 | 9.5 / 9.3 / 11.0 / 11.0 |
| Kirby2 | average | 151 | 5 | 8.5 / 8.9 / 10.8 / 11.0 | 8.0 / 8.3 / 10.8 / 11.0 |
| Hahn1 | average | 236 | 7 | 10.8 / 10.5 / 11.0 / 10.6 | 8.4 / 9.1 / 11.0 / 10.6 |
| Nelson | average | 128 | 3 | 9.6 / 9.6 / 11.0 / 10.9 | 8.3 / 8.4 / 11.0 / 10.9 |
| MGH17 | average | 33 | 5 | 8.1 / 7.7 / 11.0 / 11.0 | 8.1 / 7.7 / 11.0 / 11.0 |
| Lanczos1 | average | 24 | 6 | 10.6 / 10.6 / 11.0 / 10.8 (binary64: 10.6 / 3.4 / 3.4) ‡ | 10.6 / 10.6 / 11.0 / 10.8 (binary64: 10.6 / 3.4 / 3.4) ‡ |
| Lanczos2 | average | 24 | 6 | 8.4 / 8.4 / 10.5 / 10.0 | 10.4 / 10.4 / 11.0 / 10.2 |
| Gauss3 | average | 250 | 8 | 9.2 / 8.6 / 10.8 / 11.0 | 9.6 / 9.3 / 10.8 / 11.0 |
| Misra1c | average | 14 | 2 | 8.4 / 8.2 / 11.0 / 11.0 | 10.8 / 10.6 / 11.0 / 11.0 |
| Misra1d | average | 14 | 2 | 11.0 / 10.8 / 11.0 / 11.0 | 11.0 / 11.0 / 11.0 / 11.0 |
| Roszman1 | average | 25 | 4 | 8.8 / 9.3 / 11.0 / 11.0 | 8.6 / 9.1 / 11.0 / 11.0 |
| ENSO | average | 168 | 9 | 6.8 / 8.0 / 11.0 / 11.0 | 6.5 / 7.7 / 11.0 / 11.0 |
| MGH09 | higher | 11 | 4 | 7.3 / 7.4 / 11.0 / 11.0 | 8.3 / 8.4 / 11.0 / 11.0 |
| Thurber | higher | 37 | 7 | 7.7 / 7.0 / 10.6 / 11.0 | 7.5 / 6.8 / 10.6 / 11.0 |
| BoxBOD | higher | 6 | 2 | 9.3 / 9.3 / 11.0 / 10.4 | 9.2 / 9.1 / 11.0 / 10.4 |
| Rat42 | higher | 9 | 3 | 11.0 / 10.5 / 10.4 / 11.0 | 9.6 / 9.2 / 10.4 / 11.0 |
| MGH10 | higher | 16 | 3 | 8.6 / 8.7 / 11.0 / 11.0 | 9.0 / 9.1 / 11.0 / 11.0 |
| Eckerle4 | higher | 35 | 3 | 9.7 / 9.7 / 11.0 / 10.7 | 9.6 / 9.6 / 11.0 / 10.7 |
| Rat43 | higher | 15 | 4 | 8.8 / 8.8 / 11.0 / 11.0 | 8.4 / 8.4 / 11.0 / 11.0 |
| Bennett5 | higher | 154 | 3 | 10.4 / 10.2 / 10.6 / 11.0 | 10.5 / 10.3 / 10.6 / 11.0 |
Digits are rounded as in the run's summary: to 2 decimals, then half up to 1. Where the data reach the engine as binary64 numbers and lose agreement (Lanczos1 only), the binary64 parameters / SDs / residual SD follow in brackets (see ‡).
Summary. Over all 54 runs the minimum LRE is 6.50 for parameters (ENSO, Start 2), 6.75 for parameter SDs (Thurber, Start 2), 10.43 for the residual SD and 9.95 for the residual sum of squares.
- Every run converged on the solver's first path. No fallback was needed and no drift was detected; the most expensive run was Bennett5 from Start 1, at 808 model evaluations.
- All 108 fits (both starts, both data encodings) take about 1 s.
‡ Lanczos1 and the limits of binary64 data. Lanczos1 is generated data with residuals near 1e-13 against responses near 1.
- At that level, double-precision rounding in the model itself (a few units in the 16th digit) is no longer small next to the residuals. The engine detects this (residuals below 1e-10 of the response scale) and refines the fit with 40-digit arithmetic (
extended_precision: true). That gives the LRE above. - When the same data are sent as JSON numbers, they arrive as binary64 values that differ from NIST's 13-digit decimals by up to ~1e-16. For Lanczos1 that changes the true least-squares residual SD in its fourth digit.
- The engine then still gets the parameters to LRE 10.6, but the residual SD and the parameter SDs only to LRE 3.4.
- With 50-digit arithmetic, the exact least-squares solution for the binary64 data matches the certified residual SD only to LRE 3.5. The decimal data match it to 11.0.
- So the limit is the representation of the data, not the fitting. Every other problem gives the same table with binary64 data.
- The binary64 run holds Lanczos1 to parameter LRE ≥ 10 and RSS < 1e-20 (the parity study's F-16 rule for Lanczos1), and every other problem to the full requirement.
Rat43. NIST's Rat43 file prints "Degrees of Freedom: 9", but n − p = 15 − 4 = 11, and its certified residual SD, 28.262414662, is √(8786.404908/11). So the printed 9 is a typo in the file; the engine uses 11.
The per-problem digits are in the generated summary above. Over the 54 decimal runs the minimum is 6.50 digits for parameters and 6.75 for their SDs (the same as the table above). Over the HTTP runs the minimum for parameters is 6.50, and Lanczos1's residual SD is held to 3 digits on that path for the reason given in ‡.
NIST linear regression
The 11 certified linear problems (certified to 15 digits) through the v2 fitter (nist_lls_engine_*), with the data
as NIST's decimal text in process and as JSON numbers over HTTP: library equations where one exists (straight_line
for Norris, polynomial_2 for Pontius, line_through_origin for NoInt1/2, polynomial_5 for Wampler1–5) and typed
equations for Filip (degree 10) and Longley (six predictors sent as data columns x2–x6). The statistics package
validates its own regression (pivoted QR) on the same problems.
| problem | difficulty | parameters | SDs | residual SD | R² | parameters over HTTP (binary64) | stats package, parameters |
|---|---|---|---|---|---|---|---|
| Norris | lower | 13.6 | 13.9 | 14.0 | 15.0 | 13.6 | 12.3 |
| Pontius | lower | 12.8 | 12.8 | 12.8 | 15.0 | 12.8 | 12.5 |
| NoInt1 | average | 14.7 | 15.0 | 15.0 | 15.0¹ | 14.7 | 14.7 |
| NoInt2 | average | 15.0 | 15.0 | 15.0 | 15.0¹ | 15.0 | 15.0 |
| Filip | higher | 7.2 | 7.4 | 8.7 | 10.9 | 7.2 | 7.6 |
| Longley | higher | 11.7 | 12.5 | 13.8 | 15.0 | 11.7 | 10.8 |
| Wampler1 | higher | 15.0 | 15.0 | 15.0 | 15.0 | 15.0 | 9.4 |
| Wampler2 | higher | 15.0 | 15.0 | 15.0 | 15.0 | 13.2 | 12.8 |
| Wampler3 | higher | 10.2 | 13.6 | 14.1 | 15.0 | 10.2 | 9.5 |
| Wampler4 | higher | 8.8 | 13.5 | 14.8 | 15.0 | 8.8 | 8.8 |
| Wampler5 | higher | 6.8 | 13.5 | 14.8 | 13.7 | 6.8 | 6.8 |
Minimum digits of agreement, reported up to 15. Requirement F-07: ≥ 9 digits for lower and average difficulty (met: ≥ 12.8). For the higher-difficulty designs the floors are set at what double precision permits (Filip 6.5, Wampler4 8, Wampler5 6, the rest 9); many statistical packages fail Filip entirely.
¹ For fits through the origin NIST certifies the uncentred R² = 1 − RSS/Σy². The engine reports the centred R² (1 − RSS/Σ(y − ȳ)²) for every model, so for NoInt1/2 the certificate is checked through the reported RSS.
Bug found and fixed: linear models stopped short on ill-conditioned designs. Before this suite existed, Filip
through the fitter matched the certificate to only 5.2 digits (Wampler4 8.1, Wampler5 6.1, Longley 11.2), against 7.6
from the statistics package's QR on the same data. The iterative solver (MINPACK Levenberg–Marquardt) stops by its
step-size rule (xtol) before the last digits are settled on a design whose scaled condition number is near 1e8, and
computing the RSS in double precision cannot tell the difference at that level.
- Fix: when a model is linear in its parameters (its Jacobian is bit-identical at a perturbed point) and unconstrained, the engine takes the Gauss–Newton step solved by pivoted QR of the column-scaled Jacobian, plus one round of iterative refinement. For a linear model that step is the least-squares solution. It is accepted unless the RSS rises by more than 1e-7 relative (double-precision noise). Nonlinear models are untouched.
- Evidence: Filip 5.2 → 7.2 digits (parameters), Wampler4 8.1 → 8.8, Wampler5 6.1 → 6.8, Longley 11.2 → 11.7, Norris 12.4 → 13.6. Pontius moved from 13.3 to 12.8, both far above the requirement. The whole engine suite (783 tests) and the slow suite (16) pass unchanged, and so do the 27 nonlinear problems.
NIST problems through the equation library
Seven certified problems are library equations under a reparametrisation: Misra1a and BoxBOD (one-phase association with Y0 fixed at 0), DanWood (power law), Eckerle4 (Gaussian), Rat42 (logistic growth), MGH17 (two-phase decay with a plateau) and Lanczos3 (three-phase decay with the plateau fixed at 0). Each is fitted from NIST's Start 1 and Start 2, mapped through the reparametrisation, and from the engine's automatic initial values. The fitted parameters are mapped back to NIST's b's (phases matched by rate). SEs are compared where a library parameter is one of the b's, and the residual SD and RSS always.
| problem | library equation | start 1: parameters / SDs / RSS | start 2 | automatic initial values |
|---|---|---|---|---|
| Misra1a | one-phase association, Y0 = 0 | 10.3 / 10.0 / 10.5 | 11.0 / 10.8 / 10.5 | 11.0 / 10.8 / 10.5 |
| BoxBOD | one-phase association, Y0 = 0 | 8.3 / 8.3 / 10.4 | 9.2 / 9.2 / 10.4 | 8.4 / 8.3 / 10.4 |
| DanWood | power law | 11.0 / 11.0 / 11.0 | 9.1 / 9.2 / 11.0 | 11.0 / 11.0 / 11.0 |
| Eckerle4 | Gaussian | flagged, see below | 9.5 / 9.5 / 10.7 | 9.9 / 9.9 / 10.7 |
| Rat42 | logistic growth | 11.0 / 10.6 / 11.0 | 8.6 / 8.2 / 11.0 | 10.4 / 10.1 / 11.0 |
| MGH17 | two-phase decay | flagged, see below | 8.6 / 8.5 / 11.0 | 9.1 / 9.0 / 11.0 |
| Lanczos3 | three-phase decay, plateau 0 | 7.6 / 7.6 / 10.5 | 8.6 / 8.7 / 10.6 | 9.5 / 9.6 / 10.6 |
Finding: two far starts end at a flagged degenerate point. From NIST's Start 1, which is far from the solution, Eckerle4 in the Gaussian parametrisation and MGH17 in the two-phase-decay parametrisation stop at a degenerate stationary point:
- Eckerle4: the peak sits outside the data with a near-zero amplitude;
- MGH17: both rates are so fast that every exponential has decayed before the first X.
The engine does not present either as a fit. Both report status singular with status_message "The fit converged
to a point where the parameters are not uniquely determined (a singular fit), so these numbers must not be
reported. …", every parameter identified: false, and no standard errors. The same starts reach the certificate in
NIST's own parametrisation (section 6), and Start 2 and the automatic initial values reach it in the library one. The
suite therefore requires either the certified solution or such a flagged stop for every start, and it requires the
automatic initial values to reach the solution.
Changed: "converged" is no longer shown as a pass on these runs. The optimiser met its tolerance at a stationary
point, so the response keeps converged: true, but parity test F-15e asks that a wrong answer never be reported as
converged. Since engine 0.2.0 (21 Oct 2026):
- the
convergedcheck fails with severityerrorand says "The optimiser converged, but to a point where the parameters are not uniquely determined; do not report these values."; - every v2 fit carries
status_message, one sentence per status, so a client shows the status without its own wording; - the template explanation says the fit converged to a point where the parameters are not uniquely determined, and that its values should not be reported.
Published reference values
The data are subsets of R's built-in data sets: numerical facts from the cited studies, read from R's sources. The reference values are what R prints in its own examples, as listed in the parity study Each self-starting R model was typed as a user-defined equation in R's parametrisation, and also fitted with the matching library equation, whose parameters map onto R's.
| ID | data | model | R prints | engine |
|---|---|---|---|---|
| F-03a | Puromycin, treated | Michaelis–Menten | Vmax 212.7 (SE 6.947), Km 0.06412 (SE 0.008281), residual SE 10.93 on 10 df | 212.684 (6.9472), 0.0641213 (0.0082809), 10.9337 on 10 df |
| F-03b | Puromycin, untreated | Michaelis–Menten | 160.3 (6.480), 0.04771 (0.007782), residual SE 9.773 | 160.280 (6.4802), 0.0477082 (0.0077819), 9.77300 |
| F-01c | DNase run 1, X = ln(conc) | logistic (SSlogis) | Asym 2.3452 (SE 0.078154), xmid 1.4831, scal 1.0415 | 2.345179 (0.0781538), 1.483089, 1.041455; three_pl_log: LogEC50 0.644098, HillSlope 0.960195 = 1/1.041455 |
| F-05f | DNase run 1, X = ln(conc) | Gompertz (SSgompertz) | Asym 4.60333, b2 2.27134, b3 0.71647 | 4.60333, 2.271338, 0.716466 |
| F-05e | Indometh, subject 1 | biexponential (SSbiexp) | A1 2.0293, lrc1 0.5794, A2 0.1915, lrc2 −1.7878 | 2.029278, 0.57939, 0.191548, −1.787783; two_phase_decay (plateau 0): KFast 1.784949 = e^0.57939, KSlow 0.167331, Y0 2.220826 |
| F-05g | Loblolly, seed 329 | asymptotic (SSasymp) | Asym 94.1282, R0 −8.2508, lrc −3.2176 | 94.12821, −8.250753, −3.217578; exponential_plateau: YM 94.12821, Y0 −8.250753, K 0.040052 |
| F-01b | ChickWeight, chick 1 | four-parameter logistic (SSfpl) | A 27.453, B 348.971, xmid 19.391, scal 6.673 | boltzmann_sigmoid: 27.45321, 348.97116, 19.39053, 6.672621; four_pl_log: HillSlope 0.065086 = 1/(6.672621·ln 10) |
Every engine value is within half a unit of R's last printed digit.
More published reference fits
- Data come from R's
datasets, MASS, drc, nlstools and investr. The copies were checked against R's own source files. - Reference values are stored as the text the source printed. A script confirmed that all 523 printed strings appear verbatim in the fetched documents.
- Sources.
- Ritz & Streibig 2005, JSS 12(5) (drc);
- Ritz, Baty, Streibig & Gerhard 2015, PLOS ONE 10:e0146021, S1 File (drc, CC BY);
- Baty et al. 2015, JSS 66(5) (nlstools, CC BY);
- Greenwell & Schubert Kabban 2014, The R Journal 6(1) (investr, CC BY), and investr's tests.
How printed references are compared. The rule is half a unit of the last printed digit. Two allowances apply:
- R's
nlsstops at a relative offset of 1e-5, so its estimates may sit about 1e-5·√p standard errors from the exact minimum. Estimates also get 1e-4 SE of slack and SEs 1e-5 relative. Wherever R prints more digits, a check confirms that the engine's RSS is no larger than the RSS at R's values. - drc's optimiser stops short of the minimum by up to 0.012 SE, so drc estimates get 0.02 SE. In every such case the engine's RSS is lower than the RSS at drc's printed estimates; for example, S.alba gives 8.5113990 against 8.5114471.
R reference fits (nls, self-starting models).
| data | model | R prints | engine |
|---|---|---|---|
| Theoph subject 1 | SSfol | lKe −2.9196 (0.1709), lKa 0.5752 (0.1728), lCl −3.9159 (0.1273); RSE 0.732 on 8 df | −2.919613 (0.17089), 0.575159 (0.17282), −3.915856 (0.12727); 0.73195 |
| Theoph subject 4 | SSfol | −2.4365 (0.2257), 0.1583 (0.2297), −3.2861 (0.1448); 0.8465 | −2.436495 (0.22566), 0.158265 (0.22969), −3.286087 (0.1448); 0.84646 |
| ChickWeight chick 6 | SSweibull (+ library weibull_growth) | 158.501204, 110.997081, −5.993421, 2.646141; SEs 1.1769, 2.6330, 0.3733, 0.1613; 2.061 | 158.50119, 110.99706, −5.993425, 2.646143; SEs 1.1769, 2.633, 0.37329, 0.16129; 2.0605 |
| CO2 plant Qn1 | SSasympOff (+ one_phase_association) | 38.139782, −4.380647, 51.223238; SEs 0.9164, 0.2042, 11.6698; 1.663 | 38.13978, −4.380646, 51.22328; SEs 0.91639, 0.20415, 11.670; 1.6626 |
| CO2, all 12 plants | SSasymp | 36 coefficients, 3 digits | all 36 agree |
| BOD | SSasympOrig | 19.14258, −0.63282; SEs 2.496, 0.382; RSS 25.990 | 19.14258, −0.632821; SEs 2.4959, 0.38239; RSS 25.9903 |
| Chick 1, Loblolly 329, Indometh 1, DNase 1 | SSfpl, SSasymp, SSbiexp, SSgompertz, SSlogis | parameters, SEs and residual SE | all to R's printed digits, e.g. SSlogis SEs 0.078154, 0.081353, 0.032271 |
| Puromycin, treated and untreated | SSmicmen (+ michaelis_menten) | 212.7 (6.947), 0.06412 (0.008281), 10.93; 160.3 (6.480), 0.04771 (0.007782), 9.773 | 212.6837 (6.9472), 0.0641213 (0.0082809), 10.934; 160.280 (6.4802), 0.0477082 (0.0077819), 9.7730 |
MASS wtloss | b0 + b1·2^(−t/th) (+ one_phase_decay) | 81.37, 102.68, 141.91; RSS 39.24 | 81.3738, 102.684, 141.910; 39.2447 |
| Orange (35 rows) | logistic | 192.69 (20.244), 728.76 (107.299), 353.53 (81.472) | 192.688 (20.244), 728.756 (107.298), 353.534 (81.472) |
| nlstools O2K | change-point exponential | t intervals 333.54–379.98, 1587.16–1674.61, 1.03–1.34; correlations 0.0791, 0.1995, 0.7555 | 333.537–379.980, 1587.155–1674.611, 1.030–1.342; 0.0791, 0.1995, 0.7555 |
Weighted fits, profile-likelihood intervals (F-14b) and model comparison.
| data | test | reference | engine |
|---|---|---|---|
| DNase 1, weights 8…1 | SD weighting, and R's residual form | 2.3350 (0.0966), 1.4731 (0.0947), 1.0385 (0.0304); 0.0355 | 2.335008 (0.096635), 1.473077 (0.094681), 1.038506 (0.030444); 0.035546 |
| Puromycin treated | R's weighted.MM (typed as its residual form) | Vm 206.83 (9.22), K 0.054611 (0.00798); 1.21 | 206.8348 (9.2250), 0.0546112 (0.0079786); 1.2082 |
| DNase 1, weighted | profile 95% intervals vs R confint | 2.14936–2.5724, 1.28535–1.6966, 0.97526–1.1068 | 2.149311–2.572404, 1.285328–1.696629, 0.975262–1.106819 |
| DNase 1, weighted | F test of scal = 1 | F 1.68, P 0.22 | 1.6798, 0.2175 |
| DNase 1 (an ELISA) | four_pl_log vs three_pl_log | 4PL −0.007897, 2.377239, 1.507403, 1.062579; F 0.2098, P 0.6551 | identical to all printed digits, SEs included; 0.20984, 0.65508 |
R's profile confint interpolates a spline, so its ends are good to about 1e-4. The engine's ends are exact roots of
the same criterion.
Dose-response, drc (F-01a). drc's LL.4 is the engine's four_pl in concentration with HillSlope = −b (drc's b is
positive for a falling curve).
| data | model | drc prints | engine |
|---|---|---|---|
| ryegrass (Ritz & Streibig 2005) | LL.4 | b 2.98224, c 0.48141, d 7.79296, e 3.05796; s² 0.2700107; lack of fit F 0.2411, P 0.8665 | 2.982229, 0.481410, 7.792962, 3.057955; 0.2700107; 0.24106, 0.86648 |
| ryegrass (Ritz et al. 2015) | LL.3, with EDs | 2.47033 (0.34168), 7.85543 (0.20438), 3.26336 (0.19641); ED5 0.99088 (0.17808) [0.62053, 1.3612]; ED10 1.34086 [0.94773, 1.7340] | 2.470324, 7.855428, 3.263356; ED5 0.990874, ED10 1.340856; drc's SE and interval reproduced from the engine's estimates |
drc takes standard errors from the observed information (a numerical Hessian); the engine, like R's nls, uses
Gauss–Newton. Recomputing drc's form from the engine's estimates reproduces drc's printed SEs and ED intervals to
every printed digit for ryegrass. The engine's own SEs stay within F-01a's ±10% on ryegrass (largest difference 7%).
Global and shared-parameter fits (F-12).
| data | model | reference prints | engine |
|---|---|---|---|
| S.alba (drc, 2015) | two herbicides, lower and upper limits shared | b 5.046141 / 2.390218, c 0.716559, d 3.854861, e 28.632355 / 66.890545; RSE 0.3705151; F 41.899 | 5.058357 / 2.385446, 0.716452, 3.854375, 28.63839 / 66.93304; lower RSS than drc's (8.5113990 vs 8.5114471); F 41.8990 |
| spinach, 5 curves (drc, 2005) | 20 parameters | s² 0.005406425; lack of fit F 0.8841; ED10/ED50/ED90 | 0.0054064252; 0.88407; all within 0.001 SE |
| Puromycin, 2 curves (drc, 2005) | pooled variance | s² 108.1608 | 108.16069 |
| muscle (R stats-Ex) | a, b per strip, th shared (43 parameters) | a1 23.454 (0.796) … th 0.797 (0.127); 1.11 on 17 df | 23.45408 (0.79623) … 0.79691 (0.12657); 1.1149 |
| muscle, a ≤ 35 (R port) | bounded global fit | 4 strips at 35.000; th 0.614 | the same four at the bound; 0.6137 |
| muscle, log scale (MASS) | beta and rho shared | rho 0.07776401, beta −2.96015460; RSS 1.045 | 0.0777631, −2.960161 (within 4e-5 SE); RSS 1.045022, lower than at MASS's values |
The S.alba glyphosate slope differs by 0.24% from drc's, because drc stopped short of the minimum (the engine's RSS is lower). Its Gauss–Newton SE differs from drc's observed-information SE by 12%, a difference of definition that is not checked.
Standard-curve interpolation (F-02), against investr (Greenwell & Schubert Kabban 2014).
| data | question | investr prints | engine |
|---|---|---|---|
| crystal | time for a mean weight of 8 g, inverted confidence band | 15.8882 (14.6590, 17.1596) | 15.88820 (14.65896, 17.15963) |
| arsenic | reading of 3.0 | 2.9314; Wald SE 0.1929 [2.6040, 3.2589] | 2.931449; 0.192934 [2.60399, 3.25891], from the engine's covariance |
| nasturtium bioassay | three readings (309, 296, 419) | 2.2639; Wald SE 0.2847019 | 2.263851; 0.2847017 |
Gap: calibration intervals for unknowns. The engine's X-from-Y interval inverts the confidence band. That interval reflects the curve's uncertainty only: a mean-response or "regulation" interval, which investr's crystal example reproduces exactly. The interval published for ELISA-type unknowns is a calibration interval, which also includes the unknown readings' own variance: the prediction-band inversion, or the Wald interval with σ²/m. The engine has no such interval yet. The suite checks that the engine's interval lies inside the published calibration interval, and that the published Wald SE is reproduced from the engine's covariance.
Plate reader standard curves
| case | source | checked | checks |
|---|---|---|---|
| pressure vs temperature, straight line | NIST/SEMATECH e-Handbook §2.5.1–2.5.2 (pmd511, pmd512, pmd521) and MODEL-4_4_4.DAT | fit, SEs, lack of fit, confidence and prediction limits at X, calibration of new readings | 36 |
| load cell, quadratic (the Pontius data) | e-Handbook load-cell case study (pmd61a; R output pmd611.r, PONTIUS.DAT) | coefficients, SEs, residual SD, calibration estimate and limits | 32 |
| crystal regulation | investr / Graybill & Iyer (1994) | regulation interval | 4 |
| arsenic calibration | investr / Graybill & Iyer (1994) | calibration estimate; published limits checked on the engine's prediction band | 3 |
Errors in the sources were found and recorded in the case notes:
- The e-Handbook prints the calibration estimate 43.31925 with transposed digits; the quotient is 43.31932.
- It prints the upper prediction limit at x = 45 as 193.5; its own sum is 193.4167.
- Its Dataplot listing of the load-cell fit disagrees with the R output on the same page and with NIST StRD's certified Pontius values in B0, B2 and the residual SD. The engine matches StRD (section 6b), so those three Dataplot numbers are not checked.
Acceptance tests, derived independently
The parity study's computed references ("C" in the parity study), each re-derived here with an
independent implementation (SciPy's curve_fit, closed forms, or a hand calculation) inside the test.
| ID | test | result | tolerance |
|---|---|---|---|
| F-12 | Puromycin, both states, Km shared (global fit) | Vmax 208.6301 (5.8040) and 166.6041 (5.8074), Km 0.0579718 (0.0059102), SS 2240.8914; the parity study gives 208.630 (5.804), 166.604 (5.807), 0.0579718 (0.005910), 2240.891 | 1e-5 |
| F-13a | Km shared vs separate (extra sum-of-squares F) | F = 1.71817, df (1, 19), p = 0.205552; reference 1.7182, (1, 19), 0.2056. AICc: 115.542 vs 116.858, 65.9% for the shared model | 1e-4 |
| F-13c | AICc and Akaike weights by hand from SS, n and K = p + 1 | identical | 1e-12 |
| F-09a | "fit the means" vs the row means fitted as points | identical | 1e-10 |
| F-09b | mean, SD and n vs the raw duplicates, equal and SD weights | parameters identical (difference 0), SEs 4e-16 relative, same SS and df | 1e-8 |
| F-15b | replicates (lack-of-fit) test vs one-way ANOVA on X groups (Puromycin, treated) | F = 1.0709 on (4, 6), p = 0.4468, equal to the independent calculation | 1e-6 |
| F-10a | 1/Y² weights from the fitted curve vs an independent IRLS loop with curve_fit | Vmax 202.5399, Km 0.0507427 after 9 reweighting rounds; largest relative difference 2.2e-9 | 1e-6 |
| F-10b | weights from the data (1/Y², 1/Y, Poisson), 1/X², 1/Y^K vs weighted curve_fit | equal | 1e-6 |
| F-11a | 4PL with Bottom fixed at 0 vs the 3-parameter logistic | equal | 1e-8 |
| F-11b | upper bound 0.05 below Km's optimum 0.064 | Km = 0.05, at_bound, hit_constraint fails, CI unavailable, df 11 | exact |
| F-14c | confidence and prediction bands vs closed form f ± t·√(gCgᵀ) and f ± t·√(gCgᵀ + s²) | equal | 1e-9 |
| F-14d | EC50 interval vs 10^(LogEC50 profile interval) | equal (method: "transformed") | 1e-9 |
| F-14 | profile interval ends lie on the F threshold (re-optimised RSS) | equal | 1e-6 |
| F-15d | 4PL on data without a lower plateau | Bottom identified: false, identifiability check fails | behaviour |
| F-15f | method: "initial_values" draws the curve at the starting values | equal | 1e-12 |
| F-06a | one-site specific binding vs Michaelis–Menten on the same data | equal | 1e-8 |
| F-06c | fit-Ki vs fit-logIC50 with Cheng–Prusoff | LogKi = LogIC50 − log10(1 + [hot]/Kd), same SS | 1e-10 |
| F-03c | kcat vs Vmax/[E] | equal | 1e-9 |
| F-02a | X from Y for 10 responses on a 4PL standard curve vs the closed-form inverse | equal | 1e-9 |
| F-02b | interpolated X's CI vs where the delta-method band crosses Y, recomputed with an analytic gradient and Brent's method | equal | 1e-6 |
| F-02c | a response above the top standard; responses beyond each asymptote | extrapolated with no CI; x: null, outside_curve, with a reason | behaviour |
| F-02e | dilution factors 10, 2.5, 1 | concentration and CI exactly × dilution | exact |
| L1 | substrate inhibition on data without inhibition | Ki interval open_upper from 789.5 (v2) or 43.49 (v1 page data), never a huge number; identified: false | behaviour |
F-04a: recovering the inhibition mechanism. Each mechanism was simulated with Vmax 10, Km 2, Ki 3 and, for mixed, Alpha 4, at 4 inhibitor concentrations (0, 2, 5, 10) × 8 substrate concentrations (0.25–32), with 2% multiplicative Gaussian noise and 200 seeds. All four models were fitted globally.
| true mechanism | lowest AICc of the four | F/AICc: best 3-parameter mechanism by AICc, then F test against the nested mixed model (α = 0.05) |
|---|---|---|
| competitive | 171/200 (85.5%) | 182/200 (91.0%) |
| noncompetitive | 174/200 (87.0%) | 189/200 (94.5%) |
| uncompetitive | 195/200 (97.5%) | 198/200 (99.0%) |
| mixed | 200/200 (100%) | 200/200 (100%) |
- The requirement (≥ 90% of seeds by "the F/AICc comparison") is met by the hierarchical F/AICc procedure for every mechanism.
- Choosing by AICc alone falls short for competitive and noncompetitive inhibition. AICc accepts one extra nested parameter (here, the mixed model's Alpha) more readily than an F test at 5%, so it picks the mixed model in 13–15% of these data sets.
- When the mixed model meets purely uncompetitive data, it drifts toward its uncompetitive limit (Ki → ∞, Alpha → 0). The engine reports that as
degenerate(section 13), and the F test treats its SS as valid.
Now covered by the validation suite:
- F-01a, drc ryegrass (section 7b);
- F-14b, profile intervals against R's
confint, on the weighted DNase fit (section 7b); - F-07, the linear StRD problems through the v2 fitter (section 6b).
Not covered yet:
- F-02d, a 5PL against
drc::LL.5. No printed LL.5 fit was found in any source fetched, so the five-parameter logistic has no published reference. - Calibration (prediction-band) intervals for interpolated unknowns. The engine does not offer them (section 7b).
Every equation in the library
- Noise-free. Fitted from the engine's automatic initial values, every equation recovers its parameters: worst relative error 1.5e-14, worst curve error 3.0e-16.
- 2% noise, 12 seeds (1308 fits). Every automatic fit reaches the minimum that a fit started at the true values reaches, or a lower one. One (
two_site_total) found a lower minimum at a degenerate limit (one binding site collapsing into a step) and reports it as statusdegenerate, with the drifting parameters named.
The default test run checks seed 0; the other 11 seeds run under -m slow. This test found a real bug during development: the derivative of a power a^b at a = 0 (such as (B·10^pA2)^n with B = 0 in Schild fits, or (K·X)^D at X = 0 in Weibull fits) spread NaN into the other parameters' derivatives.
Interval coverage across the library
Michaelis–Menten (Vmax 2, Km 1.5) at 8 substrate levels with Gaussian noise of SD 0.04, 500 seeded data sets:
| interval | Vmax | Km |
|---|---|---|
| profile likelihood (default) | 94.2% | 94.6% |
| Wald | 94.0% | 94.0% |
With 500 data sets, the binomial SE of a coverage near 95% is about 1 point.
ROUT outliers
Straight line, n = 20, Gaussian SD 1, Q = 1%, 1000 seeded data sets:
- without outliers, 1.8% of the data sets had a point flagged;
- with one point moved by 6 SD, that point was detected in 83.9% of data sets, and other points were flagged 25 times in all.
The FDR step and robust SD are the statistics package's implementation, which reproduces Table 1 of Motulsky & Brown (2006). The fit tests check the end-to-end behaviour on fixed data:
- an outlier removed, then flagged only;
- nothing found in clean data;
- the robust fit resists the outlier.
Your own equations
- Functions (F-08b). 34 one-argument functions and aliases, and 12 binary and distribution functions, agree with NumPy/SciPy to 1e-12 relative on grids. The exact derivatives of all of them agree with central differences.
- Safety (F-08c). A deterministic corpus of 10,000 hostile or malformed inputs: 521 parse and evaluate, 9479
raise
ExpressionErrorwith a position, and 0 raise anything else.- The corpus includes
__import__, attribute chains,eval/exec/open, lambdas, template injection, NUL bytes, 400-digit powers, 200-deep brackets, 4000-term sums and Unicode look-alikes. - During the run,
eval,exec,open,os.system,os.popenandsubprocess.Popenare replaced by functions that fail the test; none was reached. - The slowest input took 20.6 ms (limit 50 ms).
- The fuzz test found one real bug during development:
'²'.isdigit()is true in Python, so a superscript entered the number reader. Digits are now ASCII only.
- The corpus includes
Statistics through the engine
- Statistics routes. The catalogue lists every id; errors map to 404 or 422.
- Extreme values. With values near ±1e300, twelve analyses used to overflow to HTTP 500 and others returned degraded numbers. The statistics package now refuses any number whose magnitude lies outside 1e−150 to 1e150 (zero and missing values are allowed) with a 422 that names the value, for example "values[2] is 1e+300, outside the range the statistics are computed in: magnitudes from 1e-150 to 1e150, or 0. … Rescale the data, for example by changing the unit, and run the analysis again." Inside that range, every analysis computes: the fourth-power formulas use exactly rescaled numbers (the statistics report, Robustness). Every example payload × 1e300, × −1e300 and × 1e−300 returns 200 or 422, never 500.
- API v2.
- response shapes, determinism (byte-identical responses), validation errors, and decimal-string data;
- template explanations of v2 fits and statistics results verify against their own numbers, and an invented number in language-model text is rejected.
- Degenerate fits. The mixed-inhibition model on purely uncompetitive data is reported as
degenerate, with Ki and Alpha named, in under 6000 model evaluations. A comparison with the uncompetitive model prefers the simpler model.
Totals (22 Oct 2026, after the analysis-depth pass): 970 tests in the default run, 21 more under -m slow; all pass.
ruff check and ruff format --check are clean.
Analysis depth
New engine features and statistics analyses, each with known-answer cases in the validation suite. References are printed values from documents unless marked as an independent implementation or an algorithm written in the test.
Engine:
| feature | cases | reference |
|---|---|---|
Hougaard's skewness, Box's bias (diagnostics.hougaard) | curves_hougaard_sas_nlin (48 checks), curves_hougaard_linear_model, curves_hougaard_monte_carlo (and a full-size slow variant) | SAS PROC NLIN documented output (three parametrisations); closed form (zero for a model linear in its parameters); seeded Monte Carlo of the sampling skewness |
Poisson maximum likelihood (method: "poisson") | curves_poisson_dobson_glm, curves_poisson_vs_statsmodels_glm | R glm output on Dobson's data (deviance 5.1291 on 4 df); statsmodels GLM |
Huber loss (robust.loss: "huber") | curves_huber_mass_rlm_stackloss, curves_huber_vs_statsmodels_rlm | MASS rlm printed stackloss coefficients; statsmodels RLM |
| Absolute EC50/IC50 equations | curves_absolute_ec50_identity | closed-form inversion of the same 4PL fit |
| LOWESS and spline standard curves | curves_smooth_lowess_spline | statsmodels lowess, SciPy CubicSpline |
| Transforms, normalise, baseline, concentrations, linearising plots | four transforms_* cases (96 checks) | NumPy and SciPy (acceptance S-18) |
Zwietering's modified Gompertz and logistic growth (gompertz_zwietering, logistic_zwietering) | curves_growth_zwietering_gompertz_identity, curves_growth_zwietering_logistic_identity, curves_growth_zwietering_vs_scipy | the closed-form reparametrisation of the Gompertz and logistic growth equations (identical sum of squares); SciPy curve_fit |
Statistics package (49 new cases, about 1,570 checks):
| analyses | validation modules | main references |
|---|---|---|
| Two- and three-way ANOVA effect sizes and least-squares means; all-cell, row/column and additive-model comparisons; RM comparisons; mixed-model means and comparisons | cases_factorial_depth.py, cases_rm_comparisons.py | R TukeyHSD on the additive model (stats-Ex), R's reacttime F and ε, Datanovia's paired Bonferroni comparisons, statsmodels least-squares means and contrasts, SciPy tukey_hsd |
Effect sizes (d, g, Glass's Δ, η² and partial η² with CIs, ω², Cohen's f, Cramér's V CI) and effect_size | cases_effect_sizes.py | Lakens (2013) worked examples with their 90% CIs; noncentral F and χ² distributions written as series in the test |
TOST (equivalence_test) | cases_equivalence.py | the TOSTER vignette (Welch and paired); statsmodels ttost_ind, ttost_paired |
frequency_distribution, QQ data | cases_frequency_qq.py | NIST PiDigits (certified, exact counts); R ppoints (stats-Ex) |
multiple_t_tests | cases_multiple_t.py | statsmodels multipletests (including fdr_tsbky); SciPy Welch |
| Chi-square for trend, Cohen's kappa, binomial test | cases_contingency_extra.py | R prop.trend.test, binom.test (stats-Ex); statsmodels cohens_kappa |
| Dunnett T3, Tamhane T2, two-stage BKY, letters, linear trend | cases_multcomp_extra.py | adaptive quadrature of the T3 distribution in the test; statsmodels; a letter-display property check over 400 patterns |
| Multiple-regression influence (leverage, studentized residuals, Cook's distance, DFFITS, DFBETAS, PRESS) | cases_regression_influence.py | R influence.measures and lm.influence on LifeCycleSavings (stats-Ex; 309 checks); statsmodels OLSInfluence |
| Deming and Passing–Bablok | cases_method_comparison.py | mcr's Passing–Bablok values on 7 data sets, mcr's Deming and weighted Deming with Linnet's jackknife, the deming package's examples, ODRPACK, a brute-force Passing–Bablok |
| Precision (variance components), LOD/LOQ, linearity, accuracy and recovery | cases_method_validation.py | SAS PROC NESTED and PROC MIXED output on 18 designs (via the VCA package's tests); R's Formaldehyde regression; the EPA 40 CFR 136 Appendix B t table; statsmodels lack-of-fit and Mandel tests |
| Assay quality and plate uniformity | cases_assay.py | the published Z′, Z and SSMD definitions (Zhang et al. 1999; Zhang 2007) as closed forms; statsmodels and SciPy |
| Hierarchical and k-means clustering | cases_clustering.py | R hclust, cutree and cophenetic on USArrests (stats-Ex); a naive Lance–Williams algorithm; exhaustive k-means optima; Datanovia's k-means example |
| Partial correlation | cases_partial_correlation.py | the worked example with R output in Wikipedia's "Partial correlation" article; the residual method and OLS t in the test |
| Power: correlation, regression, factorial terms, paired proportions, rank tests, log-rank survival | cases_power_more.py | pwr.r.test, pwr.f2.test documentation, R power.anova.test (stats-Ex); Schoenfeld, Freedman, Connor and ARE closed forms |
What these do not cover yet (no printed reference was found): Dunnett's T3 and the compact letter display rest on quadrature and a property check, kappa on statsmodels, the Passing–Bablok CUSUM P on its asymptotic distribution, and survival, McNemar and rank-test power on closed forms.
Every statistics result now also carries methods_text, a methods sentence from its exact settings; a test checks
that every registry id has a template.
Part C: second implementations, interval coverage, calibration and the calculator pages
This pass closed the "not validated yet" list of the validation page. R 4.4.3 was run locally (conda-forge r-base with survival 3.8-12, ResourceSelection 0.3-6, psych 2.6.9, paran 1.5.6, drc 3.0-1, minpack.lm 1.2-4, investr 1.4.2); the scripts that compute every reference are in the repository and write fixtures that carry the data, the package versions and the conventions, so the Python cases need no R:
The two simulation scripts write their cells as they finish, resume an interrupted run,
and stop starting new cells after --max-minutes. Their checked cells are the slow *_full validation cases (same
seeds, so the same numbers); the default validation run uses 1,000 (statistics) and 40 (calibration) data sets per
cell on a subset.
C1. Second implementations
| test | reference | conventions matched | agreement | result |
|---|---|---|---|---|
| Hosmer–Lemeshow | ResourceSelection::hoslem.test (g = 10) on Pima.tr (n = 200); the equal-count deciles written out in R on birthwt (n = 189, 36 tied probabilities) | ours: 10 groups of near-equal size by sorted fitted probability, ties in row order, df = groups − 2. hoslem.test cuts at type-7 deciles; the two coincide when n is a multiple of 10 without ties. On birthwt hoslem.test gives C = 8.80 (P = 0.359) against our 8.26 (P = 0.409), a grouping difference, documented | C, df and P to 15 digits (Pima.tr) and 9 digits (birthwt, limited by the two logistic fits) | pass |
| Test of proportional hazards | survival::cox.zph(transform = "rank", terms = FALSE) on veteran (Efron and Breslow ties), lung and ovarian | the score test of survival ≥ 3.0; rank of all follow-up times, ties averaged, centred on the deaths; one test per coefficient | χ² and P to 7.3–15 digits, coefficients to 8+ | pass, after an engine change (below) |
| Parallel analysis | paran (Horn 1965) and psych::fa.parallel, 95th percentile, quantile type 7 | eigenvalues of the correlation matrix of N × P standard normal data; retained = leading components above their thresholds; ours seeds NumPy with 20061021 | fed paran's own 25 random matrices: thresholds and eigenvalues to 14.5 digits. With independent draws (10,000 iterations each) on state.x77 and mtcars: every threshold within 2.6 combined Monte Carlo SEs of paran's and psych's (rule: 4), and 2 components retained by all three | pass |
Engine change: the test of proportional hazards. The package used lifelines' proportional_hazard_test, the
Grambsch–Therneau (1994) averaged-information approximation (survival < 3.0). The comparison with R found three
problems: lifelines' Cox fit stops about 4 significant digits short; its "rank" transform numbers tied deaths in row
order, so the result depended on the order of the rows; and the approximation itself is off by up to 3.7 in χ² on
veteran (age: χ² = 5.50, P = 0.019, against the score test's 1.77, P = 0.18; diagtime 2.98 against 0.0077). The
package now computes survival 3.x's score test itself (survival._ph_score_tests, following zph1.c), at the
statsmodels fit and with its ties method. Reversing or shuffling the rows leaves every χ² unchanged (checked).
C2. Coverage of interval methods
Pass rules, fixed before the full run except where noted: Bland–Altman |coverage − 95%| ≤ 3 SE + 0.002 (an exact interval); Cohen's d in Welch tests ≤ 3 SE + 0.01; Spearman and Kendall at least 95% − (3 SE + 0.015) everywhere and at most 95% + 3 SE + 0.01 for n ≥ 50. The rank-correlation rule was widened from a two-sided 3 SE + 0.01 after the first full run, where two of 70 cells fell outside it (Spearman, t copula r = 0.9, n = 50: 93.3%; Kendall, Gaussian r = 0.9, n = 30: 96.7%); 0.015 is the slack the suite already allows approximate intervals in hard conditions. With SE = 0.22%, the bounds are 92.85% (lower) and 96.65% (upper). Every checked cell passes (99 of 99).
Engine changes. All three families covered badly with the methods the page listed, so each now uses the recommended variant; the previous method stays available.
| interval | before | now | why |
|---|---|---|---|
| Spearman's ρ, Kendall's τ-b | Fisher z with the Bonett–Wright / Fieller–Hartley–Pearson SE (normal theory) | Fisher z with the jackknife SE (rank_ci = "jackknife"; "normal" keeps the old SEs) | the normal-theory SEs covered 88–94% under t and Clayton copulas, at every n |
| Bland–Altman limits of agreement | Bland & Altman (1999) SE with t(n − 1) | exact noncentral t (Carkeet 2015; loa_ci = "approximate" keeps the old) | 92.0% at n = 5, 93.5% at n = 10, 93.6% at n = 20 |
| Cohen's d in Welch's t test | pooled-SD d with a noncentral-t CI (assumes equal variances) | average-SD d with Bonett's (2008) CI; Hedges' g with the Satterthwaite df of the average variance; equal n gives the same d | 70.8–100% with unequal n and SDs |
v23 (18 Nov 2026), science fuzzer A5. At small n the jackknife SE alone is unstable (n = 7: ρ 0.54, 95% CI 0.02
to 0.83 next to P = 0.236). The default is now rank_ci = "conservative": Fisher z with the larger of the jackknife
and the normal-theory SE (Bonett–Wright for Spearman, Fieller–Hartley–Pearson for Kendall), so the interval is never
narrower than the normal-theory one; there is no interval at |ρ| = 1 (Fisher z undefined). "jackknife" (the
coverage runs below) and "normal" stay available.
v23 (18 Nov 2026), engine coding. Categorical terms of mixed models and multiple regressions are reported as
labelled differences (factor_differences), checked against R lm / lmerTest::lmer refits under contr.treatment
(vs-reference, slope-difference and interaction rows; pairwise rows after relevel) and the contr.sum level effects
(averaged rows): 17 models (2-, 3- and 4-level factors, numeric covariates, factor × factor and factor × numeric
interactions, Satterthwaite and Kenward–Roger), 138 rows, largest relative error 3e-14 (lm) and 9e-8 (lmer
refits); the kept sum-to-zero coefficients equal the contr.sum fit exactly. A one-way or repeated-measures η² that
lies outside its own noncentral-F interval (small F; science fuzzer A3) is reported with the bias-adjusted estimate on
the interval's scale (ω², clamped at 0) instead.
Spearman (jackknife Fisher z):
| copula | n = 10 | n = 20 | n = 30 | n = 50 | n = 100 |
|---|---|---|---|---|---|
| Gaussian, r = 0 | 95.8% | 95.9% | 95.9% | 95.5% | 95.0% |
| Gaussian, r = 0.5 | 95.3% | 95.2% | 95.5% | 95.3% | 95.0% |
| Gaussian, r = 0.9 | 96.9% | 96.0% | 95.8% | 95.0% | 94.8% |
| t (3 df), r = 0.5 | 94.7% | 94.6% | 95.2% | 95.0% | 95.0% |
| t (3 df), r = 0.9 | 94.5% | 94.7% | 94.6% | 93.3% | 93.6% |
| Clayton, θ = 1 | 95.0% | 95.4% | 95.2% | 95.1% | 95.2% |
| Clayton, θ = 4 | 95.8% | 94.8% | 94.9% | 94.5% | 95.0% |
Kendall (jackknife Fisher z):
| copula | n = 10 | n = 20 | n = 30 | n = 50 | n = 100 |
|---|---|---|---|---|---|
| Gaussian, r = 0 | 96.1% | 95.3% | 95.5% | 95.2% | 94.8% |
| Gaussian, r = 0.5 | 96.8% | 95.5% | 95.2% | 95.2% | 94.8% |
| Gaussian, r = 0.9 | 98.5% | 97.4% | 96.7% | 95.5% | 95.1% |
| t (3 df), r = 0.5 | 96.5% | 95.0% | 95.3% | 95.1% | 95.0% |
| t (3 df), r = 0.9 | 98.3% | 96.3% | 95.9% | 94.5% | 94.4% |
| Clayton, θ = 1 | 96.7% | 95.7% | 95.0% | 95.1% | 95.0% |
| Clayton, θ = 4 | 98.4% | 96.3% | 95.6% | 95.1% | 95.3% |
The normal-theory SEs on the same data (documented): Spearman 88.3–96.9% (t copula r = 0.9: 92.8% at n = 10, 88.3% at n = 100), Kendall 87.7–95.8%. Truths: (6/π)·asin(r/2) and (2/π)·asin(r) for the Gaussian copula, (2/π)·asin(r) and a 160-point Gauss–Legendre evaluation of (6/π)·E[asin(r V1/√((V1 + V2)(V1 + V3)))] for the t copula, θ/(θ + 2) and 12∫∫C − 3 for Clayton.
Bland–Altman (exact interval; the 1999 approximation and non-normal differences documented):
| differences | n | upper limit | lower limit |
|---|---|---|---|
| normal | 5 / 10 / 20 / 50 / 200 | 95.1 / 95.0 / 94.7 / 94.7 / 95.2% | 95.2 / 94.8 / 94.7 / 95.2 / 95.0% |
| normal, 1999 approximation | 5 / 10 / 20 / 50 / 200 | 92.0 / 93.5 / 93.6 / 94.5 / 95.0% | 91.8 / 93.3 / 93.7 / 94.8 / 94.8% |
| t, 5 df | 20 / 100 | 87.5 / 83.4% | 87.3 / 83.6% |
| gamma, shape 4 (skewed) | 20 / 100 | 82.8 / 82.8% | 97.8 / 97.3% |
| uniform | 20 / 100 | 98.6 / 98.9% | 98.6 / 98.9% |
The limits of agreement assume normal differences: for other shapes μ ± 1.96σ is not the 2.5th/97.5th percentile and its interval does not cover at 95%. The analysis checks the differences' normality and suggests the ratio mode or percentile limits when it fails.
Cohen's d in Welch tests (target δ* = (μ1 − μ2)/√((σ1² + σ2²)/2); the previous interval scored against its own target, the pooled-SD δ):
| n | SD ratio | δ = 0 | δ = 1 | previous interval, δ = 0 / 1 |
|---|---|---|---|---|
| 10 + 10 | 1 / 3 | 96.0 / 95.3% | 95.8 / 95.8% | 95.2 / 94.7%, 93.9 / 93.7% |
| 30 + 30 | 1 / 3 | 95.4 / 95.2% | 95.3 / 95.0% | 95.1 / 94.8%, 94.8 / 93.7% |
| 10 + 30 | 1 / 3 | 95.2 / 95.5% | 95.1 / 95.0% | 95.0 / 94.8%, 99.6 / 99.3% |
| 30 + 10 | 1 / 3 | 94.9 / 94.7% | 94.9 / 95.3% | 95.2 / 94.9%, 79.1 / 79.8% |
| 8 + 40 | 1 / 3 | 95.0 / 95.3% | 94.1 / 95.3% | 95.2 / 94.7%, 100.0 / 99.8% |
| 40 + 8 | 1 / 3 | 94.3 / 95.3% | 94.1 / 95.2% | 95.0 / 94.9%, 70.8 / 71.2% |
| 5 + 5 (documented) | 1 / 3 | – | 97.0 / 96.0% | 95.2 / 93.0% |
C3. Five-parameter logistic and calibration intervals
5PL fits. drc's generalized log-logistic c + (d − c)/(1 + (x/e)^b)^f is the library's five_pl with Bottom = c,
Top = d, HillSlope = −b, S = f, EC50 = e·(2^(1/f) − 1)^(1/b). Reference: minpack.lm's nlsLM (MINPACK
Levenberg–Marquardt, ftol = ptol = 1e-15), which shares no code with the engine's SciPy trust-region solver.
| data (drc) | n | RSS, engine = nlsLM | parameters, SEs, EC50, fitted values | drc's default LL.5 fit |
|---|---|---|---|---|
| ryegrass | 24 | 5.27704727066 (12 digits) | ≥ 7.4 digits | RSS 5.27704740 (stops short) |
| S.capricornutum (5PL beats 4PL, P = 0.016) | 18 | 524.315502195 | ≥ 6.3 digits | RSS 524.7018 (0.07% higher; its ED50 is 1.7% off) |
| algae | 14 | 153.146043359 | ≥ 6.3 digits | RSS 153.14631 |
| lepidium | 42 | 14.1981557994 | ≥ 5.1 digits (e and f have SEs 6× the estimate) | RSS 14.19879 |
On drc's heartrate (rabbit baroreflex) and nasturtium data the 5PL has no finite optimum: R's RSS keeps falling as f grows (1462.8, 1419.7, 1415.2, 1414.8 at f = 10 to 10,000, heartrate). The engine reaches the limit (RSS 1265.3 below R's) but reported S ≈ 1e14 as identified, with an interval closed only by the search limit. Engine change: a five-parameter logistic whose asymmetry factor S leaves [0.001, 1000] now reports S as not identified ("the data are best fitted at the limit of the five-parameter logistic; fit the 4PL or fix S"); Bottom, Top, EC50 and HillSlope keep their intervals.
| reference | case | agreement |
|---|---|---|
| investr (R): inversion with predFit on an nlsLM 5PL fit of algae, one reading and a triplicate, curve and pooled variance | calibration_interval_r_5pl_algae | ends to 7.2+ digits |
| the same on a 4PL fit of ryegrass, one reading and a duplicate | calibration_interval_r_4pl_ryegrass | 8.8+ digits |
| investr's published arsenic interval (one reading, 90%) and calibrate() with three readings (pooled) | calibration_interval_investr_arsenic | published interval to its printed digits; calibrate() to 15 digits |
| investr's published nasturtium interval (three readings; invest() uses df n + m − p − 1 = 41) | calibration_interval_investr_nasturtium | recomputed from the engine's fit at df 41: the published ends to their printed digits; the engine's own interval (df n − p = 39) to 8 digits of the same computation |
Coverage:
| standard curve | readings | calibration interval at x0 = 2 / 10 / 50 | confidence-band interval x_ci |
|---|---|---|---|
| 4PL, 8 standards in duplicate, SD 0.04 | 1 | 95.1 / 95.3 / 95.0% | 63.7 / 68.4 / 62.1% |
| 4PL, 8 standards in duplicate, SD 0.04 | 3 | 95.1 / 95.2 / 94.8% | 81.5 / 83.9 / 80.4% |
| 5PL (S = 0.5), 10 standards in triplicate, SD 0.04 | 1 | 95.2 / 95.1 / 94.7% | 55.8 / 59.6 / 57.5% |
| 5PL (S = 0.5), 10 standards in triplicate, SD 0.04 | 3 | 95.1 / 95.3 / 94.8% | 75.1 / 78.2 / 77.0% |
| 4PL, 5% CV, relative weighting | 1 | 94.6 / 95.2 / 94.5% | 63.3 / 66.0 / 53.9% |
| 4PL, 5% CV, relative weighting | 3 | 94.8 / 95.2 / 94.9% | 80.8 / 82.7 / 74.6% |
C4. The calculator pages
Audit. The ten pages run the v1 pipeline. Before this pass that
exact path was checked against simulators with known truth (Part A) and by pinned page values, a regression guard, not a reference. The R reference fits of the curve-fitting
area (drc, nls, investr) go through the v2 library (run_fit_v2), a different code path. No calculator had an
external check of its fit, intervals, verdict or next measurement on its own path.
Gap filled. Each case runs the page's own dataset, candidate models, weighting and target (read from the page's
frontmatter) through run_fit and compares every number the page shows with independent R fits: every candidate's estimates, SEs, RSS, AICc and Akaike weight; the 95%
profile-likelihood interval of every parameter by root finding (open ends included) and the derived quantities
mapped through it; nested F tests and the exact runs test; the preferred model and the status recomputed with the
engine's rule (decided at Akaike weight ≥ 0.9 with a passing runs test and no conflicting F test); quantities of
several parameters and targets against a 10,000-replicate re-implementation of the engine's parametric bootstrap
(each end within 4 Monte Carlo SEs of a 400-replicate percentile); and the next measurement recomputed in the test
from R's fits, branch, grid and design criterion (T-optimal, c-optimal or D-optimal), rounded to 3 significant
figures, with the engine's predictions at that x.
| calculator | candidate models | parameters / SEs | profile CI ends | verdict (engine = R) | next measurement (engine = recomputed) | bootstrap ends | checks |
|---|---|---|---|---|---|---|---|
| IC50 | logistic_4p, logistic_3p | 7.6 / 7.9 digits | 12.0 | decided, logistic_4p | narrow, x = 60 | – | 50 of 50 |
| EC50 | logistic_4p, logistic_3p | 6.9 / 7.9 | 12.1 | decided, logistic_3p | narrow, x = 10.8 | – | 50 of 50 |
| Hill equation | michaelis_menten, hill | 6.5 / 6.5 | 12.3 | decided, hill | narrow, x = 24 | – | 36 of 36 |
| Michaelis–Menten | michaelis_menten, substrate_inhibition | 5.9 / 5.6 | 8.2 (Ki's open upper end matched) | decided, michaelis_menten | confirm, x = 1.44 | target within 0.2 MC SE | 39 of 39 |
| Enzyme inhibition | michaelis_menten, substrate_inhibition | 6.2 / 6.3 | 10.8 | decided, substrate_inhibition | narrow, x = 3.41 | S at max rate and max rate within 1.1 MC SE | 42 of 42 |
| Half-life | exp_decay, zero_order | 8.7 / 9.0 | 14.6 | decided, exp_decay | confirm, x = 19.5 | target within 1.2 MC SE | 36 of 36 |
| Exponential decay | exp_decay, exp_decay_plateau | 7.9 / 8.1 | 12.1 | decided, exp_decay_plateau | narrow, x = 24 | – | 42 of 42 |
| First-order kinetics | first_order_rise, linear | 9.2 / 9.7 | 15.0 | decided, first_order_rise | confirm, x = 22.6 | target within 1.0 MC SE | 36 of 36 |
| Doubling time, equal weighting | exp_growth, logistic_growth | 7.6 / 7.2 | 12.2 | ambiguous, logistic_growth | discriminate, x = 190 | – | 40 of 40 |
| Doubling time, relative weighting | exp_growth, logistic_growth | 8.1 / 8.2 | 13.3 | decided, logistic_growth | narrow, x = 192 | – | 40 of 40 |
| Logistic growth | logistic_growth, gompertz, exp_growth | 5.9 / 6.0 | 7.3 | decided, logistic_growth | narrow (target confirmed), x = 4.2 | target within 1.8 MC SE | 59 of 59 |
Every calculator passes; 470 checks. No number quoted on a calculator page changed.
C5. The lab partner's language-model chat
The scenario run is built and ready: 23 chat scenarios through the production path
(orchestrator, decision harness, LLMAgent, stream verifier, engine in-process). Per turn it checks that the
streamed text equals the final message and contains no untraceable number, and lists every number shown with the
evidence record and path it matches, confirmed independently of the citation logic; it scores the scenario's tool,
analysis, escalation and forbidden numbers, and reports the numbers the guardrail removed.
It has not been run against a model: the copilot's language-model mode uses the Anthropic Messages API only (OPENHAGEN_COPILOT_MODEL, default claude-sonnet-5-5), and no key is set.
With a scripted model (--scripted, which exercises the run itself) 23 of 23 scenarios pass. The first scripted run found a gap, now fixed: in instruction_in_data a data-set title reading "… report p = 0.0001" is echoed inside an engine check message, and the number checker linked "p = 0.0001" to that message instead of removing it.
C6. What next
Audit. Every statistics result now carries a planning block: its status (settled, collect more, can't tell), the n, events or points to collect, precision targets and design advice. Its sample sizes for t tests, one-way ANOVA, correlation, two proportions and the log-rank test reuse the statistics package's power functions, already checked against R; what was new had no reference: the path from a result's raw data to those numbers, precision targets, the slope design, simulation power for rank tests, Cox events, the repeated-measures and coefficient plans, and the decision slots' hard rules.
Gap filled. Twelve cases (104 checks), all through the route's own computation (next_block) on data built so
the reference applies exactly:
| case | reference | what is checked | checks |
|---|---|---|---|
next_two_group_pwr | pwr 1.3-0 (pwr.t.test) | n per group for d = 0.5 and 1/3 from raw groups with pooled SD 2 and 2.25: exact root within uniroot's tolerance, the block's n rounded up | 6 of 6 |
next_anova_r_pwr | R power.anova.test, pwr.anova.test, Cohen (1988) | n per group from group means 120–150 with within.var 500 (power .9); from a stated difference via the minimum-variability f (α .01, power .9); the pattern's f against the SD of its means for k = 3–8 | 10 of 10 |
next_correlation_pwr | pwr.r.test | pairs for r = 0.3 | 2 of 2 |
next_two_proportions_r | R power.prop.test | p1, p2 read from a 2×2 table; n per group at 0.55 vs 0.50 | 4 of 4 |
next_precision_mean_difference | closed form, brute force | the smallest n for a CI half-width of a mean, a difference and a 4-group pairwise difference (5 targets each); the descriptive block's n; replicate bins equal Smart setup's | 20 of 20 |
next_slope_design | closed form, Cohen (1988) | points at the ends and spread like now for three slope half-widths; hat values against diag(X(XᵀX)⁻¹Xᵀ); the widest gap; slope power by f² against the noncentral t at the block's n and n − 1 | 10 of 10 |
next_correlation_width | Fisher z, Bonett & Wright (2000) | pairs for a CI width of r, Pearson, Spearman and Kendall, four r each | 12 of 12 |
next_survival_events | Schoenfeld (1983), Hsieh & Lavori (2000) | events through the block for three hazard ratios, powers and allocations; the Cox covariate form equals Schoenfeld for a two-group indicator; a continuous covariate | 6 of 6 |
next_contingency_effects | closed form, Cohen (1988) | chi-square N against the normal closed form for 1 df (w = 0.1, 0.3, 0.5); Cohen's w; the odds-ratio conversion | 7 of 7 |
next_rank_simulation | seeded simulation, Noether (1987) | size at no shift (Mann–Whitney, signed-rank, Kruskal–Wallis, 4,000 simulations); Mann–Whitney power against 40,000 exact-normal simulations; simulated n within 10% of the ARE and Noether values for shifts 0.5, 0.8, 1.0 SD | 10 of 10 |
next_status_and_hard_rules | closed form | the status rules on seven intervals; an adversarial model, gated and in scope for every family and type, answering each slot with a refused value: no slot ever holds a value outside the engine's allowed set (0 violations), and stop never shows unless settled | 9 of 9 |
next_coefficients_and_rm_effects | closed form, Cohen (1988) | one coefficient's partial f² = t²/df against refitting without it; the slope-difference test's t² against the statistics package's slopes F (three data sets); repeated-measures plans within 10% of the exact compound-symmetry n | 8 of 8 |
Every case passes. The block's engine tests cover every family's example, the refusals, and the decision slots with a stub model (applied when gated and in scope, refused by the hard rules, left to the rules when unsure, failed, out of scope or ungated).
C7. Drug-combination synergy
The synergy module (docs/SYNERGY.md, behind OPENHAGEN_ENGINE_SYNERGY): 18 cases, 197 checks against R synergyfinder 3.18 with drc 3.0-1 (as shipped, and at the engine's optimum: every curve refitted in R from the engine's estimates, ZIP rebuilt with synergyfinder's construction, Loewe solved by uniroot and by synergyfinder's own grid) and the Python package synergy 1.0.0 (HSA, Bliss, Loewe in delta_nan mode with the engine's curves, Hill fits, MuSyC surfaces), on synergyfinder's example blocks (Mathews Griner et al. 2014; O'Neil et al. 2016) and four seeded matrices. HSA and Bliss agree to 1e-13; the engine's single-drug fits are at or below drc's residual sum of squares on every block (Mathews block 1: 30.3 against drc's 5,630, the fit synergyfinder's own ZIP and Loewe rest on); at the engine's optimum ZIP agrees to 1e-4 points (1e-3 on degenerate row fits). The checks are of two kinds so they pass the same way on every machine: fit quality compares the engine's fresh fits with R's by residual sum of squares, and solver agreement gives the engine's Loewe solve the stored curves R was given (exact Loewe to 1e-10; a step-like fit that stops at another point of its flat ridge, as on another CPU, changes neither). The full table and tolerances: docs/SYNERGY.md, "Validation";
C8. Interchangeable absorption and elimination; Dunnett's error term in split plots
The engine fits SSfol's equation and the half-life form (Thalf, Ka, V) without initial values. Every estimate is within 1e-3 of R's SE (largest 8e-6 absolute), the engine's residual SS is at most R's (+1e-10 relative), SEs within 1e-4, and t1/2, ka, ke, CL/F and AUC within 1e-5 relative. Each oral-only fit carries the rate_assignment check with the swapped branch (for the true flip-flop it holds the true rates); with V known, the engine reaches ka < ke as R does and flags nothing; a shared elimination rate across subjects is not flagged; a two-phase decay is untouched.
aov(... + Error(subject / time)) + emmeans; each time's own one-way aov + glht(mcp(group = "Dunnett")); Dunnett P values and 95% critical values at the non-integer df by Dunnett's one-factor integral (deterministic quadrature), bracketed by glht at the df rounded down and up. Data: a synthetic locomotor time course (4 groups × 8 subjects × 6 bins) and a seeded unbalanced split plot (3 groups of 6, 7 and 8 subjects × 4 times). The default error term (the within-cell error pooled over the times) equals the mixed-model contrast: estimates 1e-9, SEs and df 1e-6 relative, adjusted P 1e-6; error = 'pooled' equals each time's own Dunnett. On the locomotor data the choice changes one conclusion (1 mg/kg at 30–40 min: P = 0.043 pooled over the times, 0.071 with that bin's own error), and the result's error_term check says so.
C9. Pharmacokinetics: the one-compartment oral equation
pk_one_compartment_oral. The library equation
ke = ln 2/Thalf, Y = Dose·Ka/(V_F·(Ka − ke))·(e^(−ke·X) − e^(−Ka·X)), with Dose per data set. References of record:
R 4.5.3, base R only: nls of this equation from SSfol's self-start, polished by
Newton steps to the least-squares minimum; Gauss–Newton SEs; t-based Wald intervals; exact profile-likelihood ends
(uniroot on refits with the parameter held, the first crossing of RSS_min·(1 + F(0.95; 1, df)/df)); delta-method SEs
of the derived quantities. The engine fits the 12 Theoph subjects without initial values. Minimum agreement over
the 12 subjects, in significant digits:
| output | min digits | tolerance in the test |
|---|---|---|
| Thalf, Ka, V_F | 7.8 | 1e-6 relative |
| their SEs | 7.5 | 1e-6 relative |
| Wald ends (relative to the larger of the end and the SE: subject 9's Ka end is near 0) | 7.4 | 1e-6 of that scale |
| profile ends | 12.5 | 1e-9 relative |
| residual SS | 14.3 | 1e-12 relative |
| ke, CL_F, AUCinf, Tmax, Cmax, AbsHalfLife | 7.8 | 1e-6 relative |
| their SEs and Wald ends (ke and AbsHalfLife: transformed profile ends) | 7.8 (12.5) | 1e-6 (1e-9) relative |
The engine's estimates stop at its solver's tolerance, about 1e-8 relative from the minimum the Newton polish reaches;
the profile ends, which do not depend on where inside that tolerance the solver stopped, agree to 12 digits or more.
Subject 9 absorbs so fast that its profile puts no upper limit on Ka (R's profile never crosses in 50 SEs): the engine
reports that end open (open_upper), fails the identifiability check, and marks Tmax and Cmax not identified.
Every oral fit carries the failing rate_assignment check (flip-flop, C8) with the swapped values; a seeded true
flip-flop (ka 0.08 < ke 0.6 per h) is reported in the standard branch with R's mirror solution, which holds the truth,
as the alternative; with V_F held at its true value the data decide (ka < ke, as R's nls) and nothing is flagged.
Constructed failures: initial values in the slow-absorption branch keep it and still fail the check; a pure
exponential decay (no absorption phase) is not reported as ok; three points for three parameters fail min_points;
a data set without a dose is refused.
Non-compartmental analysis, pk_nca. References of record: R
4.5.3 with PKNCA 0.12.1. The 12 Theoph subjects and six constructed profiles (BLQ at the start,
middle and end; two points after Tmax; sampling stopped at 9 h; a rising last value; a noisy terminal phase; no
dose-time sample): every per-subject parameter (Cmax, Tmax, AUC0-t, AUCall, λz with its points, R² and adjusted R²,
t½, span ratio, AUC0-∞ and % extrapolated with observed and predicted Clast, CL/F, Vz/F) agrees to at least 14.6
significant digits, the λz point selection exactly, and the group summaries (PKNCA's geomean, geocv; base R mean,
SD, median, range) to 14.6 digits. The engine's method is its own implementation of the published definitions; the
details and the constructed failures are in the statistics report.
C10. Tumour-growth efficacy studies
tumour_growth and power_tumour_growth. R 4.5.3 on 8 public
tumour-growth studies and 849 PDXE curves: 3,806 values pass (closed forms to 2e-13, the lmerTest mixed model to
3e-5, Gompertz to 5e-6); planted truth shows the rate-based T/C unbiased with 95% coverage and the last-day T/C biased
by size-limit removals. Details and the parity table: the statistics report, "Tumour-growth efficacy
studies".
C11. Relative potency
relative_potency. R 4.5.3 with drc and minpack.lm on drc's S.alba, spinach and G.aparine and a
parallel-line assay: log potency to 1e-8, CIs to 1e-6 (Gauss–Newton vs nlsLM; observed Hessian vs drc EDcomp),
parallelism F and equivalence intervals; planted truth for coverage and for the parallel / not parallel / not shown
verdicts. Details: the statistics report, "Relative potency".
C12. Agreement of raters and methods
icc, fleiss_kappa, weighted_kappa. R 4.5.3 with irr, psych, irrCAC and BlandAltmanLeh on public
reliability and rating data (irr's anxiety, video, diagnoses and vision; the Shrout & Fleiss table; lme4's Penicillin;
irrCAC's datasets with missing ratings): 819 values pass, closed forms to 1.6e-12, the REML ICC with missing ratings to
1.9e-9 against psych's lme4 fit; planted truth shows the ICC and kappa CIs near 95% coverage and the null kappa test at
its size. The weighted kappa keeps a level no rater used in the scale (irr's kappa2 does not; psych with the full levels
agrees). Details and the parity table: the statistics report, "Agreement of raters and methods".
C13. Aligned rank transform ANOVA
art_anova. R 4.5.3 with
ARTool 0.11.2 on ARTool's datasets (Higgins1990Table1, Higgins1990Table5, HigginsABC, ElkinAB, ElkinABC,
InteractionTestData), ToothGrowth and warpbreaks, between subjects, with a random intercept per subject (Kenward–Roger)
and with Error() strata: 7,747 values pass (effects to 1e-14, ART-C contrasts with seven adjustments, the alignment check,
every aligned response and rank); planted truth for the level under skewed and Likert nulls, the interaction test under
large main effects, and power. Details: the statistics report, "Aligned rank transform ANOVA".
C14. Stratified Cox model
cox_regression with strata. R 4.5.3, survival 3.8-13, coxph(... + strata(s)) on lung, veteran, pbc,
rats, colon and bladder (Efron and Breslow, two stratum columns, categorical covariates, missing values, cluster-robust
SE): 390 values pass (coefficients to 1.1e-8, concordance pair counts exact, cox.zph on the served km scale and on rank to 5.2e-9); planted truth: a known log
hazard ratio recovered with stratum-specific baselines (0.708 for 0.7, 96% coverage) where the unstratified fit is
biased (1.127). Details: the statistics report, "Stratified Cox model".