VeloDB Cloud
SQL Manual
SQL Functions
Aggregate Functions
COVAR,COVAR_POP

COVAR,COVAR_POP

Description

Syntax

double covar(x, y)

Calculate the covariance between x and y.

example

mysql> select covar(x,y) from baseall;
+---------------------+
| covar(x, y)         |
+---------------------+
| 0.89442719099991586 |
+---------------------+
1 row in set (0.21 sec)

keywords

COVAR, COVAR_POP