corr()

Calculates the Pearson correlation coefficient for each group. It eliminates expression pairs where either expression in the pair returns null or a non-numeric value.

Syntax

corr(EXPR_X, EXPR_Y)
Required Parameter
EXPR_X
Numeric expression
EXPR_Y
Second numeric expression

Usage

json "{}" 
| repeat count=100
| eval n1=seq(), n2=sqrt(seq()) 
| stats corr(n1, n2)