MANN_WHITNEY_U_TEST (Lakehouse v2)
对两个独立样本执行 Mann-Whitney U 检验。
Analyze 语法
Section titled “Analyze 语法”func.mann_whitney_u_test(get_column(table, 'sample'), get_column(table, 'treatment'))Analyze 示例
Section titled “Analyze 示例”func.mann_whitney_u_test(get_column(table, 'score'), get_column(table, 'group_id'))
┌─────────────────────────────┐│ {"U":245.0,"p-value":0.032} │└─────────────────────────────┘SQL 语法
Section titled “SQL 语法”MANN_WHITNEY_U_TEST(<sample>, <treatment>)SQL 示例
Section titled “SQL 示例”SELECT MANN_WHITNEY_U_TEST(score, group_id) FROM experiment;
┌─────────────────────────────┐│ {"U":245.0,"p-value":0.032} │└─────────────────────────────┘