Compute the value of the correlation coefficient