CORR(Lakehouse v2)
2つの式の間のピアソン相関係数を返します。
Analyzeの構文
Section titled “Analyzeの構文”func.corr(get_column(table, 'revenue'), get_column(table, 'ad_spend'))Analyzeの例
Section titled “Analyzeの例”func.corr(get_column(table, 'revenue'), get_column(table, 'ad_spend'))
┌───────┐│ 0.872 │└───────┘SQLの構文
Section titled “SQLの構文”CORR(<revenue>, <ad_spend>)SELECT CORR(revenue, ad_spend) FROM marketing;
┌───────┐│ 0.872 │└───────┘