Skip to content
An experiment with stats, the Ruby way
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Ruby needs a solid, beautiful stats library. We're here to build just that. This is a rapidly moving work in progress.

To implement

Distribution functions

  • Normal distribution - PDF & CDF
  • Chi square distribution - PDF
  • T distribution - PDF & CDF
  • F distribution - PDF & CDF

Basic functions

  • Mean, arithmetic
  • Mean, geometric
  • Median
  • Mode
  • Variance
  • Standard deviation
  • Standard error of the mean (for samples only)
  • Relative standard error of the mean (for samples only)
  • Coefficient of variation

Significance tests

  • Chi square, one-sided
  • T-test, single sample
  • T-test, two-sample
  • T-test, repeated measures
  • Wilcoxon rank sum test
  • Wilcoxon signed rank test
  • Median test
  • Kruskall-Wallis H test
  • Friedman test
  • ANOVA, one way
  • Factorial ANOVA, two-way
  • Factorial ANOVA, three-way
  • ANOVA, repeated measures


  • Linear regression
  • Multiple linear regression
  • Pearson's correlation
  • Spearman correlation

Support & other

  • Basic assumption framework
  • Confidence intervals (general idea)
  • Basic data structures
  • Significance methods on data structures


Something went wrong with that request. Please try again.