sampleCorrelation
sampleCorrelation(
x,y):number
Defined in: src/sample_correlation.js:15
The correlation is a measure of how correlated two datasets are, between -1 and 1
Parameters
Section titled “Parameters”number[]
first input
number[]
second input
Returns
Section titled “Returns”number
sample correlation
Example
Section titled “Example”sampleCorrelation([1, 2, 3, 4, 5, 6], [2, 2, 3, 4, 5, 60]).toFixed(2);// => '0.69'