Compute the correlation coefficient