COVAR_SAMP(Lakehouse v2)
2つの式の標本共分散を返します。
Analyzeの構文
Section titled “Analyzeの構文”func.covar_samp(get_column(table, 'y'), get_column(table, 'x'))Analyzeの例
Section titled “Analyzeの例”func.covar_samp(get_column(table, 'height'), get_column(table, 'weight'))
┌────────┐│ 103.01 │└────────┘SQLの構文
Section titled “SQLの構文”COVAR_SAMP(<y>, <x>)SELECT COVAR_SAMP(height, weight) FROM measurements;
┌────────┐│ 103.01 │└────────┘