How we validated AnalyEase's statistical engine against SciPy and pingouin
A figure is only as trustworthy as the numbers behind it. Before any statistical test appears in AnalyEase, it has to reproduce the output of an established reference implementation on a fixed dataset.
Why validation matters
A wrong p-value doesn't announce itself. It looks exactly like a right one, sits in a figure legend, and can travel all the way into a published paper. So we treat the statistical engine the way a lab treats a new assay: nothing is trusted until it has been checked against a known standard.
Checked against reference implementations
Each test is validated against output from widely used, peer-scrutinised statistical libraries: SciPy for core tests such as t-tests, Mann-Whitney U, one-way ANOVA, Kruskal-Wallis and correlation, and pingouin for the ANOVA family, including repeated-measures and mixed designs. As new analyses are added, each one names its reference tool before it is built.
Locked fixtures with tight tolerances
For every test we keep fixed datasets, called fixtures, whose expected results were computed once by the reference tool and then locked. AnalyEase must match them within:
- ±0.0001 on p-values and correlation coefficients
- ±0.01 on test statistics
Those tolerances allow for normal floating-point differences between implementations, not for real disagreement about the answer.
Checking the checkers
Reference values can be wrong too, for example when a number is copied from the wrong dataset. Locked values are cross-checked, and any that look doubtful are re-derived independently, by a second reference run and, where practical, by hand. When an expected value didn't reproduce, we traced where it came from and corrected the fixture. We never adjusted the engine to match a number we couldn't explain.
Tests before code
New statistical features are written test-first: the check is shown to fail before the feature exists, then pass once it is built. The complete automated test suite runs before any change is accepted, because a change in one test can quietly break another.
Real data sizes, not just toy examples
Small textbook datasets hide problems that appear at real scale. Features are also checked with realistic experiments, such as timecourses with dozens of timepoints and many-group designs, and the resulting charts and tables are reviewed by eye, not only by an automated assertion.
Limits we show you
Rigour also means being honest about what a test can and can't do. With very small samples, rank-based tests have a hard ceiling on how small their p-value can get, however large the true difference. AnalyEase shows caveats like this next to the result rather than hiding them, and it never reports post hoc power, a statistic that adds nothing to the p-value.
Deterministic by design
The engine uses fixed rules, not AI. Give it the same data and it returns the same answer every time, which is exactly what makes validation against a reference possible in the first place.