{"id":13994894,"url":"https://github.com/davejacobs/stats","last_synced_at":"2026-01-10T07:14:44.213Z","repository":{"id":145832461,"uuid":"1485253","full_name":"davejacobs/stats","owner":"davejacobs","description":"An experiment with stats, the Ruby way","archived":false,"fork":false,"pushed_at":"2017-04-02T07:02:38.000Z","size":430,"stargazers_count":39,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T14:17:31.798Z","etag":null,"topics":["ruby","statistics"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/davejacobs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2011-03-15T23:58:12.000Z","updated_at":"2023-02-20T14:04:37.000Z","dependencies_parsed_at":"2023-04-24T10:28:05.075Z","dependency_job_id":null,"html_url":"https://github.com/davejacobs/stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davejacobs%2Fstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davejacobs%2Fstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davejacobs%2Fstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davejacobs%2Fstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davejacobs","download_url":"https://codeload.github.com/davejacobs/stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177676,"owners_count":17743142,"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":["ruby","statistics"],"created_at":"2024-08-09T14:03:09.904Z","updated_at":"2026-01-10T07:14:44.158Z","avatar_url":"https://github.com/davejacobs.png","language":"Ruby","readme":"# Stats #\n\n## Description ##\n\nThis is a prototype of a statistical library for Ruby. Starting out, the purpose of the library is to be readable (for people studying statistics), to be well-tested (against R and Python statistical functions), and to be useful for Small Data. Big Data can come later, if I have enough fun. With `stats`, I aim to create an API that makes statistics intuitive and harder to mess up. For example, I'd like to take a stab at an assumption framework that can tag specific functions with assumptions that will throw warnings if they're not met.\n\n---\n\n## Try it out ##\n\nOnce this is stable and fully tested (it is so far for all the functions listed below), I'll consider publishing it as a gem. Until then, you can play around with `master`:\n\n    brew install gsl\n    git clone https://github.com/davejacobs/stats.git\n    cd stats\n    bundle\n\n## Running tests ##\n\nI've started integrating R into my tests to make testing as easy and repeatable as possible. I'm also planning to incorporate something like Randly to expand the values that I test.\n\nTo run tests:\n\n    brew install homebrew/science/r\n    rspec\n\n## Progress ##\n\n### For developers ###\n\n- [x] Get Ruby GSL bindings (`gem install gsl`) to work on Ruby 2.0/OS X\n- [ ] Implement gemspec so this is installable via git URL\n\n### Distribution functions ###\n\nI've added a wrapper around GSL distribution functions, for more intuitive access and testing.\n\n- [x] Normal distribution - PDF \u0026amp; CDF\n- [x] Chi square distribution - PDF \u0026amp; CDF\n- [x] T distribution - PDF \u0026amp; CDF\n- [x] F distribution - PDF \u0026amp; CDF\n\n### Basic functions ###\n\n- [x] Mean, arithmetic\n- [x] Mean, geometric\n- [x] Median\n- [x] Mode\n- [x] Variance\n- [x] Standard deviation\n- [x] Standard error of the mean (for samples only)\n- [x] Relative standard error of the mean (for samples only)\n- [x] Coefficient of variation\n\n### Significance tests ###\n\n- [x] Chi square\n- [x] T-test, single sample\n- [x] T-test, two-sample\n- [x] T-test, repeated measures\n- [x] Wilcoxon rank sum test\n- [ ] Wilcoxon signed rank test\n- [ ] Median test\n- [ ] Kruskall-Wallis H test\n- [ ] Friedman test\n- [x] ANOVA, one-way\n- [ ] Factorial ANOVA, two-way\n- [ ] Factorial ANOVA, three-way\n- [ ] ANOVA, repeated measures\n- [ ] MANOVA\n- [ ] ANCOVA\n- [ ] Welch's ANOVA\n- [ ] Fisher's least significant difference\n\n### Regressions ###\n\n- [ ] Linear regression\n- [ ] Multiple linear regression\n- [ ] Pearson's correlation\n- [ ] Spearman correlation\n\n### Support \u0026amp; other ###\n\n- [x] Basic assumption framework\n- [ ] Confidence intervals (general idea)\n- [ ] Basic data structures\n- [ ] Significance methods on data structures\n- [ ] Test using R integration and something like [Rantly](https://github.com/hayeah/rantly)\n\n## Resources ##\n\n- [How to choose the right statistical test](http://www.graphpad.com/support/faqid/1790/)\n- [Wilkinson's *Statistics Quiz* (RTF)](http://tspintl-test.com/products/tsp/benchmarks/wilk.rtf)\n- Assessing the reliability of statistical software\n  - [Part 1](http://www.questia.com/googleScholar.qst?docId=5001390400)\n  - [Part 2](http://www.questia.com/googleScholar.qst?docId=5001888610)\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavejacobs%2Fstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavejacobs%2Fstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavejacobs%2Fstats/lists"}