PearsonCorrelation


Computes Pearson product-moment correlation coefficient. The array must be not empty.

Syntax

C++
Python
 
def PearsonCorrelation(
	inValues1: list[float],
	inValues2: list[float],
	/,
	*,
	inMinStdDev: float = 0.001
)
-> outCorrelation: float

Parameters

Name Type Range Default Description
Input value inValues1 list[float] Array of values of the first variable
Input value inValues2 list[float] Array of values of the second variable
Input value inMinStdDev float 0.0 - 0.001 Minimum value of standard deviation for correlation to be non-zero
Output value outCorrelation float Computed correlation coefficient between two variables