{"id":49279489,"url":"https://github.com/estebanz01/ruby-statistics","last_synced_at":"2026-04-25T18:01:43.425Z","repository":{"id":23741364,"uuid":"99737917","full_name":"estebanz01/ruby-statistics","owner":"estebanz01","description":"Ruby gem for some statistical operations without any statistical language dependency","archived":false,"fork":false,"pushed_at":"2026-04-13T15:19:56.000Z","size":304,"stargazers_count":135,"open_issues_count":2,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-17T05:03:45.495Z","etag":null,"topics":["math","ruby-gem","ruby-statistics","rubygems","statistical-distributions","statistical-tests","statistics","stats"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/estebanz01.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-08-08T21:32:20.000Z","updated_at":"2026-04-13T15:19:56.000Z","dependencies_parsed_at":"2024-05-12T22:22:44.866Z","dependency_job_id":"73ef9883-9bba-4141-b343-0c2c79389119","html_url":"https://github.com/estebanz01/ruby-statistics","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/estebanz01/ruby-statistics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estebanz01%2Fruby-statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estebanz01%2Fruby-statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estebanz01%2Fruby-statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estebanz01%2Fruby-statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estebanz01","download_url":"https://codeload.github.com/estebanz01/ruby-statistics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estebanz01%2Fruby-statistics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32271243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["math","ruby-gem","ruby-statistics","rubygems","statistical-distributions","statistical-tests","statistics","stats"],"created_at":"2026-04-25T18:01:42.743Z","updated_at":"2026-04-25T18:01:43.412Z","avatar_url":"https://github.com/estebanz01.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Statistics\n![](https://github.com/estebanz01/ruby-statistics/actions/workflows/ruby.yml/badge.svg)\n\n## Note regarding Versions 3.x and 4.x\nHola! :wave: right now the gem got an update that introduced a breaking change in master where the Outermost namespace was changed to be `ruby-statistics` instead of `statistics`. This change is in _master_ already and released in version 4.0. If you're relying on branch instead of gem version, you can checkout branch `3.x`. This branch will be supported but no additional features will be added.\n\n## Note regarding Big Decimal support\nThis gem also provides basic support for `BigDecimal` and the gem is listed as an optional `development` dependency on the gemspec. Since it's no longer supported as a bundled feature since 3.4.0, the functionality around this gem is going to be limited as well. It is not a required dependency to run or use any of the features developed so far. :grin:\n\n---\n\nA basic ruby gem that implements some statistical methods, functions and concepts to be used in any ruby environment without depending on any mathematical software like `R`, `Matlab`, `Octave` or similar.\n\nUnit test runs under the following ruby versions:\n* Ruby 3.2.\n* Ruby 3.3.\n* Ruby 3.4.\n* Ruby 4.0.\n\nWe got the inspiration from the folks at [JStat](https://github.com/jstat/jstat) and some interesting lectures about [Keystroke dynamics](http://www.biometric-solutions.com/keystroke-dynamics.html).\n\nSome logic and algorithms are extractions or adaptations from other authors, which are referenced in the comments.\nThis software is released under the MIT License.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ruby-statistics'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ruby-statistics\n\n## Basic Usage\n\njust require the `ruby-statistics` gem in order to load it. If you don't have defined the `Distribution` namespace, the gem will assign an alias, reducing the number of namespaces needed to use a class.\n\nRight now you can load:\n\n* The whole statistics gem. `require 'ruby-statistics'`\n* A namespace. `require 'ruby-statistics/distribution'`\n* A class. `require 'ruby-statistics/distribution/normal'`\n\nFeel free to use the one that is more convenient to you.\n\n### Hello-World Example\n```ruby\nrequire 'ruby-statistics'\n\npoisson = Distribution::Poisson.new(l) # Using Distribution alias.\nnormal = RubyStatistics::Distribution::StandardNormal.new # Using all namespaces.\n```\n\n## Documentation\nYou can find a bit more detailed documentation of all available distributions, tests and functions in the [Documentation Index](https://github.com/estebanz01/ruby-statistics/wiki)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/estebanz01/ruby-statistics. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the RubyStatistics project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/estebanz01/ruby-statistics/blob/master/CODE_OF_CONDUCT.md).\n\n## Contact\n\nYou can contact me via:\n* [Github](https://github.com/estebanz01)\n* [Twitter](https://twitter.com/estebanz01)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festebanz01%2Fruby-statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festebanz01%2Fruby-statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festebanz01%2Fruby-statistics/lists"}