{"id":13509126,"url":"https://github.com/msharp/elixir-statistics","last_synced_at":"2026-02-22T11:06:07.686Z","repository":{"id":45952191,"uuid":"13579815","full_name":"msharp/elixir-statistics","owner":"msharp","description":"Statistical functions and distributions for Elixir","archived":false,"fork":false,"pushed_at":"2024-01-05T04:29:29.000Z","size":215,"stargazers_count":140,"open_issues_count":1,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-16T06:19:42.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hexdocs.pm/statistics/","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-10-15T03:37:58.000Z","updated_at":"2025-02-02T10:48:33.000Z","dependencies_parsed_at":"2024-01-05T05:30:31.383Z","dependency_job_id":"83593507-167b-4826-97a0-570f551e3fcb","html_url":"https://github.com/msharp/elixir-statistics","commit_stats":{"total_commits":205,"total_committers":13,"mean_commits":15.76923076923077,"dds":"0.17560975609756102","last_synced_commit":"897851ffd947e549181e49fcc21fb8b58f106293"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msharp%2Felixir-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msharp%2Felixir-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msharp%2Felixir-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msharp%2Felixir-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msharp","download_url":"https://codeload.github.com/msharp/elixir-statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246323900,"owners_count":20759047,"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":[],"created_at":"2024-08-01T02:01:03.305Z","updated_at":"2025-10-21T19:02:13.193Z","avatar_url":"https://github.com/msharp.png","language":"Elixir","funding_links":[],"categories":["Statistics"],"sub_categories":[],"readme":"#  Statistics\n\n[![Build Status](https://github.com/msharp/elixir-statistics/actions/workflows/elixir.yml/badge.svg)](https://github.com/msharp/elixir-statistics/actions/workflows/elixir.yml)\n[![hex.pm version](https://img.shields.io/hexpm/v/statistics.svg?style=flat)](https://hex.pm/packages/statistics)\n\nStatistics functions and distributions for [Elixir](https://github.com/elixir-lang/elixir).\n\n## Usage\n\nAdd Statistics as a dependency in your `mix.exs` file to install from [hex.pm](https://hex.pm).\n\n```elixir\ndef deps do\n  [\n    { :statistics, \"~\u003e 0.6\"}\n  ]\nend\n```\n\nAfter you are done, run `mix deps.get` in your shell to fetch and compile Statistics.\n\nTo try it out, start an interactive Elixir shell with `iex -S mix`.\n\nGet the median value from a list\n\n```\niex\u003e Statistics.median([1,2,3])\n2\n```\n\nCalculate the variance of a list of values.\n\n```\niex\u003e Statistics.variance([1,2,3,4])\n1.25\n```\n\nOr draw a random number from a Gaussian distribution with a mean of 1 and standard deviation of 2.\n\n```\niex\u003e Statistics.Distributions.Normal.rand(1, 2)\n2.5998185179627384\n```\n\n## Documentation\n\nElixir has great documentation tools using `ex_doc`.\n\nThe docs are hosted on [hexdocs.pm/statistics](http://hexdocs.pm/statistics/).\n\n## Performance\n\nThis is not a library to use if you need fast computation.\n\nEverything is implemented in Elixir. Many of the implementations use slow approximations, numerical function integration, or trial-and-error methods.\n\nThere is much room for improvement. To make this library really fast (and precise), we would probably need to interface with existing C libraries.\n\n## Contributing\n\nI will accept pull requests.\n\nIf you want to contribute, please create a topic branch with tests and submit a pull request.\n\n## License\n\nApache 2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsharp%2Felixir-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsharp%2Felixir-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsharp%2Felixir-statistics/lists"}