jtescher / descriptive-statistics

This gem calculates descriptive statistics including measures of central tendency (e.g. mean, median mode), dispersion (e.g. range, and quartiles), and spread (e.g variance and standard deviation).
http://rubygems.org/gems/descriptive-statistics
MIT License
106 stars 14 forks source link

R squared, also called the square of the Pearson product-moment correlation coefficient #4

Closed shinokada closed 10 years ago

shinokada commented 10 years ago

It will be great to calculate this as well.

jtescher commented 10 years ago

I'm not quite sure that R squared is in the scope of this gem. This is meant to calculate descriptive statistics and R squared seems to be more related to regression analysis and statistical modeling in general. You may be more interested in projects like https://github.com/escline/linefit or others that are geared toward this type of modeling.