# simple-statistics/simple-statistics

simple statistics for node & browser javascript

Repository: https://github.com/simple-statistics/simple-statistics
Canonical: https://ross.abutalabs.com/products/simple-statistics
Homepage: https://simple-statistics.github.io/
Language: JavaScript
License: ISC
License Family: permissive
Topics: statistics, javascript, regression, math
Last push: 2026-08-24T15:39:30+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 5320, "days_push": 9, "days_rel": 14, "gap_med": 5, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3519, forks 238 (observed 2026-08-28T04:08:07.929341+00:00)

## What it is
A dependency-free JavaScript library implementing descriptive, regression, and inference statistics for Node.js and browsers. It is written in literate JavaScript with named ES6 exports and works via npm, bundlers, or a script tag.

## Use cases
- compute mean, median, and standard deviation in JavaScript
- run linear regression on a dataset in the browser
- calculate probability distributions without heavy dependencies
- add basic statistics to a Node.js app
- classify data with a simple Bayesian classifier in JS

## When to choose
- you need lightweight, zero-dependency statistics in JavaScript
- you want stats functions that work in both browser and Node.js
- you prefer readable, well-documented, thoroughly tested code

## When to avoid
- you need advanced statistical modeling or machine learning beyond regression and Bayesian classification
- you work in Python, R, or another language with richer statistical ecosystems
- you need GPU-accelerated or large-scale numerical computing

## Facets
- artifact type: library
- maturity: stable
- function: math, data-science, data-visualization
- domain: data-science, mathematics
- platform: browser, cross-platform
- tags: statistics, regression, descriptive-statistics, bayesian-classifier, zero-dependency, literate-programming, nodejs, javascript, deno

## Member repositories
- simple-statistics/simple-statistics (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:07.929341+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:35:33.292671+00:00, confidence not recorded.
  - readme: https://github.com/simple-statistics/simple-statistics (fetched 2026-08-28T04:08:07.929341+00:00, sha e3ed756aadc6)
  - homepage: https://simple-statistics.github.io/ (fetched 2026-08-29T09:29:35.411843+00:00, sha b09c401ecee5)
  - registry_npm: https://registry.npmjs.org/simple-statistics (fetched 2026-08-29T09:29:35.420921+00:00, sha b6efbac68d3d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
