{"id":13425986,"url":"https://github.com/simple-statistics/simple-statistics","last_synced_at":"2025-05-14T21:02:09.787Z","repository":{"id":2421376,"uuid":"3389930","full_name":"simple-statistics/simple-statistics","owner":"simple-statistics","description":"simple statistics for node \u0026 browser javascript","archived":false,"fork":false,"pushed_at":"2025-04-01T11:15:15.000Z","size":4173,"stargazers_count":3429,"open_issues_count":25,"forks_count":228,"subscribers_count":57,"default_branch":"main","last_synced_at":"2025-04-22T16:52:49.861Z","etag":null,"topics":["javascript","math","regression","statistics"],"latest_commit_sha":null,"homepage":"https://simple-statistics.github.io/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simple-statistics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-02-08T18:29:54.000Z","updated_at":"2025-03-31T01:00:16.000Z","dependencies_parsed_at":"2023-07-06T11:16:32.694Z","dependency_job_id":"6a8e29ba-a69e-4e65-bd2a-13bc732cd659","html_url":"https://github.com/simple-statistics/simple-statistics","commit_stats":{"total_commits":795,"total_committers":59,"mean_commits":"13.474576271186441","dds":0.5119496855345912,"last_synced_commit":"b4a9c787943534d46ce8405846858eb4866af47e"},"previous_names":["tmcw/simple-statistics"],"tags_count":67,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-statistics%2Fsimple-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-statistics%2Fsimple-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-statistics%2Fsimple-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simple-statistics%2Fsimple-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simple-statistics","download_url":"https://codeload.github.com/simple-statistics/simple-statistics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252835562,"owners_count":21811564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","math","regression","statistics"],"created_at":"2024-07-31T00:01:23.594Z","updated_at":"2025-05-07T07:40:06.760Z","avatar_url":"https://github.com/simple-statistics.png","language":"JavaScript","readme":"# Simple Statistics\n\n\nA JavaScript implementation of descriptive, regression, and inference statistics.\n\n[![Coverage Status](https://coveralls.io/repos/github/simple-statistics/simple-statistics/badge.svg)](https://coveralls.io/github/simple-statistics/simple-statistics)\n[![npm version](https://badge.fury.io/js/simple-statistics.svg)](http://badge.fury.io/js/simple-statistics)\n\nImplemented in literate JavaScript with no dependencies, designed to work\nin all modern browsers (including IE) as well as in [node.js](https://nodejs.org/).\n\n* :green_book: [API Documentation](https://simple-statistics.github.io/)\n* :chart_with_upwards_trend: [Benchmarks](./benchmarks/)\n* :kissing: [A list of other statistics libraries](./SEEALSO.md)\n\n## Installation\n\n* **I'm using Node.js, Webpack, Browserify, Rollup, or another module bundler,\n  and install packages from npm.**\n  * First, install the `simple-statistics` module, using `npm install simple-statistics`,\n    then include the code with require or import:\n  * **I use the `require` function to use modules in my project. (most likely)**\n    * When you use `require`, you have the freedom to assign the module to any\n      variable name you want, but you need to specify the module's name exactly:\n      in this case, 'simple-statistics'. The `require` method returns an object\n      with all of the module's methods attached to it.\u003cbr /\u003e \u003cpre\u003evar ss = require('simple-statistics')\u003c/pre\u003e\n  * **I use `import` to use modules in my project. I'm probably using Babel, `@std/esm`, Webpack, or Rollup.**\n    * Import all functions under the ss object: \u003cpre\u003eimport * as ss from 'simple-statistics'\u003c/pre\u003e\n      Include a specific named export: \u003cpre\u003eimport {min} from 'simple-statistics'\u003c/pre\u003e\n      Simple statistics has _only_ named exports for ES6.\n* **I'm using Deno.**\n  * Simple Statistics is published for Deno: https://deno.land/x/simplestatistics\n* **I'm not using a module bundler. I'm writing a web page, and want to include\n  simple-statistics using a script tag.**\n  * **I want to support all browsers**\n    * When you use simple-statistics from a script tag, you don't get to choose\n      the variable name it is assigned to: simple-statistics will always become\n      available globally as the variable `ss`. You can reassign this variable to\n      another name if you want to, but doing so is optional.\n      ```HTML\n      \u003cscript src='https://unpkg.com/simple-statistics@7.8.8/dist/simple-statistics.min.js'\u003e\n      \u003c/script\u003e\n      ```\n  * **I want to use ES6 modules in a browser and I'm [willing to only support new browsers](https://caniuse.com/#feat=es6-module) to do it**\n    * This module works great with the [`?module`](https://unpkg.com/#/query-parameters) query parameter of unpkg. If you\n      specify `type='module'` in your script tag, you'll be able to import simple-statistics\n      directly - through `index.js` and with true [ES6 import syntax and behavior](http://exploringjs.com/es6/ch_modules.html).\n      ```js\n      \u003cscript type='module'\u003e\n      import {min} from \"https://unpkg.com/simple-statistics@7.8.8/index.js?module\"\n      console.log(min([1, 2, 3]))\n      \u003c/script\u003e\n      ```\n      This feature is still experimental in unpkg and very bleeding-edge.\n","funding_links":[],"categories":["JavaScript","Javascript","javascript","Math and Statistics"],"sub_categories":["Tools","[Tools](#tools-1)","Speech Recognition"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-statistics%2Fsimple-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-statistics%2Fsimple-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-statistics%2Fsimple-statistics/lists"}