PearsonCorrelation_Weighted


Computes Pearson product-moment correlation coefficient with weights.

Syntax

C++
Python
 
def PearsonCorrelation_Weighted(
	inValues1: list[float],
	inValues2: list[float],
	inWeights: 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 inWeights list[float] Weights corresponding to the elements of 'inValues1' and 'inValues2'
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