COVAR_SAMP (Lakehouse v2)
Returns the sample covariance of two expressions.
Analyze Syntax
Section titled “Analyze Syntax”func.covar_samp(get_column(table, 'y'), get_column(table, 'x'))Analyze Examples
Section titled “Analyze Examples”func.covar_samp(get_column(table, 'height'), get_column(table, 'weight'))
┌────────┐│ 103.01 │└────────┘SQL Syntax
Section titled “SQL Syntax”COVAR_SAMP(<y>, <x>)SQL Examples
Section titled “SQL Examples”SELECT COVAR_SAMP(height, weight) FROM measurements;
┌────────┐│ 103.01 │└────────┘