COVAR_POP

functionsupportedCore SQL functions

docs.snowflake.com ↗

Aggregate functionsWindow functions

Returns the population covariance for non-null pairs in a group. It is computed for non-null pairs using the following formula: (SUM(x*y) - SUM(x) * SUM(y) / COUNT(*)) / COUNT(*) Where x is the independent variable and y is the dependent variable.

Syntax

supportedpartialnot supportednot scored

Aggregate function

COVAR_POP( y , x )

Window function

COVAR_POP( y , x ) OVER ( [ PARTITION BY <expr1> ] )

Usage notes

See also

Referenced by