pearson correlation
This block is part of the number group and was last modified in core v10.4.28.
pearson correlation v10.4.28 Returns the square root of a given positive number.
- dataset 1 required
arrayAccepts a dataset with the following format: []number.
- dataset 2 required
arrayAccepts a dataset with the following format: []number.
- number
number
Outputs the Pearson correlation coefficient between dataset_1 and dataset_2 (1 = perfect positive linear correlation, -1 = perfect negative). Items coerce per number rules (numeric strings and booleans count, other values are dropped) and both datasets are truncated to the shorter filtered length before pairing. Outputs 0 when either dataset ends up empty or has zero variance. Example: [1,2,3] vs [2,4,6] -> 1.
A typical wiring for pearson correlation: with values feeds the dataset_1 pin; with values feeds the dataset_2 pin; the number out pin feeds cast to value.
Version history
Introduced in v10.4.28.
Back to
number Return to the main group to view all sub-groups Back to math Return to the group to view all blocks within this group 