---
title: "github.com/montanaflynn/stats v0.15.0 Breaking Changes"
description: "What each github.com/montanaflynn/stats release removed, renamed or changed: 21 breaking changes in 5 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/montanaflynn/stats
last_updated: 2026-12-04
---

# 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

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](https://since.dev/calendar/go.md).

- From [v0.6.0](#v-v0-6-0) to [v0.15.0](#v-v0-15-0): 16 breaking changes in 4 versions.

## github.com/montanaflynn/stats v0.15.0 breaking changes

github.com/montanaflynn/stats v0.15.0, released November 30, 2026: 5 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](https://github.com/montanaflynn/stats/releases/tag/v0.15.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.15.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.15.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.15.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.15.0)

## github.com/montanaflynn/stats v0.14.0 breaking changes

github.com/montanaflynn/stats v0.14.0, released October 25, 2026: 8 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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)
- **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](https://github.com/montanaflynn/stats/releases/tag/v0.14.0)

## github.com/montanaflynn/stats v0.13.0 breaking changes

github.com/montanaflynn/stats v0.13.0, released October 6, 2026: 2 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](https://github.com/montanaflynn/stats/releases/tag/v0.13.0)
- **Configuration changed**  

The package now requires Go 1.17 or later. Users on older Go toolchains must upgrade before updating. [github.com](https://github.com/montanaflynn/stats/releases/tag/v0.13.0)

## github.com/montanaflynn/stats v0.8.0 breaking changes

github.com/montanaflynn/stats v0.8.0, released March 11, 2026: 1 breaking change.

- **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](https://github.com/montanaflynn/stats/releases/tag/v0.8.0)

## github.com/montanaflynn/stats v0.6.0 breaking changes

github.com/montanaflynn/stats v0.6.0, released February 17, 2020: 5 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](https://pkg.go.dev/github.com/montanaflynn/stats@v0.6.0)
- **Signature changed** `github.com/montanaflynn/stats.ChebyshevDistance`  

Was func ChebyshevDistance(\[\]float64, \[\]float64) (float64, error); now func ChebyshevDistance(Float64Data, Float64Data) (float64, error). [pkg.go.dev](https://pkg.go.dev/github.com/montanaflynn/stats@v0.6.0)
- **Signature changed** `github.com/montanaflynn/stats.EuclideanDistance`  

Was func EuclideanDistance(\[\]float64, \[\]float64) (float64, error); now func EuclideanDistance(Float64Data, Float64Data) (float64, error). [pkg.go.dev](https://pkg.go.dev/github.com/montanaflynn/stats@v0.6.0)
- **Signature changed** `github.com/montanaflynn/stats.ManhattanDistance`  

Was func ManhattanDistance(\[\]float64, \[\]float64) (float64, error); now func ManhattanDistance(Float64Data, Float64Data) (float64, error). [pkg.go.dev](https://pkg.go.dev/github.com/montanaflynn/stats@v0.6.0)
- **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](https://pkg.go.dev/github.com/montanaflynn/stats@v0.6.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
