Description
Simple Statistics is a JavaScript library for descriptive statistics, regression and inference. It is implemented in literate JavaScript with no dependencies, and it is designed to work in modern browsers, including older ones, as well as in Node.js. You can install it from npm and import what you need with require or ES module import, or load it with a script tag, where the library is available as the global ss. The README also covers Deno, which can import it through npm compatibility, and browsers that support ES modules through the unpkg module query. The project publishes API documentation and benchmarks, and it keeps a list of other statistics libraries. Each function is exported by name, so a bundler can include only the parts you use. It suits front-end and back-end developers who need averages, standard deviations, linear regression and similar calculations in a JavaScript project without pulling in a large numerical stack. The source is public on GitHub.…
Highlights
- Descriptive statistics, regression and inference in JavaScript
- No dependencies
- Works in browsers and Node.js
- Named exports for tree-shaking bundlers
- Script tag, npm, Deno and ES module use
Ratings & Reviews
No ratings yet
Be the first to rate Simple Statistics.
People also visit
Simple Statistics FAQ
What is Simple Statistics?
A JavaScript library for statistics, covering descriptive measures, regression and inference, with no dependencies.
How do I install it?
Run npm install simple-statistics, then require or import it. You can also load it from a script tag, where it is available as ss.
Does it run in the browser?
Yes. The README says it works in modern browsers, including older ones, as well as Node.js.
Can I use it with Deno?
Yes. The README says to import it as npm:simple-statistics.
Is it free?
Yes. The source code is public on GitHub.
Where are the API docs?
The README links the API documentation and a benchmarks page.
What are the best Simple Statistics alternatives?
Popular alternatives to Simple Statistics include LibRmath.js, GPU.js and Data Science Toolkit. See all Simple Statistics alternatives










