Calculate the covariance between two numeric variables.
COVAR(<expr1>, <expr2>)
| Parameter | Description |
|---|---|
<expr1> | Numeric expression or column |
<expr2> | Numeric expression or column |
Returns the covariance value of expr1 and expr2, special case:
select covar(x,y) from baseall;
+---------------------+ | covar(x, y) | +---------------------+ | 0.89442719099991586 | +---------------------+