Skip to content
How every number is checked

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 figures block holds the display strings, such as checks: 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.

areacasescheckspassedsourcesmin digitsmedian digits
NIST StRD1021919191953.411.0
Curve fitting8817241724221.28.0
Statistics17539743974710.314.3
Integrations5123382338141.115.0
Properties and simulation3420620668.815.0
Robustness182062064––
total4681036710367104

By package

packagecasescheckspassed
engine19537913791
statistics package23545144514
integrations3820622062

By topic

areatopicpackagecasescheckspassedmin digits
NIST StRDLinear regression (engine v2 curve fitter)engine112202206.9
NIST StRDLinear regression (stats package)stats111321326.9
NIST StRDNonlinear regression (engine library equations)engine71531537.2
NIST StRDNonlinear regression (engine v2)engine27107110713.4
NIST StRDNormal posterior (MCMC certificates)engine6606013.8
NIST StRDOne-way ANOVA (HTTP API)engine111101103.9
NIST StRDOne-way ANOVA (stats package)stats111101103.9
NIST StRDUnivariate summary statistics (HTTP API)engine936368.3
NIST StRDUnivariate summary statistics (stats package)stats927278.3
Curve fittingCalculator pages (v1 /api/fit)engine114704702.0
Curve fittingDose-response (drc)engine370703.8
Curve fittingDrug-combination synergyengine161891891.2
Curve fittingEntered means (mean, SD, N)engine71071077.3
Curve fittingFive-parameter logisticengine562625.2
Curve fittingGlobal and shared-parameter fitsengine72792792.3
Curve fittingGrowth curves (Zwietering)engine325257.4
Curve fittingIndependent reference auditengine151517.7
Curve fittingModel comparisonengine125253.7
Curve fittingNonlinearity (Hougaard's skewness, Box's bias)engine258581.5
Curve fittingPoisson and robust fittingengine436363.4
Curve fittingProfile-likelihood intervalsengine113133.0
Curve fittingR reference fits (nls)engine162182182.5
Curve fittingStandard-curve interpolationengine888883.8
Curve fittingWeighted fitsengine333331.9
StatisticsArea under curvestats2883.6
StatisticsAssay qualitystats2505012.9
StatisticsBland–Altmanstats2882.1
StatisticsClusteringstats33163166.8
StatisticsContingency tablesstats131671672.1
StatisticsCorrelationstats543433.6
StatisticsData transforms (normalise, baseline, linearising plots)engine4969615.0
StatisticsDescriptive statisticsstats424244.1
StatisticsEffect sizesstats343430.8
StatisticsEquivalence testsstats362621.3
StatisticsFrequency distributionsstats2444415.0
StatisticsIndependent reference auditstats13973976.8
StatisticsLinear regressionstats75725720.3
StatisticsLogistic regressionstats421213.5
StatisticsMethod comparisonstats686862.8
StatisticsMethod validationstats61681683.4
StatisticsMixed-effects modelstats539393.1
StatisticsMixed-effects modelsstats1656510.1
StatisticsMultiple comparisonsstats142252250.7
StatisticsMultiple t testsstats321211.3
StatisticsNested designsstats231319.7
StatisticsNonparametric testsstats420204.2
StatisticsNormalitystats553531.1
StatisticsOne-way ANOVAstats335352.9
StatisticsOtherstats18815.0
StatisticsOutliersstats211111.6
StatisticsP values from test statisticsstats350504.1
StatisticsPCAstats481812.1
StatisticsParts of wholestats1171715.0
StatisticsPoisson regressionstats210103.8
StatisticsPower and sample sizestats664641.7
StatisticsROC curvesstats428281.8
StatisticsRegression diagnosticsstats1663.6
StatisticsRepeated-measures ANOVAstats101331332.5
StatisticsSummary-data testsstats255554.4
StatisticsSurvivalstats145485482.6
StatisticsTwo-way ANOVAstats82602602.8
StatisticsWhat next (POST /api/next)engine1085855.6
Statisticst testsstats324244.0
IntegrationsCell counters and seedingintegrations-py3767615.0
IntegrationsChromatography: peaks and calibrationintegrations-py52692692.7
IntegrationsFlow cytometry (FCS)integrations-py66656656.6
IntegrationsGel and blot densitometryintegrations-py5169169–
IntegrationsGrowth curves (OD600)integrations-py215415415.0
IntegrationsImage decoding (PNG, TIFF) for densitometryintegrations-py2626215.0
IntegrationsInstrument exports through ASM (allotropy)integrations-py612212215.0
IntegrationsLiquid-handler worklists (Tecan, Hamilton, Biomek, Echo, generic CSV)integrations-py34764763.0
IntegrationsPlate-reader standard curves (engine /api/v2/interpolate)engine475753.5
IntegrationsqPCR (ΔΔCt)stats81321321.1
IntegrationsqPCR (ΔΔCt), independent reference implementationintegrations-py565651.1
IntegrationsqPCR standard curves and efficiencystats273732.7
Properties and simulationCI coverageengine, stats116161–
Properties and simulationCoverage and error rates (stats reference suite)stats51414–
Properties and simulationDrug-combination synergyengine28810.7
Properties and simulationFamily-wise errorstats144–
Properties and simulationInvarianceengine, stats668688.8
Properties and simulationNonlinearity (Hougaard's skewness, Box's bias)engine133–
Properties and simulationPowerstats2141413.5
Properties and simulationType I errorengine, stats41515–
Properties and simulationWhat next (POST /api/next)engine2191915.0
RobustnessConstant datastats12727–
RobustnessDegenerate fitsengine11010–
RobustnessExtreme scalesengine, stats24949–
RobustnessGrowth curves (OD600)integrations-py144–
RobustnessInput validationstats11717–
RobustnessInvalid requestsengine11212–
RobustnessLarge nengine, stats21414–
RobustnessLarge tablesstats166–
RobustnessMissing valuesstats11717–
RobustnessNon-finite inputengine166–
RobustnessSeparationstats177–
RobustnessSingular designsstats155–
RobustnessStatistics API sweepengine122–
RobustnessTiesstats199–
RobustnessToo few observationsstats11414–
RobustnessZero cellsstats177–

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).

problemdifficultystart 1: parameters / SDs / residual SD / RSSstart 2HTTP binary64, starts 1 / 2: parameters
Misra1alower11.0 / 10.8 / 10.6 / 10.511.0 / 10.8 / 10.6 / 10.511.0 / 11.0
Chwirut2lower8.9 / 9.3 / 10.9 / 11.08.6 / 9.0 / 10.9 / 11.08.9 / 8.6
Chwirut1lower9.7 / 10.0 / 10.9 / 11.010.0 / 10.3 / 10.9 / 11.09.7 / 10.0
Lanczos3lower10.5 / 11.0 / 11.0 / 10.610.6 / 10.7 / 11.0 / 10.610.5 / 10.6
Gauss1lower10.6 / 10.6 / 11.0 / 11.010.6 / 10.6 / 11.0 / 11.010.6 / 10.6
Gauss2lower10.0 / 9.9 / 10.7 / 10.69.9 / 9.9 / 10.7 / 10.610.0 / 9.9
DanWoodlower11.0 / 11.0 / 11.0 / 11.08.7 / 8.8 / 11.0 / 11.011.0 / 8.7
Misra1blower9.5 / 9.3 / 11.0 / 11.011.0 / 10.8 / 11.0 / 11.09.5 / 11.0
Kirby2average8.5 / 8.9 / 10.8 / 11.010.0 / 10.4 / 10.8 / 11.08.5 / 10.0
Hahn1average7.5 / 8.3 / 11.0 / 10.610.4 / 10.4 / 11.0 / 10.67.5 / 10.4
Nelsonaverage8.0 / 8.0 / 11.0 / 10.98.3 / 8.4 / 11.0 / 10.98.0 / 8.3
MGH17average8.3 / 7.8 / 11.0 / 11.010.9 / 10.6 / 11.0 / 11.08.3 / 10.9
Lanczos1average10.6 / 10.6 / 11.0 / 10.810.6 / 10.6 / 11.0 / 10.810.6 / 10.6
Lanczos2average10.4 / 10.8 / 10.7 / 11.010.4 / 10.8 / 10.7 / 11.010.4 / 10.4
Gauss3average9.2 / 8.6 / 10.8 / 11.09.5 / 9.3 / 10.8 / 11.09.2 / 9.5
Misra1caverage10.6 / 10.6 / 11.0 / 11.010.8 / 10.6 / 11.0 / 11.010.6 / 10.8
Misra1daverage9.4 / 9.2 / 11.0 / 11.011.0 / 11.0 / 11.0 / 11.09.4 / 11.0
Roszman1average7.2 / 7.8 / 11.0 / 11.07.1 / 7.6 / 11.0 / 11.07.2 / 7.1
ENSOaverage6.8 / 8.0 / 11.0 / 11.06.5 / 7.7 / 11.0 / 11.06.8 / 6.5
MGH09higher7.6 / 7.7 / 11.0 / 11.07.2 / 7.3 / 11.0 / 11.07.6 / 7.2
Thurberhigher8.5 / 7.8 / 10.6 / 11.08.0 / 7.4 / 10.6 / 11.08.5 / 8.0
BoxBODhigher8.0 / 7.9 / 11.0 / 10.49.2 / 9.1 / 11.0 / 10.48.0 / 9.2
Rat42higher11.0 / 10.5 / 10.4 / 11.09.5 / 9.2 / 10.4 / 11.011.0 / 9.5
MGH10higher8.7 / 8.7 / 11.0 / 11.010.9 / 11.0 / 11.0 / 11.08.7 / 10.9
Eckerle4higher9.7 / 9.7 / 11.0 / 10.710.6 / 10.4 / 11.0 / 10.79.7 / 10.6
Rat43higher8.0 / 8.0 / 11.0 / 11.08.4 / 8.4 / 11.0 / 11.08.0 / 8.4
Bennett5higher11.0 / 10.4 / 10.6 / 11.011.0 / 10.4 / 10.6 / 11.011.0 / 11.0

Linear regression (certified to 15 digits): the statistics package (pivoted QR) and the engine's v2 curve fitter.

problemdifficultystats: parameters / SDs / residual SDengine: parameters / SDs / residual SD
Norrislower12.5 / 14.0 / 14.113.6 / 13.9 / 14.0
Pontiuslower13.2 / 13.1 / 13.113.0 / 13.6 / 13.6
NoInt1average14.7 / 15.0 / 15.014.7 / 15.0 / 15.0
NoInt2average15.0 / 15.0 / 15.015.0 / 15.0 / 15.0
Filiphigher7.2 / 7.4 / 8.67.2 / 7.5 / 8.5
Longleyhigher10.9 / 12.2 / 12.211.0 / 12.0 / 12.1
Wampler1higher9.8 / 9.7 / 9.715.0 / 15.0 / 15.0
Wampler2higher13.3 / 14.6 / 14.613.2 / 15.0 / 15.0
Wampler3higher9.6 / 13.7 / 14.510.7 / 13.7 / 14.2
Wampler4higher8.9 / 13.7 / 14.88.9 / 13.6 / 14.8
Wampler5higher6.9 / 13.7 / 14.86.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.

problemdifficultystats packageHTTP API
SiRstvlower13.113.1
SmLs01lower15.015.0
SmLs02lower15.015.0
SmLs03lower15.015.0
AtmWtAgaverage10.210.2
SmLs04average10.110.1
SmLs05average9.99.9
SmLs06average9.99.9
SmLs07higher4.04.0
SmLs08higher3.93.9
SmLs09higher3.93.9
PiDigitslower15.015.0
Lotterylower15.015.0
Lewlower15.015.0
Mavrolower13.113.1
Michelsolower13.813.8
NumAcc1lower15.015.0
NumAcc2average15.015.0
NumAcc3average9.59.5
NumAcc4higher8.38.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.

problemminimum digitspassed
mcmc0113.8True
mcmc0213.8True
mcmc0313.8True
mcmc0413.8True
mcmc0513.8True
mcmc0613.8True

Simulations with a known answer

Small pure functions with known truth, ported from the research laboratories' formulas (not imported):

laboratorytruthdesignnoise
enzyme kineticsv = Vmax·S/(Km+S); Vmax ~ U(0.5, 5) mM/s, Km ~ U(0.3, 5) mMS = 0.1, 0.2, 0.5, 1, 2, 5, 10, 20 mM0, 0.05%, 0.1% (2% as a stress test)
thermal responseΔT = A(1−e^(−t/τ)); A ~ U(5, 40) K, τ ~ U(10, 60) st = 2, 5, 10, 20, 40, 80, 160, 300 s0, 0.05%, 0.1% (2% as a stress test)
drug clearancefirst 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 h0.5%, 1%, 2%
light attenuationexponential 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 cm0.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.

laboratorynoisemax relative error over 500 data setsall converged
enzyme0%Vmax 4.4e-16, Km 6.7e-16yes
enzyme0.05%Vmax 0.15%, Km 0.22%yes
enzyme0.1%Vmax 0.25%, Km 0.38%yes
thermal0%A 6.7e-16, τ 1.2e-15yes
thermal0.05%A 0.12%, τ 0.22%yes
thermal0.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.

laboratorynoisecoverage
enzyme0.05%Vmax 95.6%, Km 95.0%
enzyme0.1%Vmax 92.4%, Km 95.2%
enzyme2%Vmax 94.6%, Km 93.0%
thermal0.05%A 95.2%, τ 95.4%
thermal0.1%A 96.2%, τ 96.0%
thermal2%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:

  1. fit the three supplied points with the two candidate models (exp_decay vs zero_order, or exp_decay vs inverse_square), x_bounds = the safe range, target y_at_x at the query;
  2. measure at the engine's next_measurement.x, refit, measure at the new next_measurement.x (the budget of two);
  3. refit with five points; the decision is preferred and the prediction is prediction.y at 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).

familynoiseright mechanismsuccessstatus decidedright when decidedquery CI covers truth¹median design (x1, x2)
drug clearance0.5%98%98%90%100%96.9%8, 4.25 h
drug clearance1%93%87%79%96.2%96.8%8, 4.27 h
drug clearance2%79%60%61%93.4%92.4%8, 4.27 h
light attenuation0.5%98%98%97%99.0%99.0%10, 4.48 cm
light attenuation1%92%90%87%97.7%95.7%10, 4.48 cm
light attenuation2%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):

noiseright mechanismsuccess (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):

familynoiseright mechanism: engine / oracle / controlsuccess: engine / oracle / control
drug clearance0.5%98 / 98 / 65%98 / 98 / 24%
drug clearance1%93 / 92 / 65%87 / 88 / 20%
drug clearance2%79 / 79 / 64%60 / 57 / 6%
light attenuation0.5%98 / 98 / 57%98 / 98 / 43%
light attenuation1%92 / 92 / 50%90 / 90 / 23%
light attenuation2%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

checkconstructed caseresult
min_points3 points, Michaelis–Menten vs substrate inhibitionfails (needs 6)
confirmationtarget y at x = 6 with no point near 6; then a point at 6.1 addedfails, then passes
residual_patterna straight line fitted to 12 exponential-decay pointsfails (runs test)
extrapolationtarget at x = 500 with data up to 32fails; target at 3 passes
identifiabilityMichaelis–Menten with all substrate far below Kmfails
data_sanitynegative 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; decided with a target proposes the confirmation measurement at the target x; once confirmed, or when the target is outside the range, it switches to narrow_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.

problemdifficultynpstart 1: parameters / SDs / residual SD / RSSstart 2
Misra1alower1429.8 / 9.5 / 10.6 / 10.510.1 / 9.8 / 10.6 / 10.5
Chwirut2lower5437.5 / 7.9 / 10.9 / 11.08.6 / 9.0 / 10.9 / 11.0
Chwirut1lower21438.5 / 8.8 / 10.9 / 11.08.5 / 8.9 / 10.9 / 11.0
Lanczos3lower2466.8 / 6.8 / 11.0 / 10.67.9 / 7.9 / 11.0 / 10.6
Gauss1lower250810.6 / 10.6 / 11.0 / 11.08.6 / 8.4 / 11.0 / 11.0
Gauss2lower250810.0 / 9.9 / 10.7 / 10.69.9 / 9.9 / 10.7 / 10.6
DanWoodlower6211.0 / 11.0 / 11.0 / 11.011.0 / 11.0 / 11.0 / 11.0
Misra1blower14210.9 / 10.9 / 11.0 / 11.09.5 / 9.3 / 11.0 / 11.0
Kirby2average15158.5 / 8.9 / 10.8 / 11.08.0 / 8.3 / 10.8 / 11.0
Hahn1average236710.8 / 10.5 / 11.0 / 10.68.4 / 9.1 / 11.0 / 10.6
Nelsonaverage12839.6 / 9.6 / 11.0 / 10.98.3 / 8.4 / 11.0 / 10.9
MGH17average3358.1 / 7.7 / 11.0 / 11.08.1 / 7.7 / 11.0 / 11.0
Lanczos1average24610.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) ‡
Lanczos2average2468.4 / 8.4 / 10.5 / 10.010.4 / 10.4 / 11.0 / 10.2
Gauss3average25089.2 / 8.6 / 10.8 / 11.09.6 / 9.3 / 10.8 / 11.0
Misra1caverage1428.4 / 8.2 / 11.0 / 11.010.8 / 10.6 / 11.0 / 11.0
Misra1daverage14211.0 / 10.8 / 11.0 / 11.011.0 / 11.0 / 11.0 / 11.0
Roszman1average2548.8 / 9.3 / 11.0 / 11.08.6 / 9.1 / 11.0 / 11.0
ENSOaverage16896.8 / 8.0 / 11.0 / 11.06.5 / 7.7 / 11.0 / 11.0
MGH09higher1147.3 / 7.4 / 11.0 / 11.08.3 / 8.4 / 11.0 / 11.0
Thurberhigher3777.7 / 7.0 / 10.6 / 11.07.5 / 6.8 / 10.6 / 11.0
BoxBODhigher629.3 / 9.3 / 11.0 / 10.49.2 / 9.1 / 11.0 / 10.4
Rat42higher9311.0 / 10.5 / 10.4 / 11.09.6 / 9.2 / 10.4 / 11.0
MGH10higher1638.6 / 8.7 / 11.0 / 11.09.0 / 9.1 / 11.0 / 11.0
Eckerle4higher3539.7 / 9.7 / 11.0 / 10.79.6 / 9.6 / 11.0 / 10.7
Rat43higher1548.8 / 8.8 / 11.0 / 11.08.4 / 8.4 / 11.0 / 11.0
Bennett5higher154310.4 / 10.2 / 10.6 / 11.010.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.

problemdifficultyparametersSDsresidual SDR²parameters over HTTP (binary64)stats package, parameters
Norrislower13.613.914.015.013.612.3
Pontiuslower12.812.812.815.012.812.5
NoInt1average14.715.015.015.0¹14.714.7
NoInt2average15.015.015.015.0¹15.015.0
Filiphigher7.27.48.710.97.27.6
Longleyhigher11.712.513.815.011.710.8
Wampler1higher15.015.015.015.015.09.4
Wampler2higher15.015.015.015.013.212.8
Wampler3higher10.213.614.115.010.29.5
Wampler4higher8.813.514.815.08.88.8
Wampler5higher6.813.514.813.76.86.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.

problemlibrary equationstart 1: parameters / SDs / RSSstart 2automatic initial values
Misra1aone-phase association, Y0 = 010.3 / 10.0 / 10.511.0 / 10.8 / 10.511.0 / 10.8 / 10.5
BoxBODone-phase association, Y0 = 08.3 / 8.3 / 10.49.2 / 9.2 / 10.48.4 / 8.3 / 10.4
DanWoodpower law11.0 / 11.0 / 11.09.1 / 9.2 / 11.011.0 / 11.0 / 11.0
Eckerle4Gaussianflagged, see below9.5 / 9.5 / 10.79.9 / 9.9 / 10.7
Rat42logistic growth11.0 / 10.6 / 11.08.6 / 8.2 / 11.010.4 / 10.1 / 11.0
MGH17two-phase decayflagged, see below8.6 / 8.5 / 11.09.1 / 9.0 / 11.0
Lanczos3three-phase decay, plateau 07.6 / 7.6 / 10.58.6 / 8.7 / 10.69.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 converged check fails with severity error and 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.

IDdatamodelR printsengine
F-03aPuromycin, treatedMichaelis–MentenVmax 212.7 (SE 6.947), Km 0.06412 (SE 0.008281), residual SE 10.93 on 10 df212.684 (6.9472), 0.0641213 (0.0082809), 10.9337 on 10 df
F-03bPuromycin, untreatedMichaelis–Menten160.3 (6.480), 0.04771 (0.007782), residual SE 9.773160.280 (6.4802), 0.0477082 (0.0077819), 9.77300
F-01cDNase run 1, X = ln(conc)logistic (SSlogis)Asym 2.3452 (SE 0.078154), xmid 1.4831, scal 1.04152.345179 (0.0781538), 1.483089, 1.041455; three_pl_log: LogEC50 0.644098, HillSlope 0.960195 = 1/1.041455
F-05fDNase run 1, X = ln(conc)Gompertz (SSgompertz)Asym 4.60333, b2 2.27134, b3 0.716474.60333, 2.271338, 0.716466
F-05eIndometh, subject 1biexponential (SSbiexp)A1 2.0293, lrc1 0.5794, A2 0.1915, lrc2 −1.78782.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-05gLoblolly, seed 329asymptotic (SSasymp)Asym 94.1282, R0 −8.2508, lrc −3.217694.12821, −8.250753, −3.217578; exponential_plateau: YM 94.12821, Y0 −8.250753, K 0.040052
F-01bChickWeight, chick 1four-parameter logistic (SSfpl)A 27.453, B 348.971, xmid 19.391, scal 6.673boltzmann_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 nls stops 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).

datamodelR printsengine
Theoph subject 1SSfollKe −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 4SSfol−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 6SSweibull (+ library weibull_growth)158.501204, 110.997081, −5.993421, 2.646141; SEs 1.1769, 2.6330, 0.3733, 0.1613; 2.061158.50119, 110.99706, −5.993425, 2.646143; SEs 1.1769, 2.633, 0.37329, 0.16129; 2.0605
CO2 plant Qn1SSasympOff (+ one_phase_association)38.139782, −4.380647, 51.223238; SEs 0.9164, 0.2042, 11.6698; 1.66338.13978, −4.380646, 51.22328; SEs 0.91639, 0.20415, 11.670; 1.6626
CO2, all 12 plantsSSasymp36 coefficients, 3 digitsall 36 agree
BODSSasympOrig19.14258, −0.63282; SEs 2.496, 0.382; RSS 25.99019.14258, −0.632821; SEs 2.4959, 0.38239; RSS 25.9903
Chick 1, Loblolly 329, Indometh 1, DNase 1SSfpl, SSasymp, SSbiexp, SSgompertz, SSlogisparameters, SEs and residual SEall to R's printed digits, e.g. SSlogis SEs 0.078154, 0.081353, 0.032271
Puromycin, treated and untreatedSSmicmen (+ michaelis_menten)212.7 (6.947), 0.06412 (0.008281), 10.93; 160.3 (6.480), 0.04771 (0.007782), 9.773212.6837 (6.9472), 0.0641213 (0.0082809), 10.934; 160.280 (6.4802), 0.0477082 (0.0077819), 9.7730
MASS wtlossb0 + b1·2^(−t/th) (+ one_phase_decay)81.37, 102.68, 141.91; RSS 39.2481.3738, 102.684, 141.910; 39.2447
Orange (35 rows)logistic192.69 (20.244), 728.76 (107.299), 353.53 (81.472)192.688 (20.244), 728.756 (107.298), 353.534 (81.472)
nlstools O2Kchange-point exponentialt intervals 333.54–379.98, 1587.16–1674.61, 1.03–1.34; correlations 0.0791, 0.1995, 0.7555333.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.

datatestreferenceengine
DNase 1, weights 8…1SD weighting, and R's residual form2.3350 (0.0966), 1.4731 (0.0947), 1.0385 (0.0304); 0.03552.335008 (0.096635), 1.473077 (0.094681), 1.038506 (0.030444); 0.035546
Puromycin treatedR's weighted.MM (typed as its residual form)Vm 206.83 (9.22), K 0.054611 (0.00798); 1.21206.8348 (9.2250), 0.0546112 (0.0079786); 1.2082
DNase 1, weightedprofile 95% intervals vs R confint2.14936–2.5724, 1.28535–1.6966, 0.97526–1.10682.149311–2.572404, 1.285328–1.696629, 0.975262–1.106819
DNase 1, weightedF test of scal = 1F 1.68, P 0.221.6798, 0.2175
DNase 1 (an ELISA)four_pl_log vs three_pl_log4PL −0.007897, 2.377239, 1.507403, 1.062579; F 0.2098, P 0.6551identical 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).

datamodeldrc printsengine
ryegrass (Ritz & Streibig 2005)LL.4b 2.98224, c 0.48141, d 7.79296, e 3.05796; s² 0.2700107; lack of fit F 0.2411, P 0.86652.982229, 0.481410, 7.792962, 3.057955; 0.2700107; 0.24106, 0.86648
ryegrass (Ritz et al. 2015)LL.3, with EDs2.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).

datamodelreference printsengine
S.alba (drc, 2015)two herbicides, lower and upper limits sharedb 5.046141 / 2.390218, c 0.716559, d 3.854861, e 28.632355 / 66.890545; RSE 0.3705151; F 41.8995.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 parameterss² 0.005406425; lack of fit F 0.8841; ED10/ED50/ED900.0054064252; 0.88407; all within 0.001 SE
Puromycin, 2 curves (drc, 2005)pooled variances² 108.1608108.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 df23.45408 (0.79623) … 0.79691 (0.12657); 1.1149
muscle, a ≤ 35 (R port)bounded global fit4 strips at 35.000; th 0.614the same four at the bound; 0.6137
muscle, log scale (MASS)beta and rho sharedrho 0.07776401, beta −2.96015460; RSS 1.0450.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).

dataquestioninvestr printsengine
crystaltime for a mean weight of 8 g, inverted confidence band15.8882 (14.6590, 17.1596)15.88820 (14.65896, 17.15963)
arsenicreading of 3.02.9314; Wald SE 0.1929 [2.6040, 3.2589]2.931449; 0.192934 [2.60399, 3.25891], from the engine's covariance
nasturtium bioassaythree readings (309, 296, 419)2.2639; Wald SE 0.28470192.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

casesourcecheckedchecks
pressure vs temperature, straight lineNIST/SEMATECH e-Handbook §2.5.1–2.5.2 (pmd511, pmd512, pmd521) and MODEL-4_4_4.DATfit, SEs, lack of fit, confidence and prediction limits at X, calibration of new readings36
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 limits32
crystal regulationinvestr / Graybill & Iyer (1994)regulation interval4
arsenic calibrationinvestr / Graybill & Iyer (1994)calibration estimate; published limits checked on the engine's prediction band3

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.

IDtestresulttolerance
F-12Puromycin, 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.8911e-5
F-13aKm 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 model1e-4
F-13cAICc and Akaike weights by hand from SS, n and K = p + 1identical1e-12
F-09a"fit the means" vs the row means fitted as pointsidentical1e-10
F-09bmean, SD and n vs the raw duplicates, equal and SD weightsparameters identical (difference 0), SEs 4e-16 relative, same SS and df1e-8
F-15breplicates (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 calculation1e-6
F-10a1/Y² weights from the fitted curve vs an independent IRLS loop with curve_fitVmax 202.5399, Km 0.0507427 after 9 reweighting rounds; largest relative difference 2.2e-91e-6
F-10bweights from the data (1/Y², 1/Y, Poisson), 1/X², 1/Y^K vs weighted curve_fitequal1e-6
F-11a4PL with Bottom fixed at 0 vs the 3-parameter logisticequal1e-8
F-11bupper bound 0.05 below Km's optimum 0.064Km = 0.05, at_bound, hit_constraint fails, CI unavailable, df 11exact
F-14cconfidence and prediction bands vs closed form f ± t·√(gCgᵀ) and f ± t·√(gCgᵀ + s²)equal1e-9
F-14dEC50 interval vs 10^(LogEC50 profile interval)equal (method: "transformed")1e-9
F-14profile interval ends lie on the F threshold (re-optimised RSS)equal1e-6
F-15d4PL on data without a lower plateauBottom identified: false, identifiability check failsbehaviour
F-15fmethod: "initial_values" draws the curve at the starting valuesequal1e-12
F-06aone-site specific binding vs Michaelis–Menten on the same dataequal1e-8
F-06cfit-Ki vs fit-logIC50 with Cheng–PrusoffLogKi = LogIC50 − log10(1 + [hot]/Kd), same SS1e-10
F-03ckcat vs Vmax/[E]equal1e-9
F-02aX from Y for 10 responses on a 4PL standard curve vs the closed-form inverseequal1e-9
F-02binterpolated X's CI vs where the delta-method band crosses Y, recomputed with an analytic gradient and Brent's methodequal1e-6
F-02ca response above the top standard; responses beyond each asymptoteextrapolated with no CI; x: null, outside_curve, with a reasonbehaviour
F-02edilution factors 10, 2.5, 1concentration and CI exactly × dilutionexact
L1substrate inhibition on data without inhibitionKi interval open_upper from 789.5 (v2) or 43.49 (v1 page data), never a huge number; identified: falsebehaviour

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 mechanismlowest AICc of the fourF/AICc: best 3-parameter mechanism by AICc, then F test against the nested mixed model (α = 0.05)
competitive171/200 (85.5%)182/200 (91.0%)
noncompetitive174/200 (87.0%)189/200 (94.5%)
uncompetitive195/200 (97.5%)198/200 (99.0%)
mixed200/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 status degenerate, 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:

intervalVmaxKm
profile likelihood (default)94.2%94.6%
Wald94.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 ExpressionError with 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.popen and subprocess.Popen are 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.

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:

featurecasesreference
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_glmR 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_rlmMASS rlm printed stackloss coefficients; statsmodels RLM
Absolute EC50/IC50 equationscurves_absolute_ec50_identityclosed-form inversion of the same 4PL fit
LOWESS and spline standard curvescurves_smooth_lowess_splinestatsmodels lowess, SciPy CubicSpline
Transforms, normalise, baseline, concentrations, linearising plotsfour 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_scipythe 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):

analysesvalidation modulesmain 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 comparisonscases_factorial_depth.py, cases_rm_comparisons.pyR 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_sizecases_effect_sizes.pyLakens (2013) worked examples with their 90% CIs; noncentral F and χ² distributions written as series in the test
TOST (equivalence_test)cases_equivalence.pythe TOSTER vignette (Welch and paired); statsmodels ttost_ind, ttost_paired
frequency_distribution, QQ datacases_frequency_qq.pyNIST PiDigits (certified, exact counts); R ppoints (stats-Ex)
multiple_t_testscases_multiple_t.pystatsmodels multipletests (including fdr_tsbky); SciPy Welch
Chi-square for trend, Cohen's kappa, binomial testcases_contingency_extra.pyR prop.trend.test, binom.test (stats-Ex); statsmodels cohens_kappa
Dunnett T3, Tamhane T2, two-stage BKY, letters, linear trendcases_multcomp_extra.pyadaptive 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.pyR influence.measures and lm.influence on LifeCycleSavings (stats-Ex; 309 checks); statsmodels OLSInfluence
Deming and Passing–Bablokcases_method_comparison.pymcr'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 recoverycases_method_validation.pySAS 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 uniformitycases_assay.pythe published Z′, Z and SSMD definitions (Zhang et al. 1999; Zhang 2007) as closed forms; statsmodels and SciPy
Hierarchical and k-means clusteringcases_clustering.pyR hclust, cutree and cophenetic on USArrests (stats-Ex); a naive Lance–Williams algorithm; exhaustive k-means optima; Datanovia's k-means example
Partial correlationcases_partial_correlation.pythe 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 survivalcases_power_more.pypwr.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

testreferenceconventions matchedagreementresult
Hosmer–LemeshowResourceSelection::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, documentedC, df and P to 15 digits (Pima.tr) and 9 digits (birthwt, limited by the two logistic fits)pass
Test of proportional hazardssurvival::cox.zph(transform = "rank", terms = FALSE) on veteran (Efron and Breslow ties), lung and ovarianthe 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 analysisparan (Horn 1965) and psych::fa.parallel, 95th percentile, quantile type 7eigenvalues of the correlation matrix of N × P standard normal data; retained = leading components above their thresholds; ours seeds NumPy with 20061021fed 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 threepass

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.

intervalbeforenowwhy
Spearman's ρ, Kendall's τ-bFisher 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 agreementBland & 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 testpooled-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 d70.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):

copulan = 10n = 20n = 30n = 50n = 100
Gaussian, r = 095.8%95.9%95.9%95.5%95.0%
Gaussian, r = 0.595.3%95.2%95.5%95.3%95.0%
Gaussian, r = 0.996.9%96.0%95.8%95.0%94.8%
t (3 df), r = 0.594.7%94.6%95.2%95.0%95.0%
t (3 df), r = 0.994.5%94.7%94.6%93.3%93.6%
Clayton, θ = 195.0%95.4%95.2%95.1%95.2%
Clayton, θ = 495.8%94.8%94.9%94.5%95.0%

Kendall (jackknife Fisher z):

copulan = 10n = 20n = 30n = 50n = 100
Gaussian, r = 096.1%95.3%95.5%95.2%94.8%
Gaussian, r = 0.596.8%95.5%95.2%95.2%94.8%
Gaussian, r = 0.998.5%97.4%96.7%95.5%95.1%
t (3 df), r = 0.596.5%95.0%95.3%95.1%95.0%
t (3 df), r = 0.998.3%96.3%95.9%94.5%94.4%
Clayton, θ = 196.7%95.7%95.0%95.1%95.0%
Clayton, θ = 498.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):

differencesnupper limitlower limit
normal5 / 10 / 20 / 50 / 20095.1 / 95.0 / 94.7 / 94.7 / 95.2%95.2 / 94.8 / 94.7 / 95.2 / 95.0%
normal, 1999 approximation5 / 10 / 20 / 50 / 20092.0 / 93.5 / 93.6 / 94.5 / 95.0%91.8 / 93.3 / 93.7 / 94.8 / 94.8%
t, 5 df20 / 10087.5 / 83.4%87.3 / 83.6%
gamma, shape 4 (skewed)20 / 10082.8 / 82.8%97.8 / 97.3%
uniform20 / 10098.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 δ):

nSD ratioδ = 0δ = 1previous interval, δ = 0 / 1
10 + 101 / 396.0 / 95.3%95.8 / 95.8%95.2 / 94.7%, 93.9 / 93.7%
30 + 301 / 395.4 / 95.2%95.3 / 95.0%95.1 / 94.8%, 94.8 / 93.7%
10 + 301 / 395.2 / 95.5%95.1 / 95.0%95.0 / 94.8%, 99.6 / 99.3%
30 + 101 / 394.9 / 94.7%94.9 / 95.3%95.2 / 94.9%, 79.1 / 79.8%
8 + 401 / 395.0 / 95.3%94.1 / 95.3%95.2 / 94.7%, 100.0 / 99.8%
40 + 81 / 394.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)nRSS, engine = nlsLMparameters, SEs, EC50, fitted valuesdrc's default LL.5 fit
ryegrass245.27704727066 (12 digits)≥ 7.4 digitsRSS 5.27704740 (stops short)
S.capricornutum (5PL beats 4PL, P = 0.016)18524.315502195≥ 6.3 digitsRSS 524.7018 (0.07% higher; its ED50 is 1.7% off)
algae14153.146043359≥ 6.3 digitsRSS 153.14631
lepidium4214.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.

referencecaseagreement
investr (R): inversion with predFit on an nlsLM 5PL fit of algae, one reading and a triplicate, curve and pooled variancecalibration_interval_r_5pl_algaeends to 7.2+ digits
the same on a 4PL fit of ryegrass, one reading and a duplicatecalibration_interval_r_4pl_ryegrass8.8+ digits
investr's published arsenic interval (one reading, 90%) and calibrate() with three readings (pooled)calibration_interval_investr_arsenicpublished 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_nasturtiumrecomputed 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 curvereadingscalibration interval at x0 = 2 / 10 / 50confidence-band interval x_ci
4PL, 8 standards in duplicate, SD 0.04195.1 / 95.3 / 95.0%63.7 / 68.4 / 62.1%
4PL, 8 standards in duplicate, SD 0.04395.1 / 95.2 / 94.8%81.5 / 83.9 / 80.4%
5PL (S = 0.5), 10 standards in triplicate, SD 0.04195.2 / 95.1 / 94.7%55.8 / 59.6 / 57.5%
5PL (S = 0.5), 10 standards in triplicate, SD 0.04395.1 / 95.3 / 94.8%75.1 / 78.2 / 77.0%
4PL, 5% CV, relative weighting194.6 / 95.2 / 94.5%63.3 / 66.0 / 53.9%
4PL, 5% CV, relative weighting394.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.

calculatorcandidate modelsparameters / SEsprofile CI endsverdict (engine = R)next measurement (engine = recomputed)bootstrap endschecks
IC50logistic_4p, logistic_3p7.6 / 7.9 digits12.0decided, logistic_4pnarrow, x = 60–50 of 50
EC50logistic_4p, logistic_3p6.9 / 7.912.1decided, logistic_3pnarrow, x = 10.8–50 of 50
Hill equationmichaelis_menten, hill6.5 / 6.512.3decided, hillnarrow, x = 24–36 of 36
Michaelis–Mentenmichaelis_menten, substrate_inhibition5.9 / 5.68.2 (Ki's open upper end matched)decided, michaelis_mentenconfirm, x = 1.44target within 0.2 MC SE39 of 39
Enzyme inhibitionmichaelis_menten, substrate_inhibition6.2 / 6.310.8decided, substrate_inhibitionnarrow, x = 3.41S at max rate and max rate within 1.1 MC SE42 of 42
Half-lifeexp_decay, zero_order8.7 / 9.014.6decided, exp_decayconfirm, x = 19.5target within 1.2 MC SE36 of 36
Exponential decayexp_decay, exp_decay_plateau7.9 / 8.112.1decided, exp_decay_plateaunarrow, x = 24–42 of 42
First-order kineticsfirst_order_rise, linear9.2 / 9.715.0decided, first_order_riseconfirm, x = 22.6target within 1.0 MC SE36 of 36
Doubling time, equal weightingexp_growth, logistic_growth7.6 / 7.212.2ambiguous, logistic_growthdiscriminate, x = 190–40 of 40
Doubling time, relative weightingexp_growth, logistic_growth8.1 / 8.213.3decided, logistic_growthnarrow, x = 192–40 of 40
Logistic growthlogistic_growth, gompertz, exp_growth5.9 / 6.07.3decided, logistic_growthnarrow (target confirmed), x = 4.2target within 1.8 MC SE59 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:

casereferencewhat is checkedchecks
next_two_group_pwrpwr 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 up6 of 6
next_anova_r_pwrR 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–810 of 10
next_correlation_pwrpwr.r.testpairs for r = 0.32 of 2
next_two_proportions_rR power.prop.testp1, p2 read from a 2×2 table; n per group at 0.55 vs 0.504 of 4
next_precision_mean_differenceclosed form, brute forcethe 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's20 of 20
next_slope_designclosed 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 − 110 of 10
next_correlation_widthFisher z, Bonett & Wright (2000)pairs for a CI width of r, Pearson, Spearman and Kendall, four r each12 of 12
next_survival_eventsSchoenfeld (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 covariate6 of 6
next_contingency_effectsclosed 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 conversion7 of 7
next_rank_simulationseeded 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 SD10 of 10
next_status_and_hard_rulesclosed formthe 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 settled9 of 9
next_coefficients_and_rm_effectsclosed 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 n8 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:

outputmin digitstolerance in the test
Thalf, Ka, V_F7.81e-6 relative
their SEs7.51e-6 relative
Wald ends (relative to the larger of the end and the SE: subject 9's Ka end is near 0)7.41e-6 of that scale
profile ends12.51e-9 relative
residual SS14.31e-12 relative
ke, CL_F, AUCinf, Tmax, Cmax, AbsHalfLife7.81e-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".

Back to how every number is checked