COVAR_POP
Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API
Computes the population covariance between two sets of values.
<Y>: Adouble precisionexpression.<X>: Adouble precisionexpression.
Returns a double precision value representing the population covariance. Returns NULL if the computation is meaningless.
- Returns NULL if there are no rows where both X and Y are non-null.
- Population covariance uses N in the denominator.
- Use
COVAR_SAMPfor sample covariance (uses N-1 in the denominator).
Find the population covariance between two variables.
Calculate covariance for each group.