where ¯x and ¯y are the sample means of both variables. ρ measures whether, on
average, xi and yi are associated. For a single variable, say x, I will measure
whether xi and xj , with i 6= j, are associated. Note that with ρ, xi and xj are
not associated since the pairs (xi
, yi) are assumed to be independent of each
other