# stats (Go)

> Dependency-free statistics functions for Go

Source: https://talira.ai/catalog/stats-go-z7bgke7j
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / go](https://talira.ai/categories/languages/go)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Montana Flynn](https://talira.ai/orgs/montana-flynn.md)

montanaflynn/stats is a tested statistics library for Go with no dependencies: median, mean, rounding and the other common descriptive statistics over float64 slices, with helpers that load ints, strings and mixed slices as data.

## Links

- GitHub: https://github.com/montanaflynn/stats
- Docs: https://pkg.go.dev/github.com/montanaflynn/stats

## Problems it solves

- calculate the median and mean of a slice of numbers in Go
- basic statistics in Go without importing a big numerical library
- summarise latency measurements in a Go program

## Features

- common statistics such as median and mean over float64 data
- LoadRawData turns ints, strings and mixed slices into data
- no dependencies

## Trust

Overall: 0.51 out of 1.
Signals: maintenance 0.64, adoption 0.70, momentum 0.41, community 0.65, backing 0.30, extensibility 0.00.

- last commit 35 days ago
- 28 commits in the last 90 days
- latest release v0.14.0 35 days ago
- 3.0k GitHub stars
- 40 contributors
- accepts sponsorship (Github)
- backed by Montana Flynn

## Sources

[^1]: https://github.com/montanaflynn/stats/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/montanaflynn/stats/blob/master/LICENSE (checked 29 Nov 2026)
