Compute linear correlation between input variables