Computing simple regression