COVAR_SAMP

Returns the sample covariance of two expressions.

Analyze Syntax

func.covar_samp(get_column(table, 'y'), get_column(table, 'x'))

Analyze Examples

func.covar_samp(get_column(table, 'height'), get_column(table, 'weight'))

┌────────┐
 103.01 
└────────┘

SQL Syntax

COVAR_SAMP(<y>, <x>)

SQL Examples

SELECT COVAR_SAMP(height, weight) FROM measurements;

┌────────┐
 103.01 
└────────┘