In a random sample of n pairs of values of X and Y, (xi, yj) occurs fij times for i = 1, 2, . . . , r and j = 1, 2, . . . , c. Letting fi, denote the number of pairs where X takes on the value xi and fj the number of pairs where Y takes on the value yj, write a formula for the coefficient of correlation.