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