Why: I needed a quick way to look at statistics without having to resort to something heavy such as Python + its statistics module or Excel.
Disclaimer: Vibe-coded by Gemini 2.5 Pro and Opus 4.5 but also validated through unit tests and independent verification[2].
Install: Homebrew[3] or GoReleaser built binaries[4].
Demo:
$ seq 99 322 | stats
--- Descriptive Statistics ---
Count: 224
Sum: 47152
Min: 99
Max: 322
--- Measures of Central Tendency ---
Mean: 210.5
Median (p50): 210.5
Mode: None
--- Measures of Spread & Distribution ---
Std Deviation: 64.8074
Variance: 4200
Quartile 1 (p25): 154.75
Quartile 3 (p75): 266.25
Percentile (p95): 310.85
Percentile (p99): 319.77
IQR: 111.5
Skewness: 0 (Fairly Symmetrical)
Outliers: None
[1] https://github.com/jftuga/go-stats-calculator[2] https://github.com/jftuga/go-stats-calculator/tree/main?tab=...
[3] https://github.com/jftuga/go-stats-calculator?tab=readme-ov-...