statstest is a focused Go library for practical statistical inference.
It provides common hypothesis tests, effect sizes, confidence intervals, and multiple-testing corrections using idiomatic Go APIs and standard slice types.
Go has strong numerical foundations, but practical inference workflows are still more fragmented than they should be.
statstest fills that gap with a small, focused package for everyday
statistical testing in production, analytics, experimentation, and research tools.
- simple APIs using
[]float64and standard Go types - reliable statistical test implementations
- structured results instead of raw tuples
- clear documentation of assumptions and interpretation
- no dataframe dependency
- one-sample t-test
- two-sample t-test
- Welch t-test
- paired t-test
- one-way ANOVA
- Mann-Whitney U test
- Wilcoxon signed-rank test
- chi-square test of independence
- Fisher’s exact test
- p-value adjustment methods
- confidence intervals and effect-size support where applicable
- input validation for invalid samples and tables
This package includes reference-value tests for core statistical methods. Expected values are checked against external statistical references and documented package conventions for methods where multiple valid reporting conventions exist.
go get github.com/motah-fard/statstest