Spearman-RHO
Spearman's rank correlation coefficient in NodeJS.
In statistics, Spearman's rank correlation coefficient (or Spearman's rho) is a nonparametric measure of statistical dependence between two variables.
It assesses how well the relationship between two variables can be described using a monotonic function. If there are no repeated data values, a perfect Spearman correlation of +1 or −1 occurs when each of the variables is a perfect monotone function of the other. (Wikipedia)
npm install spearman-rho --save
"use strict"; const SpearmanRHO = ; const x = 20 30 30 50 55 80 100 100;const y = 15 15 40 30 10 50 50 95; const spearmanRHO = x y;spearmanRHO ;// 0.6829268292682927