콘텐츠로 이동

두 식 사이의 피어슨 상관 계수를 반환합니다.

func.corr(get_column(table, 'revenue'), get_column(table, 'ad_spend'))
func.corr(get_column(table, 'revenue'), get_column(table, 'ad_spend'))
┌───────┐
│ 0.872 │
└───────┘
CORR(<revenue>, <ad_spend>)
SELECT CORR(revenue, ad_spend) FROM marketing;
┌───────┐
│ 0.872 │
└───────┘