How to calculate the regression equation