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

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.

CaseReferenceFiguresToleranceLeast agreement, significant figures
describe Anumpy, scipy.stats.skew/kurtosis(bias=False)1110−615 or more
describe Bnumpy, scipy.stats.skew/kurtosis(bias=False)1110−614.7
describe Cnumpy, scipy.stats.skew/kurtosis(bias=False)1110−615 or more
explore Anumpy.percentile(method='weibull'), scipy.stats.shapiro, scipy.stats.t.interval1110−615 or more
explore Bnumpy.percentile(method='weibull'), scipy.stats.shapiro, scipy.stats.t.interval1110−613.1
trimmed mean, n = 40scipy.stats.trim_mean110−614.9
Shapiro-Wilk, n = 3scipy.stats.shapiro210−614.2
Shapiro-Wilk, n = 7scipy.stats.shapiro210−615 or more
Shapiro-Wilk, n = 11scipy.stats.shapiro210−614.7
Shapiro-Wilk, n = 25scipy.stats.shapiro210−613.9
Shapiro-Wilk, n = 200scipy.stats.shapiro210−612.6
crosstab 2 x 2scipy.stats.chi2_contingency, fisher_exact, contingency.association; linear-by-linear as (N-1)r² with scipy.stats.pearsonr1410−613.9
crosstab 2 x 2 smallscipy.stats.chi2_contingency, fisher_exact, contingency.association; linear-by-linear as (N-1)r² with scipy.stats.pearsonr1410−614.0
crosstab 3 x 4scipy.stats.chi2_contingency, fisher_exact, contingency.association; linear-by-linear as (N-1)r² with scipy.stats.pearsonr910−614.5
one-sample t Ascipy.stats.ttest_1samp610−615.0
one-sample t Bscipy.stats.ttest_1samp610−612.8
one-sample t Cscipy.stats.ttest_1samp610−614.3
independent t Ascipy.stats.ttest_ind (equal_var True and False), scipy.stats.levene, centred on the mean1310−614.1
independent t Bscipy.stats.ttest_ind (equal_var True and False), scipy.stats.levene, centred on the mean1310−613.4
independent t Cscipy.stats.ttest_ind (equal_var True and False), scipy.stats.levene, centred on the mean1310−615 or more
paired t Ascipy.stats.ttest_rel710−614.3
paired t Cscipy.stats.ttest_rel710−614.4
one-way ANOVA Ascipy.stats.f_oneway510−614.5
Welch’s ANOVA Astatsmodels anova_oneway(use_var='unequal')310−614.2
Tukey HSD Ascipy.stats.tukey_hsd1810−611.5
Games-Howell AGames-Howell's formula in NumPy, scipy.stats.studentized_range1810−611.4
one-way ANOVA Bscipy.stats.f_oneway510−613.4
Welch’s ANOVA Bstatsmodels anova_oneway(use_var='unequal')310−614.0
Tukey HSD Bscipy.stats.tukey_hsd3610−611.0
Games-Howell BGames-Howell's formula in NumPy, scipy.stats.studentized_range3610−610.5
two-way ANOVA balancedstatsmodels ols + anova_lm(typ=3), y ~ C(a, Sum) * C(b, Sum)1810−613.8
two-way ANOVA unbalancedstatsmodels ols + anova_lm(typ=3), y ~ C(a, Sum) * C(b, Sum)1810−613.3
two-way ANOVA ANCOVAstatsmodels ols + anova_lm(typ=3), y ~ C(a, Sum) * C(b, Sum) + x2210−613.3
repeated-measures ANOVA 4 levelsstatsmodels AnovaRM; Mauchly, Greenhouse-Geisser and Huynh-Feldt by their formulas in NumPy; scipy.stats.ttest_rel for the Bonferroni pairs1210−613.6
repeated-measures ANOVA 3 levelsstatsmodels AnovaRM; Mauchly, Greenhouse-Geisser and Huynh-Feldt by their formulas in NumPy; scipy.stats.ttest_rel for the Bonferroni pairs1210−614.1
Pearsonscipy.stats.pearsonr310−614.1
Spearmanscipy.stats.spearmanr210−614.8
Kendall’s tau-b, tiedscipy.stats.kendalltau(method='asymptotic')210−615 or more
Spearman, tiedscipy.stats.spearmanr210−614.4
partial correlationthe inverse correlation matrix in NumPy, scipy.stats.t310−613.9
multiple regressionstatsmodels OLS, variance_inflation_factor, durbin_watson; betas from OLS on z-scores3710−613.3
binary logistic regressionstatsmodels Logit (Wald chi-square as z²)2110−68.3
Mann-Whitney Ascipy.stats.mannwhitneyu(use_continuity=False, method='asymptotic')210−615 or more
Mann-Whitney Cscipy.stats.mannwhitneyu(use_continuity=False, method='asymptotic')210−615 or more
Mann-Whitney exactscipy.stats.mannwhitneyu(method='exact')210−615 or more
Wilcoxon Ascipy.stats.wilcoxon(zero_method='wilcox', correction=False, method='approx')210−615 or more
Wilcoxon Cscipy.stats.wilcoxon(zero_method='wilcox', correction=False, method='approx')210−615 or more
Kruskal-Wallis Ascipy.stats.kruskal210−614.7
Kruskal-Wallis Bscipy.stats.kruskal210−615 or more
Kruskal-Wallis Cscipy.stats.kruskal210−615 or more
Friedman, tiedscipy.stats.friedmanchisquare210−615 or more
Friedman Ascipy.stats.friedmanchisquare210−615 or more
Cronbach’s alphaCronbach’s formula and the item-total statistics in NumPy1410−614.7
factor analysis, PCA and varimaxNumPy eigh; KMO and Bartlett by their formulas; statsmodels rotate_factors('varimax') on Kaiser-normalised loadings5210−66.1
factor analysis, principal axis and promaxstatsmodels Factor(method='pa', smc=True).fit(maxiter=1000, tol=1e-8); promax as R's stats::promax in NumPy4110−67.4
The t, F, chi-square, studentised range and normal distributions and their quantiles, on a gridscipy.stats19410−68.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.

CaseReferenceFiguresToleranceLeast agreement, significant figures
pnorm: 8 points to 1e-12base R810−1215.0
qnorm: 7 points to 1e-9base R710−914.7
pt: 6 points to 1e-9base R610−913.5
qt: 5 points to 1e-9base R510−914.1
pchisq: 5 points to 1e-9base R510−913.6
qchisq: 4 points to 1e-9base R410−914.1
pf: 4 points to 1e-9base R410−914.4
qf: 3 points to 1e-9base R310−914.1
ptukey: 3 points to 0.000001base R310−69.1
qtukey: 2 points to 0.000001base R210−67.4
lgamma: 6 points to 1e-12base R6 (1 at the floor)10−1214.8
descriptives, skewness and kurtosis as SPSS defines thembase R510−913.3
one-sample t-test, and its intervalbase R410−914.6
Welch’s t-test, df and intervalbase R510−914.5
Student’s t-testbase R310−914.4
paired t-testbase R410−914.1
Pearson’s r and pbase R210−914.2
Spearman’s rho and p (t approximation, as R’s)base R210−613.3
linear regression: B, SE, p, R² and Fbase R1110−913.8
logistic regression: B, SE and −2 log-likelihoodbase R710−67.3
one-way ANOVAbase R210−914.4
Welch’s ANOVAbase R310−914.1
Kruskal-Wallis, ties correctedbase R210−914.3
Mann-Whitney U (R’s W) and p, ties correctedbase R210−914.8
Wilcoxon’s signed-rank testbase R210−915 or more
Shapiro-Wilk W and p (Royston’s algorithm, as R’s)base R210−414.6
Pearson’s chi-square of cylinders by gearsbase R210−914.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.

CaseReferenceFiguresToleranceLeast agreement, significant figures
t-test page: Welch’s t, df, p and CI on unequal groups agree with SciPySciPy and NumPy510−914.7
t-test page: Student’s p, Cohen’s d and Levene’s p agree with SciPy and NumPySciPy and NumPy310−914.5
t-test page: from n, mean and SD it agrees with SciPy’s ttest_ind_from_stats, and leaves out Levene’s testSciPy and NumPy410−914.1
t-test page: paired, against SciPy, with a half-empty line left out and countedSciPy and NumPy310−914.5
t-test page: one-sample, against SciPySciPy and NumPy310−913.9
chi-square page: chi-square, p, Cramér’s V, Yates and Fisher’s exact p agree with SciPySciPy and NumPy510−914.1
chi-square page: a 4x5 table pasted with spaces, against SciPy, adjusted residuals and allSciPy and NumPy310−914.4
chi-square page: goodness of fit against given shares agrees with SciPySciPy and NumPy210−915 or more
alpha page: alpha, standardized alpha and item statistics agree with NumPySciPy and NumPy410−915 or more
alpha page: reversing it by name gives NumPy’s alpha for the corrected scaleSciPy and NumPy210−915 or more
alpha page: reversing it by number does the sameSciPy and NumPy110−915 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.

Other things you may be looking for