Javascript library for Pearson and/or Spearman correlations

correlation, javascript, statistics

Solution

There is this

http://stevegardner.net/2012/06/11/javascript-code-to-calculate-the-pearson-correlation-coefficient/

apart from that you could try:

http://www.jstat.org/download

alternatively if neither of those fit the bill and you don't want to write one yourself you can always use:

http://www.rforge.net/Rserve/

with

http://www.gardenersown.co.uk/education/lectures/r/correl.htm

to do it.

Problem

Is there a Javascript library available for doing Spearman and/or Pearson correlations?

Original source