Chi-square goodness-of-fit test against a uniform expected distribution.
Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]
- Fairness checks — test whether dice or random assignment is uniform.
- Traffic analysis — see if events are evenly spread across time buckets.
- Survey sanity — detect uneven response counts before weighting.
Download chisq.exe from the Releases page, then:
Get-Content data.csv | .\chisq.exe
# or
.\chisq.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o chisq.exe .{
"statistic": 0.4,
"df": 4,
"p_value": 0.98
}
One count per line, or comma-separated counts. Each entry is a category.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
