Spearman rank correlation based on averaged ranks, robust to monotone non-linear relationships.
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]
- Monotone relationships — detect associations that Pearson misses.
- Ordinal survey data — correlate Likert-scale answers.
- Outlier-heavy data — rank-based analysis reduces the influence of extreme values.
Download spearman.exe from the Releases page, then:
Get-Content data.csv | .\spearman.exe
# or
.\spearman.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o spearman.exe .{
"spearman_rho": 1,
"pairs": 4
}
CSV with two numeric columns per row.
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
