How do you know a statistics package gives the right numbers? The QLogix accuracy statement
By QLogix · Published · 5 min read
The short answer
By comparing it with values computed independently, digit by digit, every time it changes. The QLogix statistics engine is run against 58 NIST reference datasets, against distribution values computed in 50-digit arithmetic and against reference software on every release, and the agreement is published as a statement the comparison run writes itself.
- NIST Statistical Reference Datasets run through the engine on every release.
- 58
- Numerical comparisons with reference values, on 2026-11-13.
- 23,100
- Procedures with numerical comparisons; the others are listed with the reason.
- 184 of 199
Key takeaways
- A statistics package is only as trustworthy as the evidence that it computes what it claims. For GMP use, that evidence belongs in the supplier's validation package, not in a sales claim.
- The NIST Statistical Reference Datasets give certified values computed in 500-digit arithmetic for summary statistics, analysis of variance, linear regression and nonlinear regression, graded by difficulty. They are the standard first test of numerical accuracy.
- Agreement is measured in significant digits, the log relative error NIST uses. Fifteen digits is the most that double-precision arithmetic, which all mainstream statistical software uses, can give.
- Some NIST datasets cannot be matched to all certified digits by any double-precision software, because the stored data are already rounded. The honest statement says so and gives the limit the data allow.
- Agreement shows that the software computes what the reference computes. Whether an analysis suits the data and the question remains the analyst's judgement.
Why does the accuracy of statistical software need evidence?
Release decisions, process validation, shelf lives and investigations rest on figures a statistics package computes: a Cpk, a p-value, the time a confidence bound crosses a limit. Under GAMP 5 and FDA's computer software assurance guidance (final, September 2025), the user's validation effort can lean on the supplier's own testing, but only if that testing exists, is described and can be inspected.
For a statistics engine the question is narrow and testable: given these data, does it produce the right numbers, to how many digits, including on the awkward cases where naive formulas lose precision?
What are the NIST Statistical Reference Datasets?
The Statistical Reference Datasets (StRD) are published by the US National Institute of Standards and Technology for exactly this purpose. Each dataset comes with certified values computed in 500-digit arithmetic and a difficulty grade. The four groups cover univariate summary statistics, one-way analysis of variance, linear regression and nonlinear regression.
The hard cases are deliberate. NumAcc4 and SmLs07 to SmLs09 hold values with many constant leading digits, where a standard deviation computed the textbook way loses most of its digits. Longley, Filip and the Wampler problems are ill-conditioned regressions. Many nonlinear problems start far from the solution.
QLogix keeps the dataset files as NIST publishes them and reads the certified values from those files, so nothing is retyped.
How is agreement measured?
As NIST does: the log relative error, minus the base-10 logarithm of the relative difference between the computed and the certified value. It is the number of leading digits the two share. Fifteen is the most double-precision arithmetic gives.
For each dataset the statement gives the weakest agreement over all its certified values, and the minimum the comparison run requires. A run that falls below a minimum fails, and the release does not ship.
NIST StRD: weakest agreement per dataset, a selection (2026-11-13)
| Dataset | Group | NIST difficulty | Weakest agreement |
|---|---|---|---|
| NumAcc1 | Summary statistics | Lower | 15 digits |
| NumAcc4 | Summary statistics | Higher | 8 digits (the limit of the stored data) |
| SmLs03 | Analysis of variance | Lower | 15 digits |
| SmLs09 | Analysis of variance | Higher | 3 digits (the limit of the stored data) |
| Norris | Linear regression | Lower | 13 digits |
| Longley | Linear regression | Higher | 14 digits |
| Filip | Linear regression | Higher | 7 digits |
| Wampler5 | Linear regression | Higher | 13 digits |
| Misra1a | Nonlinear regression | Lower | 10 digits |
| Thurber | Nonlinear regression | Higher | 10 digits |
| Rat43 | Nonlinear regression | Higher | 10 digits |
What about the datasets no software can match exactly?
For NumAcc3, NumAcc4 and SmLs04 to SmLs09 the data, once stored as double-precision numbers, are already rounded in the digits that matter. No double-precision software can recover all the certified digits from them. The comparison run computes, in exact rational arithmetic, the best agreement those stored values allow, and the engine reaches it.
Two nonlinear problems, BoxBOD and MGH10, are not solved from NIST's first starting point, which is far from the solution; from the second they agree to 10 digits. The statement names both and says why. Saying so is part of the evidence: a statement that claims everything is a claim, not evidence.
Agreement on the hardest datasets, in significant digits
- Maximumdouble precision15
- NumAcc48
- SmLs093
- BoxBOD10
- MGH1010
What else is compared besides NIST?
- Probability distributions: the distribution function, the upper tail probability and the quantile of 16 distributions (normal, t, chi-square, F, gamma, beta, binomial, Poisson, Weibull, lognormal, the noncentral t, chi-square and F, the studentized range and others) against values computed in 50-digit arithmetic, out to probabilities of 1e-12 and very large degrees of freedom. Upper tails are computed directly, so a very small p-value keeps its digits.
- Procedures: each analysis against the reference named for it, such as SciPy, statsmodels and scikit-learn at stated versions with the generator scripts kept, the published worked examples of Minitab and R, and the examples of the standards and textbooks. In all, 184 of the engine's 199 procedures have numerical comparisons; the other 15 are listed with the reason.
- Conventions: where packages differ by convention (the divisor of Cpm, Howe's factor for a two-sided normal tolerance interval, how the within-subgroup standard deviation is estimated) the engine follows the convention Minitab documents, so a result can be set beside an existing Minitab report.
What the engine is compared against, and where the result goes
- data systems
- AI
- people decide and sign
- connected systems
Why should the statement be generated, not written?
A document written by hand drifts from the software it describes. The QLogix accuracy statement is written by the comparison run itself, from the comparisons it has just made, and the run fails if the statement in the release no longer matches what it measures. The statement in a validation package therefore describes the engine of that release.
It is part of each release's validation package, beside the automated test evidence and the IQ/OQ protocols, and the statistics OQ includes a step that runs the comparisons and checks the statement in hand.
How a release's accuracy statement is produced
- 1
Compare
The engine runs every NIST dataset, the distribution grid and each procedure's reference cases.
- 2
Measure
The agreement of every value is recorded in significant digits, against a stated minimum.
- 3
Write
The statement is generated from the measurements, dataset by dataset and procedure by procedure.
- 4
Check
The run fails if any minimum is missed or the statement in the release differs from what was measured.
What does the statement not cover?
Agreement with a reference shows that the engine computes what the reference computes. It does not show that a given analysis suits the data or the question; the software supports that judgement with assumption checks and warnings, and the analyst makes it. Python code a user runs inside a study is the user's own computation and is outside the statement. The organization using the software still qualifies it for its intended use, as GAMP 5 and Part 11 expect.
The engine's procedures and their numerical comparisons
- Procedures in the engineall of them199
- With numerical comparisonsagainst a named reference184
- Listed with the reason15
Common questions
Does NIST certify statistical software?
No. NIST publishes reference datasets with certified values; software is compared against them. The comparison and its results are the software supplier's, and QLogix publishes them in each release's accuracy statement.
How many digits of agreement are enough?
It depends on the use. Reported figures such as a Cpk to two decimals or a p-value to three need far fewer digits than the engine reaches on all but the hardest NIST problems. The digits matter more as evidence that the algorithms are numerically sound: a method that loses digits on hard data can be badly wrong on ordinary data with large values.
Do the results match Minitab?
Where packages differ by convention, the engine follows the convention Minitab documents, and Minitab's published worked examples are among the references the procedures are compared with. A side-by-side run of your own analyses against your Minitab reports is still the best check for your use.
Where is the full statement?
In the validation package of each QLogix release, beside the automated test evidence and the IQ/OQ protocols. Clients can request it for the release they use.
Sources
- NIST Statistical Reference Datasets (StRD)
- Federal Register, 24 September 2025: Computer Software Assurance for Production and Quality System Software, final guidance, notice of availability
- McCullough, B. D. Assessing the Reliability of Statistical Software: Part I, The American Statistician 52(4), 1998
This article is general information for quality and regulatory professionals. It is not regulatory or legal advice. Check the source documents for their current status before acting on them.
More from the blog
- Validation · 28 November 2026How to validate an AI use case for automation in GMP manufacturingAn AI use case in GMP manufacturing is validated like any computerised system, for its intended use and in proportion to risk, with three additions that come from the model: acceptance criteria written as measured performance before testing, test data kept independent of the training data, and monitoring after go-live because a model's performance can drift. The risk is set by how much the model's output drives a GMP decision and how serious a wrong decision would be. No GMP text written only for AI was in force in the EU or the United States on 28 November 2026, so the work rests on EU GMP Annex 11 and 21 CFR 211.68, read with draft Annex 22 and FDA's draft credibility framework.
- AI in quality · 19 November 2026Open-weight AI models on your own GPUs: advantages, disadvantages and what to check firstRunning an open-weight model on GPUs you own keeps prompts and documents inside your network, fixes the model version until you decide to change it, and ends the dependence on a supplier's service. In exchange you take on the hardware, the operation, the security of the model file, the licence review and all of the validation evidence, and the model that fits your hardware may not match the strongest hosted ones. It pays for steady, heavy work on data that should not leave. For occasional use and for the hardest tasks a hosted model is usually the better choice, and most companies end up using both.
- AI in quality · 12 November 2026AI in life sciences in 2026: where it is used, what regulators expect and where to startIn 2026 AI is used at every stage of a medicine's life: finding targets and designing molecules, planning and running trials, monitoring processes, drafting investigations and screening safety reports. Regulators use it too, to read what companies submit. The uses that last share one design: a defined context of use, connected data that can be traced, validation in proportion to risk, and a named person who decides. FDA's credibility guidance and the EU's GMP annex on AI are still drafts, the joint FDA and EMA principles are published, and the EU AI Act's high-risk dates have moved to 2027 and 2028.