COVAR_POP

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Computes the population covariance between two sets of values.

  • <Y>: A double precision expression.
  • <X>: A double precision expression.

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_SAMP for sample covariance (uses N-1 in the denominator).

Find the population covariance between two variables.

Calculate covariance for each group.