DB
FunctionsStatistical

corr

Computes Pearson correlation over paired numeric inputs in the current batch and returns the computed coefficient for each output row.

corr(…) → Float64

Kind · scalar · aggregate

scalar — Computes Pearson correlation over paired numeric inputs in the current batch and returns the computed coefficient for each output row.

aggregate — Computes Pearson correlation for two numeric expressions over the aggregate group. Rows with NULLs are ignored.

Part of the Statistical family.