Pearson product-moment correlation for two numeric columns of a CSV.
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]
- Feature screening — find linearly related predictors before regression.
- A/B diagnostics — check whether a metric moves with exposure intensity.
- Research reporting — produce a correlation coefficient with a tiny CLI.
Download correlate.exe from the Releases page, then:
Get-Content data.csv | .\correlate.exe
# or
.\correlate.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o correlate.exe .{
"pearson_r": 0.9899,
"pairs": 5
}
CSV with two numeric columns per row, e.g. height,weight. Header rows are skipped.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
