Calculate the regression equation