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 | Agree | Both refuse | Differ | Agreement | Worst dev. (× tol.) |
|---|---|---|---|---|---|---|
| anova1 (NIST) | 11 | 11 | 0 | 0 | 100.000% | 0.000 (f) |
| anova1 (R) | 4222 | 3836 | 386 | 0 | 100.000% | 0.983 (mc_p.A-C) |
| anova2 (R) | 2338 | 2313 | 25 | 0 | 100.000% | 0.601 (mc_p.Main effect:Row 2-Row 3) |
| anova3 (R) | 1868 | 1814 | 54 | 0 | 100.000% | 0.985 (mc_p.Row 1:B2C2-Row 3:B1C2) |
| auc (R) | 934 | 934 | 0 | 0 | 100.000% | 0.000 (peak_area.0) |
| baseline (R) | 700 | 700 | 0 | 0 | 100.000% | 0.000 (y.1.0.3) |
| bland_altman (R) | 1401 | 1401 | 0 | 0 | 100.000% | 0.002 (loa_hi) |
| compare_expected (R) | 700 | 700 | 0 | 0 | 100.000% | 0.001 (p_binom) |
| contingency (R) | 2338 | 1892 | 446 | 0 | 100.000% | 0.094 (p) |
| correlation (R) | 1871 | 1871 | 0 | 0 | 100.000% | 0.931 (p.A-B) |
| cox (R) | 1401 | 1387 | 14 | 0 | 100.000% | 0.002 (ci_lo.3) |
| deming (R) | 1401 | 1401 | 0 | 0 | 100.000% | 0.000 (se_intercept.B) |
| descriptive (R) | 1870 | 1870 | 0 | 0 | 100.000% | 0.000 (kurt.C) |
| extract (R) | 467 | 467 | 0 | 0 | 100.000% | 0.000 (y.3.0.6) |
| fraction_total (R) | 700 | 700 | 0 | 0 | 100.000% | 0.004 (ci_lo.0.2) |
| frequency (R) | 934 | 934 | 0 | 0 | 100.000% | 0.000 (val.3.0) |
| hclust (R) | 934 | 934 | 0 | 0 | 100.000% | 0.000 (h.0) |
| interpolate (R) | 1167 | 1165 | 0 | 0 | 100.000% | 0.133 (ci_lo_Bottom.B) |
| kmeans (R) | 700 | 700 | 0 | 0 | 100.000% | 0.000 (dist.Row 2) |
| linear (NIST) | 3 | 3 | 0 | 0 | 100.000% | 0.000 (intercept.A) |
| linear (R) | 2342 | 2342 | 0 | 0 | 100.000% | 0.002 (slopes_p) |
| logistic_simple (R) | 1401 | 1301 | 100 | 0 | 100.000% | 0.001 (lr_chi2.A) |
| mcnemar (R) | 934 | 934 | 0 | 0 | 100.000% | 0.021 (p_exact) |
| multiple_linear (R) | 1868 | 1803 | 65 | 0 | 100.000% | 0.025 (b.4) |
| multiple_logistic (R) | 1401 | 1353 | 48 | 0 | 100.000% | 0.104 (ci_lo.4) |
| multiple_t (R) | 1401 | 1398 | 3 | 0 | 100.000% | 0.478 (p_adj.Gene 15) |
| nested_anova (R) | 1167 | 1167 | 0 | 0 | 100.000% | 0.269 (lrt_p) |
| nested_t (R) | 1167 | 1166 | 1 | 0 | 100.000% | 0.493 (var_within) |
| nonlin (R) | 1868 | 1866 | 0 | 0 | 100.000% | 0.086 (se_Plateau.A) |
| normality (R) | 1868 | 1868 | 0 | 0 | 100.000% | 0.007 (dagostino_p.B) |
| normalize (R) | 700 | 700 | 0 | 0 | 100.000% | 0.000 (y.1.0.0) |
| one_sample (R) | 1869 | 1869 | 0 | 0 | 100.000% | 0.333 (p.B) |
| outliers (R) | 934 | 934 | 0 | 0 | 100.000% | 0.000 (pmin.0) |
| pca (R) | 1401 | 1360 | 41 | 0 | 100.000% | 0.059 (vec.2.2) |
| prune (R) | 467 | 467 | 0 | 0 | 100.000% | 0.000 (y.0.0.0) |
| pstack (R) | 700 | 700 | 0 | 0 | 100.000% | 0.000 (adj.1) |
| roc (R) | 1401 | 1401 | 0 | 0 | 100.000% | 0.999 (youden_cutoff) |
| row_stats (R) | 700 | 700 | 0 | 0 | 100.000% | 0.000 (ci_lo.2) |
| select_transform (R) | 467 | 467 | 0 | 0 | 100.000% | 0.000 (y.3.0.6) |
| smooth (R) | 1167 | 1167 | 0 | 0 | 100.000% | 0.006 (y.0.0.16) |
| survival (R) | 2338 | 2338 | 0 | 0 | 100.000% | 0.233 (pw_padj.A-C) |
| transform (R) | 1401 | 1360 | 41 | 0 | 100.000% | 0.081 (y.2.1.2) |
| transform_conc (R) | 467 | 467 | 0 | 0 | 100.000% | 0.000 (y.0.0.4) |
| transpose (R) | 467 | 467 | 0 | 0 | 100.000% | 0.000 (y.0.0.1) |
| ttest (R) | 4206 | 3673 | 533 | 0 | 100.000% | 0.409 (p) |
| ID | Analysis | Scripts | Values | Check in R | Differ | Agreement |
|---|---|---|---|---|---|---|
| anova1 | One-Way ANOVA | 142 | 4,206 | 20 | 0 | 100.000% |
| anova2 | Two-Way ANOVA | 49 | 1,712 | 51 | 0 | 100.000% |
| anova3 | Three-Way ANOVA | 76 | 6,686 | 0 | 0 | 100.000% |
| auc | Area Under Curve | 44 | 360 | 0 | 0 | 100.000% |
| baseline | Baseline Subtraction and Column Arithmetic | 33 | 859 | 0 | 0 | 100.000% |
| bland_altman | Bland-Altman Agreement | 59 | 649 | 0 | 0 | 100.000% |
| compare_expected | Observed vs. Expected Frequencies | 33 | 281 | 0 | 0 | 100.000% |
| contingency | Contingency Table Tests | 92 | 1,150 | 0 | 0 | 100.000% |
| correlation | Correlation | 72 | 799 | 0 | 0 | 100.000% |
| cox | Cox Proportional Hazards Regression | 65 | 2,859 | 0 | 0 | 100.000% |
| deming | Deming Regression | 56 | 729 | 0 | 0 | 100.000% |
| descriptive | Descriptive Statistics | 78 | 4,273 | 0 | 0 | 100.000% |
| extract | Reshape Table | 22 | 662 | 0 | 0 | 100.000% |
| fraction_total | Share of Total | 33 | 558 | 0 | 0 | 100.000% |
| frequency | Frequency Distribution | 44 | 1,609 | 0 | 0 | 100.000% |
| hclust | Hierarchical Clustering | 44 | 1,153 | 0 | 0 | 100.000% |
| interpolate | Standard Curve Interpolation | 55 | 2,041 | 0 | 0 | 100.000% |
| kmeans | K-means Clustering | 33 | 2,712 | 0 | 0 | 100.000% |
| linear | Simple Linear Regression | 101 | 3,358 | 0 | 0 | 100.000% |
| logistic_simple | Simple Logistic Regression | 59 | 1,384 | 0 | 0 | 100.000% |
| mcnemar | McNemar's Test (Paired Proportions) | 44 | 577 | 0 | 0 | 100.000% |
| monte_carlo | Monte Carlo Simulation | 17 | 1,073 | 0 | 0 | 100.000% |
| multiple_linear | Multiple Linear Regression | 86 | 4,964 | 0 | 0 | 100.000% |
| multiple_logistic | Multiple Logistic Regression | 62 | 2,660 | 0 | 0 | 100.000% |
| multiple_t | Row-by-Row t Tests | 59 | 7,411 | 0 | 0 | 100.000% |
| nested_anova | Nested One-way ANOVA | 55 | 434 | 0 | 0 | 100.000% |
| nested_t | Nested t Test | 55 | 572 | 0 | 0 | 100.000% |
| nonlin | Nonlinear Regression | 88 | 2,597 | 0 | 0 | 100.000% |
| normality | Normality Tests | 79 | 1,241 | 0 | 0 | 100.000% |
| normalize | Normalize | 33 | 864 | 0 | 0 | 100.000% |
| one_sample | One-Sample Tests | 80 | 845 | 0 | 0 | 100.000% |
| outliers | Outlier Detection | 44 | 421 | 0 | 0 | 100.000% |
| pca | Principal Component Analysis (PCA) | 56 | 3,063 | 0 | 0 | 100.000% |
| plot_function | Function Curve | 44 | 3,360 | 0 | 0 | 100.000% |
| prune | Thin Out Rows | 22 | 403 | 0 | 0 | 100.000% |
| pstack | Multiple P Values (FDR) | 33 | 689 | 0 | 0 | 100.000% |
| roc | ROC Curve | 60 | 4,383 | 0 | 0 | 100.000% |
| row_stats | Per-Row Summary | 33 | 683 | 0 | 0 | 100.000% |
| select_transform | Filter Rows and Compute Variables | 22 | 1,096 | 0 | 0 | 100.000% |
| sim_column | Random Groups | 22 | 199 | 0 | 0 | 100.000% |
| sim_contingency | Random 2×2 Table | 22 | 102 | 0 | 0 | 100.000% |
| sim_xy | Random XY Data | 22 | 310 | 0 | 0 | 100.000% |
| smooth | Curve Smoothing, Derivative and Integral | 49 | 1,325 | 0 | 0 | 100.000% |
| spline | Smoothing Curve (Spline, LOWESS) | 43 | 2,635 | 0 | 0 | 100.000% |
| survival | Survival Curves (Kaplan-Meier) | 110 | 4,387 | 0 | 0 | 100.000% |
| transform | Transform | 65 | 1,752 | 0 | 0 | 100.000% |
| transform_conc | Rescale X (Concentrations) | 22 | 431 | 0 | 0 | 100.000% |
| transpose | Transpose Table | 22 | 295 | 0 | 0 | 100.000% |
| ttest | Two-Group Comparisons | 165 | 2,455 | 0 | 0 | 100.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