Skip to content

pearsonCorrelation

pearsonCorrelation(x, y): any

Defined in: ds/src/stats/tests.js:692

Pearson correlation coefficient with significance test

Parameters

x

number[]

First variable

y

number[]

Second variable

Returns

any

{r, pValue, df, ci95}