Function kirstine::correlation
source · Expand description
Pearson correlation coefficient
This is what is normally referred to when talking about finding the correlation.
The data
is a vector of tuples with x
and y
data points. Returns a number between -1
and 1.