Accuracy
On the 94 published test cases, every result matches the reference values from SciPy 1.18.1 and R 4.5.3 to at least 6 significant figures.
On the published reference datasets, Gnosis agrees with R and SciPy to at least 6 significant figures for every analysis listed, and the exceptions are named below.
Every figure below was compared in the run of 30 November 2026, on the engine files research-dist.js 97849bff, research-stats.js 75f9ebe8, statcore.js 887d4960, t-test-calculator.js b52b15b9, chi-square-calculator.js b17b961d, cronbach-alpha-calculator.js e525788a (the first eight characters of each file’s SHA-256, as the site’s addresses carry them). A reproducible report from Gnosis prints the same hashes, so a reader can tell which run its figures belong to.
Against SciPy and statsmodels alone, and in the free calculators, the least agreement is 6 significant figures. 917 figures were compared in 94 cases. Agreement is −log10 of the relative difference, counted to 15, the precision of the numbers themselves; a figure smaller than its check’s absolute floor (a p-value of 10−15, say) is counted as meeting it and marked.
The cases, with every figure, ours and the reference, are here to download: CSV (one row for each figure) and JSON (with the inputs of each case).
Where the agreement is under six significant figures
None: every figure compared agrees to six significant figures or more.
The references
- SciPy 1.18.1, statsmodels 0.15.0 and NumPy 2.5.3, run live each time the tests run. Where neither library has a procedure (Games-Howell, Mauchly’s test, Cronbach’s alpha, KMO, promax), the published formula is written out in NumPy, and the case says so.
- R 4.5.3 (base R, with jsonlite), its figures written once by R and kept with the tests.
Gnosis against SciPy and statsmodels
research-stats-test.mjs: data sets made from fixed seeds (normal, skewed, tied, small, with missing values), run through SciPy and statsmodels on every run. 56 cases.
| Case | Reference | Figures | Tolerance | Least agreement, significant figures |
|---|---|---|---|---|
| describe A | numpy, scipy.stats.skew/kurtosis(bias=False) | 11 | 10−6 | 15 or more |
| describe B | numpy, scipy.stats.skew/kurtosis(bias=False) | 11 | 10−6 | 14.7 |
| describe C | numpy, scipy.stats.skew/kurtosis(bias=False) | 11 | 10−6 | 15 or more |
| explore A | numpy.percentile(method='weibull'), scipy.stats.shapiro, scipy.stats.t.interval | 11 | 10−6 | 15 or more |
| explore B | numpy.percentile(method='weibull'), scipy.stats.shapiro, scipy.stats.t.interval | 11 | 10−6 | 13.1 |
| trimmed mean, n = 40 | scipy.stats.trim_mean | 1 | 10−6 | 14.9 |
| Shapiro-Wilk, n = 3 | scipy.stats.shapiro | 2 | 10−6 | 14.2 |
| Shapiro-Wilk, n = 7 | scipy.stats.shapiro | 2 | 10−6 | 15 or more |
| Shapiro-Wilk, n = 11 | scipy.stats.shapiro | 2 | 10−6 | 14.7 |
| Shapiro-Wilk, n = 25 | scipy.stats.shapiro | 2 | 10−6 | 13.9 |
| Shapiro-Wilk, n = 200 | scipy.stats.shapiro | 2 | 10−6 | 12.6 |
| crosstab 2 x 2 | scipy.stats.chi2_contingency, fisher_exact, contingency.association; linear-by-linear as (N-1)r² with scipy.stats.pearsonr | 14 | 10−6 | 13.9 |
| crosstab 2 x 2 small | scipy.stats.chi2_contingency, fisher_exact, contingency.association; linear-by-linear as (N-1)r² with scipy.stats.pearsonr | 14 | 10−6 | 14.0 |
| crosstab 3 x 4 | scipy.stats.chi2_contingency, fisher_exact, contingency.association; linear-by-linear as (N-1)r² with scipy.stats.pearsonr | 9 | 10−6 | 14.5 |
| one-sample t A | scipy.stats.ttest_1samp | 6 | 10−6 | 15.0 |
| one-sample t B | scipy.stats.ttest_1samp | 6 | 10−6 | 12.8 |
| one-sample t C | scipy.stats.ttest_1samp | 6 | 10−6 | 14.3 |
| independent t A | scipy.stats.ttest_ind (equal_var True and False), scipy.stats.levene, centred on the mean | 13 | 10−6 | 14.1 |
| independent t B | scipy.stats.ttest_ind (equal_var True and False), scipy.stats.levene, centred on the mean | 13 | 10−6 | 13.4 |
| independent t C | scipy.stats.ttest_ind (equal_var True and False), scipy.stats.levene, centred on the mean | 13 | 10−6 | 15 or more |
| paired t A | scipy.stats.ttest_rel | 7 | 10−6 | 14.3 |
| paired t C | scipy.stats.ttest_rel | 7 | 10−6 | 14.4 |
| one-way ANOVA A | scipy.stats.f_oneway | 5 | 10−6 | 14.5 |
| Welch’s ANOVA A | statsmodels anova_oneway(use_var='unequal') | 3 | 10−6 | 14.2 |
| Tukey HSD A | scipy.stats.tukey_hsd | 18 | 10−6 | 11.5 |
| Games-Howell A | Games-Howell's formula in NumPy, scipy.stats.studentized_range | 18 | 10−6 | 11.4 |
| one-way ANOVA B | scipy.stats.f_oneway | 5 | 10−6 | 13.4 |
| Welch’s ANOVA B | statsmodels anova_oneway(use_var='unequal') | 3 | 10−6 | 14.0 |
| Tukey HSD B | scipy.stats.tukey_hsd | 36 | 10−6 | 11.0 |
| Games-Howell B | Games-Howell's formula in NumPy, scipy.stats.studentized_range | 36 | 10−6 | 10.5 |
| two-way ANOVA balanced | statsmodels ols + anova_lm(typ=3), y ~ C(a, Sum) * C(b, Sum) | 18 | 10−6 | 13.8 |
| two-way ANOVA unbalanced | statsmodels ols + anova_lm(typ=3), y ~ C(a, Sum) * C(b, Sum) | 18 | 10−6 | 13.3 |
| two-way ANOVA ANCOVA | statsmodels ols + anova_lm(typ=3), y ~ C(a, Sum) * C(b, Sum) + x | 22 | 10−6 | 13.3 |
| repeated-measures ANOVA 4 levels | statsmodels AnovaRM; Mauchly, Greenhouse-Geisser and Huynh-Feldt by their formulas in NumPy; scipy.stats.ttest_rel for the Bonferroni pairs | 12 | 10−6 | 13.6 |
| repeated-measures ANOVA 3 levels | statsmodels AnovaRM; Mauchly, Greenhouse-Geisser and Huynh-Feldt by their formulas in NumPy; scipy.stats.ttest_rel for the Bonferroni pairs | 12 | 10−6 | 14.1 |
| Pearson | scipy.stats.pearsonr | 3 | 10−6 | 14.1 |
| Spearman | scipy.stats.spearmanr | 2 | 10−6 | 14.8 |
| Kendall’s tau-b, tied | scipy.stats.kendalltau(method='asymptotic') | 2 | 10−6 | 15 or more |
| Spearman, tied | scipy.stats.spearmanr | 2 | 10−6 | 14.4 |
| partial correlation | the inverse correlation matrix in NumPy, scipy.stats.t | 3 | 10−6 | 13.9 |
| multiple regression | statsmodels OLS, variance_inflation_factor, durbin_watson; betas from OLS on z-scores | 37 | 10−6 | 13.3 |
| binary logistic regression | statsmodels Logit (Wald chi-square as z²) | 21 | 10−6 | 8.3 |
| Mann-Whitney A | scipy.stats.mannwhitneyu(use_continuity=False, method='asymptotic') | 2 | 10−6 | 15 or more |
| Mann-Whitney C | scipy.stats.mannwhitneyu(use_continuity=False, method='asymptotic') | 2 | 10−6 | 15 or more |
| Mann-Whitney exact | scipy.stats.mannwhitneyu(method='exact') | 2 | 10−6 | 15 or more |
| Wilcoxon A | scipy.stats.wilcoxon(zero_method='wilcox', correction=False, method='approx') | 2 | 10−6 | 15 or more |
| Wilcoxon C | scipy.stats.wilcoxon(zero_method='wilcox', correction=False, method='approx') | 2 | 10−6 | 15 or more |
| Kruskal-Wallis A | scipy.stats.kruskal | 2 | 10−6 | 14.7 |
| Kruskal-Wallis B | scipy.stats.kruskal | 2 | 10−6 | 15 or more |
| Kruskal-Wallis C | scipy.stats.kruskal | 2 | 10−6 | 15 or more |
| Friedman, tied | scipy.stats.friedmanchisquare | 2 | 10−6 | 15 or more |
| Friedman A | scipy.stats.friedmanchisquare | 2 | 10−6 | 15 or more |
| Cronbach’s alpha | Cronbach’s formula and the item-total statistics in NumPy | 14 | 10−6 | 14.7 |
| factor analysis, PCA and varimax | NumPy eigh; KMO and Bartlett by their formulas; statsmodels rotate_factors('varimax') on Kaiser-normalised loadings | 52 | 10−6 | 6.1 |
| factor analysis, principal axis and promax | statsmodels Factor(method='pa', smc=True).fit(maxiter=1000, tol=1e-8); promax as R's stats::promax in NumPy | 41 | 10−6 | 7.4 |
| The t, F, chi-square, studentised range and normal distributions and their quantiles, on a grid | scipy.stats | 194 | 10−6 | 8.8 |
Gnosis against R
research-core-test.mjs: R’s own mtcars data set, and its distributions on a grid, figures written by R. 27 cases.
| Case | Reference | Figures | Tolerance | Least agreement, significant figures |
|---|---|---|---|---|
| pnorm: 8 points to 1e-12 | base R | 8 | 10−12 | 15.0 |
| qnorm: 7 points to 1e-9 | base R | 7 | 10−9 | 14.7 |
| pt: 6 points to 1e-9 | base R | 6 | 10−9 | 13.5 |
| qt: 5 points to 1e-9 | base R | 5 | 10−9 | 14.1 |
| pchisq: 5 points to 1e-9 | base R | 5 | 10−9 | 13.6 |
| qchisq: 4 points to 1e-9 | base R | 4 | 10−9 | 14.1 |
| pf: 4 points to 1e-9 | base R | 4 | 10−9 | 14.4 |
| qf: 3 points to 1e-9 | base R | 3 | 10−9 | 14.1 |
| ptukey: 3 points to 0.000001 | base R | 3 | 10−6 | 9.1 |
| qtukey: 2 points to 0.000001 | base R | 2 | 10−6 | 7.4 |
| lgamma: 6 points to 1e-12 | base R | 6 (1 at the floor) | 10−12 | 14.8 |
| descriptives, skewness and kurtosis as SPSS defines them | base R | 5 | 10−9 | 13.3 |
| one-sample t-test, and its interval | base R | 4 | 10−9 | 14.6 |
| Welch’s t-test, df and interval | base R | 5 | 10−9 | 14.5 |
| Student’s t-test | base R | 3 | 10−9 | 14.4 |
| paired t-test | base R | 4 | 10−9 | 14.1 |
| Pearson’s r and p | base R | 2 | 10−9 | 14.2 |
| Spearman’s rho and p (t approximation, as R’s) | base R | 2 | 10−6 | 13.3 |
| linear regression: B, SE, p, R² and F | base R | 11 | 10−9 | 13.8 |
| logistic regression: B, SE and −2 log-likelihood | base R | 7 | 10−6 | 7.3 |
| one-way ANOVA | base R | 2 | 10−9 | 14.4 |
| Welch’s ANOVA | base R | 3 | 10−9 | 14.1 |
| Kruskal-Wallis, ties corrected | base R | 2 | 10−9 | 14.3 |
| Mann-Whitney U (R’s W) and p, ties corrected | base R | 2 | 10−9 | 14.8 |
| Wilcoxon’s signed-rank test | base R | 2 | 10−9 | 15 or more |
| Shapiro-Wilk W and p (Royston’s algorithm, as R’s) | base R | 2 | 10−4 | 14.6 |
| Pearson’s chi-square of cylinders by gears | base R | 2 | 10−9 | 14.4 |
The free calculators against SciPy and NumPy
stats-tools-test.mjs: the T-TEST, CHI-SQUARE and ALPHA pages, driven in a browser, against SciPy and NumPy. 11 cases.
| Case | Reference | Figures | Tolerance | Least agreement, significant figures |
|---|---|---|---|---|
| t-test page: Welch’s t, df, p and CI on unequal groups agree with SciPy | SciPy and NumPy | 5 | 10−9 | 14.7 |
| t-test page: Student’s p, Cohen’s d and Levene’s p agree with SciPy and NumPy | SciPy and NumPy | 3 | 10−9 | 14.5 |
| t-test page: from n, mean and SD it agrees with SciPy’s ttest_ind_from_stats, and leaves out Levene’s test | SciPy and NumPy | 4 | 10−9 | 14.1 |
| t-test page: paired, against SciPy, with a half-empty line left out and counted | SciPy and NumPy | 3 | 10−9 | 14.5 |
| t-test page: one-sample, against SciPy | SciPy and NumPy | 3 | 10−9 | 13.9 |
| chi-square page: chi-square, p, Cramér’s V, Yates and Fisher’s exact p agree with SciPy | SciPy and NumPy | 5 | 10−9 | 14.1 |
| chi-square page: a 4x5 table pasted with spaces, against SciPy, adjusted residuals and all | SciPy and NumPy | 3 | 10−9 | 14.4 |
| chi-square page: goodness of fit against given shares agrees with SciPy | SciPy and NumPy | 2 | 10−9 | 15 or more |
| alpha page: alpha, standardized alpha and item statistics agree with NumPy | SciPy and NumPy | 4 | 10−9 | 15 or more |
| alpha page: reversing it by name gives NumPy’s alpha for the corrected scale | SciPy and NumPy | 2 | 10−9 | 15 or more |
| alpha page: reversing it by number does the same | SciPy and NumPy | 1 | 10−9 | 15 or more |
Run it yourself
The data sets the SciPy cases are worked on are in the JSON, case by case. Put them through SciPy, statsmodels or R and compare; or run the same analysis in Gnosis and save its reproducible report, whose R script runs in base R. When the statistics code changes, these checks are run again before the change ships, and this page is written from that run.