Skip to content

Returns the sample covariance of two expressions.

func.covar_samp(get_column(table, 'y'), get_column(table, 'x'))
func.covar_samp(get_column(table, 'height'), get_column(table, 'weight'))
┌────────┐
103.01
└────────┘
COVAR_SAMP(<y>, <x>)
SELECT COVAR_SAMP(height, weight) FROM measurements;
┌────────┐
103.01
└────────┘