Validation

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)

DatasetGroupNIST difficultyWeakest agreement
NumAcc1Summary statisticsLower15 digits
NumAcc4Summary statisticsHigher8 digits (the limit of the stored data)
SmLs03Analysis of varianceLower15 digits
SmLs09Analysis of varianceHigher3 digits (the limit of the stored data)
NorrisLinear regressionLower13 digits
LongleyLinear regressionHigher14 digits
FilipLinear regressionHigher7 digits
Wampler5Linear regressionHigher13 digits
Misra1aNonlinear regressionLower10 digits
ThurberNonlinear regressionHigher10 digits
Rat43Nonlinear regressionHigher10 digits
Significant digits shared with NIST's certified values. The full table of all 58 datasets is in the accuracy statement of each release.

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
Fifteen digits is the most double-precision arithmetic gives. NumAcc4 and SmLs09 reach the best agreement their stored values allow. BoxBOD and MGH10 are not solved from NIST's first starting point; the values shown are from the second.

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

certifiedtailsreferenceexamplesmeasuredevidenceNIST StRD58 datasetsDistributions16, in 50-digit valuesReference softwareSciPy, statsmodelsWorked examplesMinitab, R, standardsStatistics engine199 proceduresAccuracy statementwritten by the runYour qualificationfor intended use
  • data systems
  • AI
  • people decide and sign
  • connected systems
The dots travel in the direction of the comparison. Each reference is compared with the engine on every release, the run writes the accuracy statement, and the statement goes into the release's validation package. The user still qualifies the software for its intended use.

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

    Compare

    The engine runs every NIST dataset, the distribution grid and each procedure's reference cases.

  2. 2

    Measure

    The agreement of every value is recorded in significant digits, against a stated minimum.

  3. 3

    Write

    The statement is generated from the measurements, dataset by dataset and procedure by procedure.

  4. 4

    Check

    The run fails if any minimum is missed or the statement in the release differs from what was measured.

Every step runs on every change to the software; a failure at any step stops the release.

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

  1. Procedures in the engineall of them199
  2. With numerical comparisonsagainst a named reference184
  3. Listed with the reason15
Procedures in the statistics engine on 2026-11-13. The 15 without numerical comparisons are listed in the statement with the reason.

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

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.

Talk it through with someone who has run a plant

Bring your backlog, your systems map or one investigation that keeps coming back. We will show you that investigation drafted on the operating system, and tell you plainly what we would move and what we would leave alone.

In the first meeting we cover

  • The systems you run today (QMS, MES, LIMS, ERP, CMMS) and which could run on one operating system
  • Where investigations, CAPAs and change assessments slow down, and what AI drafting would change
  • Where to start, and whether a readiness assessment makes sense