github.com/montanaflynn/stats breaking changes
github.com/montanaflynn/stats v0.15.0 (November 30, 2026) is its newest release with breaking changes, 5 of them. The first: Sampling functions no longer reseed the global math/rand source in github.com/montanaflynn/stats v0.15.0. Every breaking API change we have recorded in github.com/montanaflynn/stats on Go modules: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v0.15.0, released November 30, 2026.
Its v0.13.0 release requires Go 1.17 or later. Go end of life dates.
github.com/montanaflynn/stats v0.15.0 breaking changes
- Behavior changed
The sampling functions no longer reseed the global math/rand source, so rand.Seed is left alone. Their output is no longer reproducible through rand.Seed. github.com - Behavior changed
Entropy
Entropy now returns ErrNegative for negative values and ErrZero when every value is zero, instead of NaN with a nil error. It also no longer returns 0 for values near MaxFloat64. Code must handle the new errors. github.com - Behavior changed
Sample
Sample now returns ErrBounds for a negative size instead of returning an empty sample. Code that checked for an empty result must handle the error. github.com - Behavior changed
StableSample
StableSample now returns ErrBounds for a negative size instead of returning an empty sample. Code that checked for an empty result must handle the error. github.com - Behavior changed
TTest
P-values for small t statistics are now computed correctly, so results that were wrong before will change. Check code that depends on the old p-values. github.com
github.com/montanaflynn/stats v0.14.0 breaking changes
- Behavior changed
AutoCorrelation
AutoCorrelation now returns an error for a single pair or constant input. It still returns 0, so code that ignores the error sees the same values. github.com - Behavior changed
Correlation
Correlation now returns an error for a single pair or constant input. It still returns 0, so code that ignores the error sees the same values. github.com - Behavior changed
KendallTau
KendallTau now returns an error for a single pair or constant input. It still returns 0, so code that ignores the error sees the same values. github.com - Behavior changed
Max
Max now returns NaN whenever the data contains NaN, instead of depending on where the NaN appears. Check code that relied on NaN being skipped. github.com - Behavior changed
Median
Median now returns NaN whenever the data contains NaN, instead of depending on where the NaN appears. Check code that relied on NaN being skipped. github.com - Behavior changed
Min
Min now returns NaN whenever the data contains NaN, instead of depending on where the NaN appears. Check code that relied on NaN being skipped. github.com - Behavior changed
Pearson
Pearson now returns an error for a single pair or constant input. It still returns 0, so code that ignores the error sees the same values. github.com - Behavior changed
Spearman
Spearman now returns an error for a single pair or constant input. It still returns 0, so code that ignores the error sees the same values. github.com
github.com/montanaflynn/stats v0.13.0 breaking changes
- Behavior changed
Ncr
Ncr returns 0 for invalid input and math.MaxInt when the result overflows. Code relying on the previous return values for these cases must be updated. github.com - Configuration changed
The package now requires Go 1.17 or later. Users on older Go toolchains must upgrade before updating. github.com
github.com/montanaflynn/stats v0.8.0 breaking changes
- Behavior changed
Percentile
Percentile results change to the standard NIST linear interpolation method, so code that depends on the previous values must be checked. github.com
github.com/montanaflynn/stats v0.6.0 breaking changes
- Removed
github.com/montanaflynn/stats.EmptyInput
github.com/montanaflynn/stats.EmptyInput was removed in github.com/montanaflynn/stats v0.6.0 pkg.go.dev - Signature changed
github.com/montanaflynn/stats.ChebyshevDistance
Was func ChebyshevDistance([]float64, []float64) (float64, error); now func ChebyshevDistance(Float64Data, Float64Data) (float64, error). pkg.go.dev - Signature changed
github.com/montanaflynn/stats.EuclideanDistance
Was func EuclideanDistance([]float64, []float64) (float64, error); now func EuclideanDistance(Float64Data, Float64Data) (float64, error). pkg.go.dev - Signature changed
github.com/montanaflynn/stats.ManhattanDistance
Was func ManhattanDistance([]float64, []float64) (float64, error); now func ManhattanDistance(Float64Data, Float64Data) (float64, error). pkg.go.dev - Signature changed
github.com/montanaflynn/stats.MinkowskiDistance
Was func MinkowskiDistance([]float64, []float64, float64) (float64, error); now func MinkowskiDistance(Float64Data, Float64Data, float64) (float64, error). pkg.go.dev
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.