Compute the linear correlation coefficient