Validation against R, NIST StRD and Python

Two independent suites check Variance continuously: a differential validation bench against R and certified NIST StRD datasets, and an execution suite running every exported Python (NumPy/SciPy) script.

60,062
R & NIST comparisons
R 4.6.2, 2,702,604 values
0
Discrepancies
100.000% agreement
2,704
Python scripts
Python 3.11.0, NumPy 2.4.6, SciPy 1.17.1
12,644
Frozen CI cases
Checked inside cargo test
Analysis (reference)Cases AgreeBoth refuse DifferAgreement Worst dev. (× tol.)
anova1 (NIST)111100100.000%0.000 (f)
anova1 (R)422238363860100.000%0.983 (mc_p.A-C)
anova2 (R)23382313250100.000%0.601 (mc_p.Main effect:Row 2-Row 3)
anova3 (R)18681814540100.000%0.985 (mc_p.Row 1:B2C2-Row 3:B1C2)
auc (R)93493400100.000%0.000 (peak_area.0)
baseline (R)70070000100.000%0.000 (y.1.0.3)
bland_altman (R)1401140100100.000%0.002 (loa_hi)
compare_expected (R)70070000100.000%0.001 (p_binom)
contingency (R)233818924460100.000%0.094 (p)
correlation (R)1871187100100.000%0.931 (p.A-B)
cox (R)14011387140100.000%0.002 (ci_lo.3)
deming (R)1401140100100.000%0.000 (se_intercept.B)
descriptive (R)1870187000100.000%0.000 (kurt.C)
extract (R)46746700100.000%0.000 (y.3.0.6)
fraction_total (R)70070000100.000%0.004 (ci_lo.0.2)
frequency (R)93493400100.000%0.000 (val.3.0)
hclust (R)93493400100.000%0.000 (h.0)
interpolate (R)1167116500100.000%0.133 (ci_lo_Bottom.B)
kmeans (R)70070000100.000%0.000 (dist.Row 2)
linear (NIST)3300100.000%0.000 (intercept.A)
linear (R)2342234200100.000%0.002 (slopes_p)
logistic_simple (R)140113011000100.000%0.001 (lr_chi2.A)
mcnemar (R)93493400100.000%0.021 (p_exact)
multiple_linear (R)18681803650100.000%0.025 (b.4)
multiple_logistic (R)14011353480100.000%0.104 (ci_lo.4)
multiple_t (R)1401139830100.000%0.478 (p_adj.Gene 15)
nested_anova (R)1167116700100.000%0.269 (lrt_p)
nested_t (R)1167116610100.000%0.493 (var_within)
nonlin (R)1868186600100.000%0.086 (se_Plateau.A)
normality (R)1868186800100.000%0.007 (dagostino_p.B)
normalize (R)70070000100.000%0.000 (y.1.0.0)
one_sample (R)1869186900100.000%0.333 (p.B)
outliers (R)93493400100.000%0.000 (pmin.0)
pca (R)14011360410100.000%0.059 (vec.2.2)
prune (R)46746700100.000%0.000 (y.0.0.0)
pstack (R)70070000100.000%0.000 (adj.1)
roc (R)1401140100100.000%0.999 (youden_cutoff)
row_stats (R)70070000100.000%0.000 (ci_lo.2)
select_transform (R)46746700100.000%0.000 (y.3.0.6)
smooth (R)1167116700100.000%0.006 (y.0.0.16)
survival (R)2338233800100.000%0.233 (pw_padj.A-C)
transform (R)14011360410100.000%0.081 (y.2.1.2)
transform_conc (R)46746700100.000%0.000 (y.0.0.4)
transpose (R)46746700100.000%0.000 (y.0.0.1)
ttest (R)420636735330100.000%0.409 (p)
IDAnalysis ScriptsValues Check in RDiffer Agreement
anova1One-Way ANOVA1424,206200100.000%
anova2Two-Way ANOVA491,712510100.000%
anova3Three-Way ANOVA766,68600100.000%
aucArea Under Curve4436000100.000%
baselineBaseline Subtraction and Column Arithmetic3385900100.000%
bland_altmanBland-Altman Agreement5964900100.000%
compare_expectedObserved vs. Expected Frequencies3328100100.000%
contingencyContingency Table Tests921,15000100.000%
correlationCorrelation7279900100.000%
coxCox Proportional Hazards Regression652,85900100.000%
demingDeming Regression5672900100.000%
descriptiveDescriptive Statistics784,27300100.000%
extractReshape Table2266200100.000%
fraction_totalShare of Total3355800100.000%
frequencyFrequency Distribution441,60900100.000%
hclustHierarchical Clustering441,15300100.000%
interpolateStandard Curve Interpolation552,04100100.000%
kmeansK-means Clustering332,71200100.000%
linearSimple Linear Regression1013,35800100.000%
logistic_simpleSimple Logistic Regression591,38400100.000%
mcnemarMcNemar's Test (Paired Proportions)4457700100.000%
monte_carloMonte Carlo Simulation171,07300100.000%
multiple_linearMultiple Linear Regression864,96400100.000%
multiple_logisticMultiple Logistic Regression622,66000100.000%
multiple_tRow-by-Row t Tests597,41100100.000%
nested_anovaNested One-way ANOVA5543400100.000%
nested_tNested t Test5557200100.000%
nonlinNonlinear Regression882,59700100.000%
normalityNormality Tests791,24100100.000%
normalizeNormalize3386400100.000%
one_sampleOne-Sample Tests8084500100.000%
outliersOutlier Detection4442100100.000%
pcaPrincipal Component Analysis (PCA)563,06300100.000%
plot_functionFunction Curve443,36000100.000%
pruneThin Out Rows2240300100.000%
pstackMultiple P Values (FDR)3368900100.000%
rocROC Curve604,38300100.000%
row_statsPer-Row Summary3368300100.000%
select_transformFilter Rows and Compute Variables221,09600100.000%
sim_columnRandom Groups2219900100.000%
sim_contingencyRandom 2×2 Table2210200100.000%
sim_xyRandom XY Data2231000100.000%
smoothCurve Smoothing, Derivative and Integral491,32500100.000%
splineSmoothing Curve (Spline, LOWESS)432,63500100.000%
survivalSurvival Curves (Kaplan-Meier)1104,38700100.000%
transformTransform651,75200100.000%
transform_concRescale X (Concentrations)2243100100.000%
transposeTranspose Table2229500100.000%
ttestTwo-Group Comparisons1652,45500100.000%

Numerical tolerances

1e-9 relative

Closed-form formulas (means, sums of squares, F/t statistics, exact probabilities).

1e-6 relative

Numerical integration and iterative solvers (studentized range, multivariate t, REML mixed models).

1e-5 relative

Nonlinear regression parameters, standard errors, and profile-likelihood confidence intervals.

63 defects fixed

Tolerances are never loosened. Every defect uncovered by the bench is logged in DISCREPANCIES.md with a regression test.

Full reports in repository : REPORT.md · PYTHON_REPORT.md · DISCREPANCIES.md