RubyFlow The Ruby and Rails community linklog

Calculating the Pearson correlation coefficient using R and Ruby

In a previous article I talked about using the GNU scientific library to implement the Pearson correlation coefficient algorithm, as used for example in acts_as_recommendable. As a prelude to some forthcoming articles, I’d like to show you how easy it is to implement the same thing using the Ruby bindings to the statistical tools provided by the R project.

Comments

That should read “correlation coefficient” of course… sorry.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in