| Summary | Verified | - scipy.stats.skew(bias=False)
- scipy.stats.kurtosis(bias=False, fisher=True)
- R stats::shapiro.test (Royston 1995, AS R94), cross-checked against scipy.stats.shapiro
- Weighted Mean: exact rational evaluation (fractions.Fraction), cross-checked against numpy.average(weights=) and R stats::weighted.mean after the frequency-weight row filter (w finite and > 0)
- Confidence bounds at the card's level: R stats::t.test(conf.level=) for the mean, R EnvStats::varTest(conf.level=) for the variance (SD = its square roots), cross-checked against base-R qchisq and scipy.stats.t / chi2
|
| Frequencies | Verified | - R foreign::read.spss(use.missings=TRUE) — R's own C reader applying the .sav dictionary's missing declaration — over five variables of Data/GSS2024.sav, the reviewer's own file
- R table() / prop.table() / cumsum() for the counts and all three percentage columns
- R table(x[g == level]) per split cell, each cell's table computed independently, over deliberately unequal cells — so a within-cell denominator cannot be borrowed from the whole file unnoticed
- R chisq.test(table) and chisq.test(table, p = p/sum(p)) for the goodness-of-fit statistic, its df and its p
- R binom.test for the exact two-sided binomial offered at two levels; the SPSS one-tailed convention at p ≠ 0.5 is recorded as a divergence rather than reconciled
|
| Histogram | Verified | - R: ceiling(log2(n)+1), 3.49*sd*n^(-1/3), 2*IQR*n^(-1/3) from its own sd/IQR; nclass.Sturges / nclass.scott / nclass.FD recorded beside them (nclass.scott uses 3.5, not 3.49)
- numpy: the same three rules spelled independently
- the KDE overlay routes through the shared KernelDensityEngine
|
| Heatmap/HexBin | Verified | - bins BOTH axes with the Freedman-Diaconis rule, checked against R nclass.FD and numpy
|
| Mosaic | Verified | - R stats::chisq.test(N, correct=FALSE) — $expected and $residuals, the PEARSON residuals (O-E)/sqrt(E), which is what Stratum reports; $stdres is a different quantity and is recorded alongside for contrast
- scipy.stats.chi2_contingency for the expected counts, with the residuals formed from them independently
|
| Box-Whisker | Verified | - R stats::quantile(type=7) — NOT fivenum/boxplot, which use Tukey's hinges and give different quartiles at some sample sizes
- numpy.quantile (linear == type 7)
- scipy.stats.skew / kurtosis (bias=False)
- R moments::skewness / kurtosis, converted from the biased g1/b2 to the unbiased G1/G2
- McGill-Tukey-Larsen (1978) for the notch, pinned by formula
|
| Violin | Verified | - the density envelope uses the same kernel-density estimator as the Density chart; the inner box statistics are Box-Whisker's, covered there
|
| Density | Verified | - R: 0.9*min(sd, IQR/1.3489795)*n^-0.2 and (4/(3n))^0.2*sd from its own sd/IQR, plus the exact kernel sum mean(dnorm((t-x)/h))/h
- numpy: the same rules and kernel sum spelled independently
- R bw.nrd0 / bw.nrd recorded alongside — they divide by 1.34, not the exact 1.3489795, so they sit 0.67% away once the IQR branch wins
- past the exact-evaluation cap, R and numpy evaluating the definition with NO binning — so the binned and windowed paths are checked against the exact sum over all n values rather than against each other
|
| ECDF | Verified | - R stats::ecdf(x) evaluated at the distinct values and outside both ends
- numpy (x <= t).sum()/n
|
| Correlation | Verified | - R stats::cor.test (pearson / spearman / kendall)
- R factor(levels = order) for ordinal text columns' level positions
- scipy.stats.pearsonr / spearmanr / kendalltau
- Bonett-Wright (2000) for the Spearman interval
|
| One-Way ANOVA | Verified | - scipy.stats.f_oneway
- scipy.stats.kruskal
- eta^2 / omega^2 / epsilon^2 in exact Fraction arithmetic
- pingouin.welch_anova (cross-checked against the definition)
- pingouin.pairwise_gameshowell
- scipy.stats.studentized_range.sf / .ppf
- scipy.stats.levene(center="median" / "mean") for the Levene's Test section, both centring variants
- R dunn.test(method="bonferroni") for Dunn's Test — the pairwise follow-up to Kruskal-Wallis, which scipy does not implement at all. Its p-values are ONE-TAILED and Stratum's are two-sided, so the factor of 2 is asserted per pair; the z and the two-sided p are also re-derived from the definition, and the Kruskal-Wallis statistic the section sits under is cross-checked against scipy.stats.kruskal so a disagreeing ranking cannot pass
- R car::Anova(type = 3 / 2) and stats::anova on an lm under contr.sum for the covariate-adjusted (ANCOVA) F table; emmeans::emmeans and pairs(adjust = bonferroni / sidak / none) for the adjusted means and their comparisons; anova(m, m + factor x covariate) for the homogeneity-of-slopes test
|
| Two-Way ANOVA | Verified | - statsmodels.stats.anova_lm(typ=3 / typ=2 / typ=1) on a sum-coded model (== R car::Anova type III / type II / R aov)
- pooled within-groups SS in exact rational arithmetic
- R aov + car::Anova(type = 2) on the GSS 2018 sparse crossing conrinc ~ degree * relig, and R's QR rank of the sum-coded design for the Type III degrees of freedom that crossing makes inestimable
- R car::Anova(type = 3 / 2) and stats::anova on an lm under contr.sum for the covariate-adjusted (ANCOVA) F table; emmeans::emmeans and pairs(adjust = bonferroni / sidak / none) for the adjusted means and their comparisons; anova(m, m + factor x covariate) for the homogeneity-of-slopes test
|
| MANOVA | Verified | - statsmodels.multivariate.manova.MANOVA.mv_test()
- 50-digit mpmath for Rao's F degrees of freedom
|
| Repeated Measures ANOVA | Verified | - R car::Anova(lm(cbind(cells) ~ between), idata, idesign, type = 3) with contr.sum — the univariate table, Mauchly's W and p, the Greenhouse-Geisser and Huynh-Feldt epsilons and corrected p
- base R anova.mlm(test = "Spherical") and mauchly.test per within effect, its sequential between rows compared only where Type I equals Type III
- the between table on subject means by car::Anova, and pingouin rm_anova / mixed_anova / epsilon / sphericity as a second-language cross-check
|
| Two-Sample | Verified | - scipy.stats.mannwhitneyu
- scipy.stats.wilcoxon
- scipy.stats.ttest_ind
- scipy.stats.norm.sf
- scipy.stats.t.ppf for the 90/95/99% difference-interval bounds
- R effectsize::cohens_d(ci=) and MBESS::ci.smd / ci.sm for the NONCENTRAL-t interval on Cohen's d and Hedges' g, with the expected value from base R uniroot on pt(q, df, ncp) — the algorithm both packages run — and scipy.stats.nct as a third, non-R implementation
- R pt(q, df, ncp) (Lenth 1989, AS 243) and scipy.stats.nct.cdf over a 399-point grid for the noncentral t itself, including the |ncp| > 37.62 range where AS 243 underflows and R is the lane that is wrong
- Hedges (1981) J = Γ(df/2)/(√(df/2)·Γ((df-1)/2)) — the EXACT correction, asserted equal to R effectsize::hedges_g per case and to 60-digit mpmath. It was Hedges & Olkin's (1985) approximation 1 - 3/(4·df - 1); effsize::cohen.d(hedges.correction=TRUE) still uses that and rides along as the lane Stratum deliberately no longer matches
- R t.test(mu=) / wilcox.test(mu=) conventions for the hypothesized difference
- R stats::shapiro.test for the Shapiro-Wilk normality column
- Schuirmann (1987) TOST — both one-sided tails from scipy.stats.t.sf / .cdf, on the same moments as the t-test
- scipy.stats.levene(center="median") for the equal-variance column (Brown-Forsythe), which also decides the pooled / Welch choice under the Auto variance mode
- base R t.test(var.equal=TRUE) and t.test() for the FULL SPSS independent-samples block — both t-tests, fixed and named, printed beside the one in force — with scipy.stats.ttest_ind(equal_var=True/False) as the second lane on each row
|
| Differences | Verified | - R stats::chisq.test(correct=FALSE) with V = sqrt(chi2/(n*(k-1)))
- scipy.stats.chi2_contingency and scipy.stats.contingency.association(method='cramer')
|
| Contingency Table | Verified | - scipy.stats.chi2_contingency(correction=False)
- scipy.stats.chi2.sf
- R chisq.test for Pearson χ², its residuals (O − E)/√E, the adjusted standardized residuals ($stdres) the report prints, and Yates's continuity correction
- R MASS::loglm and vcd::assocstats for the likelihood-ratio G², the contingency coefficient and Cramér's V
- R fisher.test for the two-sided exact p on a 2 × 2
- R psych::phi for the signed 2 × 2 phi; a larger table reports no phi, as vcd::assocstats (NA)
- R epitools::oddsratio.wald / riskratio.wald for the odds ratio and relative risks with 95% Wald intervals; a zero cell is withheld where epitools returns 0 [0, NaN]
- R mantelhaen.test for the layered table's Mantel–Haenszel χ² (with and without the continuity correction), the common odds ratio and its Robins–Breslow–Greenland interval, and the generalized CMH statistic; DescTools::BreslowDayTest for Breslow–Day and Tarone; all cross-checked against statsmodels StratifiedTable
|
| Principal Components | Verified | - R stats::prcomp(center=TRUE, scale.=TRUE/FALSE)
- R psych::principal(rotate = "none") for the scaled loadings, communalities and uniquenesses under Correlation; prcomp's rotation × sdev and the rescaled communality under Covariance, with the Kaiser count from the eigenvalues
- R psych::KMO / psych::cortest.bartlett, cross-checked against performance::check_kmo / check_sphericity_bartlett
- sklearn.decomposition.PCA
- R psych::principal(rotate = "none") for the scaled loadings and communalities of a correlation PCA, prcomp rotation × sdev with rescaled communalities for a covariance PCA, and the Kaiser count
- both re-anchored to Stratum's sign convention, so loadings and scores compare element by element rather than as magnitudes
|
| Correspondence Map | Verified | - R stats::rmultinom replicates projected as supplementary points by ca::ca(suprow =, supcol =), summarised by stats::cov
- an independent numpy partial bootstrap (CA from the definition, numpy multinomial, the transition formula)
|
| Linear Regression | Verified | - NIST StRD Linear Least Squares — certified to 15 digits (Norris, NoInt1, Filip, Longley, Wampler1-5)
- R car::vif — the per-TERM generalized VIF of Fox & Monette (1992) and its GVIF^(1/(2·df)) scale, over factor, polynomial and near-singular designs
- a term the others determine exactly against R lm() / glm(), which fit it with an NA coefficient: the model without the term has R's residual sum of squares / deviance, its coefficients, σ, R² and held-out RMSE (predict.lm), Linear and Poisson
- R car::vif on the same design with every column its own term, cross-checked against statsmodels variance_inflation_factor, for the per-DESIGN-COLUMN VIF
- the Fit Summary's Durbin–Watson against lmtest::dwtest, asserted equal to car::durbinWatsonTest, and its PRESS and predicted R² against n literal leave-one-out lm() REFITS rather than the e/(1−h) shortcut the engine takes
- the Observations table against R lm() — the dataset row of each fitted value (names(fitted(m)) after a filter and na.omit), rstudent(), hatvalues(), cooks.distance(), NaN for a leverage-1 row, and predict() on held-out rows
- Model: Logistic and Poisson against R glm (binomial / poisson, epsilon 1e-15) — coefficients, Wald SE / z / p, confint.default, logLik, deviance, AIC / BIC, Pearson χ², drop1(test = "LRT") — with statsmodels GLM as a second-language cross-check
- Model: Logistic with three or more levels against R VGAM::vglm(multinomial(refLevel =)), its per-term tests by vglm refits, cross-checked against nnet::multinom and statsmodels MNLogit
- which estimates are infinite under separation against R detectseparation's linear programs
- Contrasts (Effect, Helmert, Polynomial) against R lm / glm with contr.sum / contr.helmert / contr.poly set, and car::Anova(type = 3); centered and standardized slopes against lm on scale() and predict.lm
- Robust (HC0–HC3) standard errors against R sandwich::vcovHC with lmtest::coeftest / waldtest and car::Anova(vcov. = ), for lm, binomial and Poisson glm; the multinomial HC0 against statsmodels MNLogit
- Forward / Backward / Stepwise against R step() (AIC, k = log(n)) and add1 / drop1(test = "F") under SPSS's PIN / POUT rule
- Std. Beta against the fit to z-scored data, coef(lm(scale(y) ~ scale(X))), asserted equal to effectsize::standardize_parameters(method = "basic")
|
| Process Capability | Verified | - R qcc::process.capability for the Pp interval (χ², ν = N − 1)
- scipy.stats.nct (Boost) for the noncentral-t CPL / CPU / Cpk bounds
- R pt (AS 243) as the second lane wherever |δ| < 37.62, its valid range
- qcc's Bissell approximation as a cross-check on the Cpk interval
- each sigma's effective df (Patnaik's two-moment χ fit) from mpmath — 50-digit quadrature of the moving-range moments and its own root solve — anchored to AIAG's / Duncan's d2* and ν table and Cryer & Ryan's 0.62, and chosen by simulated coverage (Tools/reference-values/capability_interval_coverage.py)
- c4 via scipy.special.gammaln, and the half-step gamma ratio it shares with Hedges' J against 60-digit mpmath across df = 1…1e12 — the range where the plain lgamma difference cancels
- d2 by Gauss-Legendre quadrature of the range distribution
- numpy sample SD (ddof=1)
- R MASS::fitdistr (Weibull MLE)
- R plnorm / pweibull / pexp for the fitted tails and quantiles
- scipy.stats.weibull_min.fit(floc=0) as the second lane
- Anderson-Darling critical values re-derived by Monte Carlo (20,000 samples at n = 50, per family) rather than transcribed; normal, log-normal and exponential agree within noise, and the Weibull row's published cutoffs measure about 2% low, which is recorded rather than silently corrected
- Stephens (1974) JASA 69(347) 730-737 and Stephens (1977) Biometrika 64(3) 583-588, collected in D'Agostino & Stephens (1986), for those cutoffs and the per-family A*² modifications
- Akaike (1974) IEEE TAC 19(6) 716-723 and Hurvich & Tsai (1989) Biometrika 76(2) 297-307 for the AICc that ranks the families, with its recovery rate measured against the raw-A² rule it replaced (82% against 17% on exponential data at n = 80)
- ISO 22514-2:2017 for the percentile definition of the indices
|
| Missing Data | Verified | - R naniar::mcar_test over norm::em.norm, EM tightened to 1e-14 — Little's chi-square / df / p and the EM mean and covariance
- R misty::na.test(method = "normal"), whose estimates come from mvnmle::mlest's direct likelihood maximization (not EM), asserted at the optimizer's tolerance
- R mvnmle::mlest mean and covariance, asserted at the optimizer's tolerance
- naniar's documented airquality example (35.1, df 14, p 0.00142)
|
| Reliability | Verified | - R psych::alpha — raw and standardized alpha, mean inter-item r, item means / SDs, corrected item-total r, alpha if deleted, the sum score's mean / SD; complete rows under listwise (SPSS's rule), use = "pairwise" under pairwise; psych::smc
- R MBESS::ci.reliability(interval.type = "feldt") — the 95% interval, with psych::alpha.ci asserted beside it
- R stats::factanal one-factor ML, L-BFGS-B tightened to factr = 1 — the loadings and both omegas
- R MBESS::ci.reliability(type = "omega") and lavaan::cfa — the same omega from a second ML optimizer, asserted at lavaan's convergence
|
| Regression Plot | Verified | - R lm(): fitted(), resid(), hatvalues(), rstandard() (internally studentized), rstudent() (externally studentized), cooks.distance() — the plots arrange these and compute nothing of their own
- the Fit Plot's confidence and prediction bands against R predict(interval = "confidence" / "prediction") at the plot's own sample points
|
| Cluster Centers | Verified | - R stats::kmeans(nstart=25) for the partition, asserted equal to sklearn.cluster.KMeans on well-separated data; each centre against R apply(X[cluster == c, ], 2, mean | median) over the RAW columns — never the engine's un-standardisation re-derived
- numpy mean / median over R's partition as a second lane
|
| Q-Q | Partly verified | - R ppoints(): p = (i-a)/(n+1-2a) with a = 3/8 at n <= 10 and a = 1/2 above, which is the rule Stratum uses; qnorm / -log(1-p) / p / log(-log(1-p)) for the theoretical axes
- R qqnorm() run on the case's own data — the whole plot from R, not R inverting a position computed here
- the superseded (i-0.5)/n vector recorded alongside: identical above ten points, different at or below, so a regeneration against the old rule cannot pass
- normalQuantile pinned to Acklam's published 1.15e-9 RELATIVE bound against R qnorm
Not yet covered: The CONFIDENCE BAND (QQConfidenceBand) has no fixture — only the points and the theoretical axes are covered. |
| Trend | Partly verified | - R stats::lm for the four forms that are linear in their parameters — raw-power polynomials and lm(y ~ log(x))
- R stats::nls (algorithm 'port') for the power and exponential forms, y = b0·x^b1 and y = b0·e^(b1·x): nonlinear least squares on the original y scale, started from OLS on the logs — the same estimator nls(), SciPy's curve_fit and JMP's Nonlinear platform compute
- SciPy optimize.curve_fit (MINPACK Levenberg-Marquardt) as a second independent optimizer on those two, agreeing with nls on the residual sum of squares to 1e-8 — an iterative fit is where a single reference is weakest, because 'converged' is a choice each library makes differently
- fixtures chosen where the answer is decided by which estimator is running: homoscedastic error across three decades of y, and an outlier set on both forms. Each case pins the original-scale least-squares curve on data where a log-scale fit lands somewhere else entirely, so what is certified is the estimator and not merely that some curve fits
- r-squared on the ORIGINAL y scale, measured against the back-transformed curve on screen, which is what Stratum reports. R's model-scale summary()$r.squared is recorded alongside every case, so a reading taken from R can be reconciled against it
Not yet covered: The non-parametric smoothers — LOWESS, kernel smoother and moving average — have no fixture. Their implementations differ in detail between packages, so pinning one spelling of LOWESS would pin R's choices rather than a shared definition; closing this means deciding which definition Stratum claims first. |
| Contour Plot | Partly verified | - grid geometry from the 2-D normal-reference rule (scipy gaussian_kde's default), h = 1.0*max(sd, range*1e-3)*n^(-1/6)*scale, pad = clamp(2.5h, 3%, 15%) — the bandwidth is not exposed, but x0 and dx are functions of it, so the geometry pins the rule exactly
- a DIRECT 2-D Gaussian kernel sum in numpy, compared in shape against the engine's binned separable blur within a measured bound (6%, 12% on the coarse grid)
Not yet covered: The blur is an APPROXIMATION to a 2-D KDE, so the surface is checked for shape against the exact estimator rather than value-for-value — the bound is a recorded measurement, not an equality. The value and aggregate modes (with a Z column) and their 2% masking threshold have no fixture. Note this chart does NOT share KernelDensityEngine: it uses the 2-D n^(-1/6) exponent where Density uses n^(-1/5), so it inherits nothing from that fixture. |
| Decision Tree | Partly verified | - sklearn.metrics.roc_curve(drop_intermediate=False) / roc_auc_score
- sklearn.inspection.partial_dependence(kind='average')
- R rpart::rpart(...)$cptable — the cross-validated error curve, its xstd, and rpart's own 1-SE selection off it
- sklearn.tree.DecisionTreeClassifier(class_weight=None / 'balanced' / {class: weight}) — root split, leaf count, every row's class and predict_proba
- R rpart::rpart(parms = list(prior =)) — the Balanced stump, and a categorical predictor's subset split under equal and unequal priors
- R stats::binom.test(alternative = "greater"), cross-checked against scipy.stats.binomtest — the no-information-rate p
- R rpart::prune.rpart(fit, cp) on rpart(cp = 0, xval = 0) — the Manual cp tree: leaf count and every row's fitted value or class
Not yet covered: The DIAGNOSTICS (ROC, AUC, calibration binning, partial dependence) are pinned, and so now is the PRUNING SELECTION: the standard error of the cross-validated loss reproduces rpart's xstd to the last printed digit on every fixture cptable row, and the 1-SE rule picks the row rpart's own rule picks, on five curves spanning classification and regression (defect A14). An UNPRUNED tree is pinned on the Class Weights fixture: five trees — unweighted, Balanced and Custom, two and three classes, up to three levels — reproduce sklearn's DecisionTreeClassifier row for row, class and probability, with rpart's equal priors cross-checking the Balanced stump; a categorical predictor's subset split is held to rpart, unweighted and under two sets of priors. A tree PRUNED AT A TYPED cp (Manual cp) is pinned to rpart's prune(fit, cp): the cp = 0 tree, then seven cps per case (between cptable rows and exactly on one), regression and classification, leaf count and every row's prediction. A tree pruned by CROSS-VALIDATION is not: the folds and the grown trees differ from rpart's by construction, so the end-to-end check holds Stratum to rpart's leaf count only on kyphosis, where rpart's answer is a stump under both rules and Stratum's defaults reach it. |
| Random Forest | Partly verified | - sklearn.metrics.roc_curve / roc_auc_score
Not yet covered: Diagnostics only. An ensemble cannot be matched tree-for-tree against sklearn — the RNG streams and split tie-breaking differ by construction — so the model itself needs invariants (OOB convergence, importance monotonicity) rather than a value comparison. |
| Boosted Trees | Partly verified | - sklearn.metrics.roc_curve / roc_auc_score
- sklearn.ensemble.GradientBoostingRegressor(loss = squared_error / absolute_error / huber) — depth-3 trees, every row's prediction, the leaf median set to the averaging convention
- R gbm::gbm(distribution = gaussian / laplace / poisson) — stumps, every row's prediction, the starting value and the training loss
Not yet covered: A DETERMINISTIC REGRESSION booster is pinned under all four losses: sklearn's GradientBoostingRegressor and R gbm reproduced row for row after 40–60 rounds. Not pinned: classification boosting (its Newton leaf steps and multinomial channels follow sklearn's MultinomialDeviance but are not reproduced row for row), and a stochastic fit (subsample < 1), whose row draws cannot match another library's RNG. |
| Model Comparison | Partly verified | - sklearn.metrics.roc_auc_score
Not yet covered: The only figure it computes is the test AUC, through the ROC the tree diagnostics fixture pins. Every error and R² is read from the compared model's own fit and carries that model's validation. |
| Correspondence Analysis | Partly verified | - R ca::ca()
- an independent numpy implementation from the definition (Greenacre), not a transcription of the engine
- scipy.stats.chi2_contingency — pins the identity n * total inertia == chi-square
- R effectsize::cramers_v(adjust = FALSE) — Cramér's V, cross-checked against scipy.stats.contingency.association(method='cramer')
Not yet covered: The DISPLAY CAP is not covered. Above StratumLimits.maxReportGroups the engine pools the tail into 'Other' and decomposes the POOLED grid, which moves both the inertia and the degrees of freedom; every fixture table is well under the cap. |
| Clustering | Partly verified | - R stats::hclust(dist(X), method=single/complete/average/ward.D2)
- scipy.cluster.hierarchy.linkage
- R stats::kmeans(nstart=25) under BOTH its Hartigan-Wong default and algorithm='Lloyd', asserted to agree with each other and with sklearn.cluster.KMeans before being used (well-separated data only)
- sklearn.cluster.KMeans (well-separated data only)
- R stats::kmeans(X, centers=k) across 40 seeds — R's literal single-start default, carried as a SPREAD rather than a value because on hard data that call has no single answer
- local optimality: nearest-centroid assignment, and centroid is the cost-minimising centre — mean under Euclidean, median under Manhattan
- R stats::hclust ON THE DISCLOSED SAMPLE for a run past the O(n²) row cap: hclust has no cap and clusters all n, so a capped run is comparable to it only on the rows Stratum says it clustered. The fixture reproduces the selection rule (rows ordered by their own values, then taken at uniform stride) and hands R exactly those rows, which pins the sample as well as the linkage
Not yet covered: The k-means PARTITION is compared to scikit-learn and R only where the optimum is unambiguous. On ambiguous data, and under the Manhattan cost (which sklearn's KMeans does not implement), the evidence is invariants plus R's own objective as an upper bound, rather than a partition — because no outside implementation reaches a canonical answer there, not because the check was skipped. Elbow and silhouette have no fixture yet. TWO DEFAULTS DIVERGE FROM R BY DESIGN and are documented rather than changed (defect A13): Stratum standardises before clustering and R clusters the scale it is handed, and Stratum runs Lloyd from k-means++ with 10 restarts where R runs Hartigan-Wong from one random start. Neither is an arithmetic difference — both minimise the same total within-cluster sum of squares — and the fixture measures both: the same 45 rows are clustered twice, once on the raw scale R would use and once standardised the way Stratum does, each partition matched to R and sklearn on its own scale, with 21 rows landing in a different cluster between them. On the ALGORITHM half the evidence is asymmetric and the record says so. Where the three references agree what the optimum is, Stratum's 10 restarts reach it and R's single default start frequently does not — on three tight, well-separated blobs R's default lands at 35.05 instead of 0.050 on some seeds, and on the four-cluster 3-D case it reaches nine distinct optima across 40 seeds (best 1.84, worst 32.7). Where the optimum is AMBIGUOUS neither default is authoritative and Stratum is not always ahead: on the overlapping-ridges case R's default reaches four local optima (35.594, 35.665, 35.764, 39.269) and Stratum's 10 restarts land on a fifth at 35.802 — 0.11% above R's median start and 0.58% above the 35.594 both programs reach given more starts. So the assertion carried there is only that Stratum is no worse than the WORST R's own default hands a user, beside local optimality; raising Restarts closes the gap (25 → 35.659, 200 → 35.594). Matching R's ALGORITHM NAME would not make Stratum match R's answer — R's default seeds at random and its RNG stream cannot be reproduced here, and as that spread shows R does not match itself either — so the divergence is recorded, not papered over. |
| I-MR Chart | Partly verified | - d2 by Gauss-Legendre quadrature
- c4 via scipy.special.gammaln
- R qcc::sd.xbar.one(x, k = w, std.dev = "MR") for the moving-range span
- d4 (median MR) from the range CDF at 30 digits (mpmath), R ptukey as a cross-check at 5e-8 and Minitab's published table at 5e-4
- MR limits from the unrounded d3 (mpmath, 30 digits; sqrt(2 - 4/pi) at span 2), qcc's seven-digit d3 at 5e-6 — D4(2) = 3.267, as published
Not yet covered: The unbiasing CONSTANTS are pinned to first principles; the Nelson / Western Electric run rules are not, and they are a documented convention rather than a computed quantity. |
| X-bar Chart | Partly verified | - d2 / c4 as for I-MR
- Pooled σ̂ and its X̄ limits: R qcc::sd.xbar / qcc(std.dev = "RMSDF"), numpy as a second lane; S limits Minitab's c4(n)σ ± 3σ√(1 − c4²)
Not yet covered: Constants pinned; run rules are convention. Same as I-MR. |
| P Chart | Partly verified | - binomial limits
- Laney p′: R qicharts2::qic(chart = "pp") with qic.screenedmr = FALSE
Not yet covered: The plain p / np limits are not yet cross-checked against an outside tool (Laney p′ is). |
| C Chart | Partly verified | - Poisson limits
- Laney u′: R qicharts2::qic(chart = "up") with qic.screenedmr = FALSE
Not yet covered: The plain c / u limits are not yet cross-checked against an outside tool (Laney u′ is). |
| Pareto | By formula | ranking and a running total are exact arithmetic, so there is no outside tool to disagree with. What is pinned is falsifiable and was: the tie-break is the CATEGORY LABEL (so equal frequencies order deterministically rather than by dictionary order), and topN truncation does NOT renormalise — the cumulative line runs against the FULL total and stops short of 100%. Renormalising it trips 42 assertions. |
| CUSUM Chart | By formula | Montgomery's CUSUM recursion — C+ = max(0, C+ + z - k), C- = max(0, C- - z - k), FIR headstart h/2 — transcribed INDEPENDENTLY in R and numpy and asserted equal before either was recorded. No qcc/spc is installed, so this is the published formula rather than a package's implementation; installing either upgrades this to external. The sigma it standardises by is MRbar/d2, whose unbiasing constant is pinned to first principles under I-MR Chart. NOT covered: the ARL. |
| EWMA Chart | By formula | Montgomery's EWMA recursion with the TIME-VARYING limit width L*sigma*sqrt(lambda/(2-lambda)*(1-(1-lambda)^(2i))), transcribed independently in R and numpy. The test additionally asserts the band widens monotonically, so substituting the asymptotic width fails even where the two happen to be close. Same qcc/spc caveat as CUSUM. |
| Data | No statistic | The data sheet. Displays stored values. |
| Dot/Strip | No statistic | Plots raw values along one axis. |
| Pie | No statistic | Shares of a supplied total. |
| Treemap | No statistic | Areas proportional to a supplied value. |
| Bar | No statistic | Plots the aggregate the control bar selects; the aggregates themselves are Summary's, and covered there. |
| Dot Plot | No statistic | Plots raw values along one axis. |
| Dumbbell | No statistic | Draws two supplied values per category. |
| Slopegraph | No statistic | Draws two supplied values per category. |
| Scatter | No statistic | Plots raw x/y pairs. Any fitted overlay is a separate mode with its own entry. |
| Bubble | No statistic | Plots raw x/y pairs with a size channel. |
| PCA Scree Plot | No statistic | Plots the PCA eigenvalues or the correspondence-analysis principal inertias, which are covered under Principal Components and Correspondence Analysis. |
| PCA Biplot | No statistic | Plots the PCA loadings and scores, which are covered under Principal Components. |
| Parallel Plot | No statistic | Draws one polyline per row over scaled axes. |
| Reliability Plot | No statistic | Plots the alpha-if-item-deleted values and the scale's alpha, which are covered under Reliability. |
| Montage | No statistic | Lays out other cards side by side; it computes nothing, and each pane is verified under its own mode. |
| Results | No statistic | Shows the values a workflow wrote into it; it computes nothing, and a value read from a report is verified under that report's mode. |
| Text Card | No statistic | Shows values read from other cards' reports through WorkflowValues.reportValue; it computes nothing, and each value is verified under its report's mode. |