corrStable
corrStable
Introduced in: v1.1
Calculates the Pearson correlation coefficient:
Similar to the corr function, but uses a numerically stable algorithm.
As a result, corrStable is slower than corr but produces a more accurate result.
Syntax
Аргументы
x— первая переменная.(U)Int*илиFloat*илиDecimaly— вторая переменная.(U)Int*илиFloat*илиDecimal
Returned value
Returns the Pearson correlation coefficient. Float64
Examples
Basic correlation calculation with stable algorithm