CORR (Lakehouse v2)
返回两个表达式之间的皮尔逊相关系数。
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>)SQL 示例
Section titled “SQL 示例”SELECT CORR(revenue, ad_spend) FROM marketing;
┌───────┐│ 0.872 │└───────┘