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 | |
|---|---|---|---|---|---|
![]() |
inValues1 | list[float] | Array of values of the first variable | ||
![]() |
inValues2 | list[float] | Array of values of the second variable | ||
![]() |
inWeights | list[float] | Weights corresponding to the elements of 'inValues1' and 'inValues2' | ||
![]() |
inMinStdDev | float | 0.0 - ![]() |
0.001 | Minimum value of standard deviation for correlation to be non-zero |
![]() |
outCorrelation | float | Computed correlation coefficient between two variables |



