JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 456
  • Score
    100M100P100Q81714F

Provides functions for many of the statistical operations that you might need

Package Exports

  • statsjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (statsjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Stats.js by Angus Gibbs

Provides functions for many of the statistical operations that you might need.

About

Stats.js currently supports many of the statistical functions that you might need, including

  • regression lines (linear, power, exponential)
  • min, max, mean, median, first quartile, third quartile
  • least common multiple and greatest common factor
  • standard deviation
  • sorting a list of points by an attribute
  • probabilities (binomial, geometric, normal)
  • z procedures

It also supports many of the functions on the data set that you'd expect from Underscore, such as pluck, map, and each.

See the getting started guide for more information.

Roadmap

  • Better documentation
  • Auto-detect best regression line

Contributing

Patches are welcome, just make sure there are matching unit tests. Tests use mocha with my fork of expect.js (which allows you to assert that a value is within a certain error range of another value). Once you clone the repo (either your fork or this repository), cd into it and run npm install to install mocha and expect.js. Tests can be found within test/test.js.

License

Stats.js is licensed under the MIT License. See https://github.com/angusgibbs/statsjs/blob/master/LICENSE for the full license.