added logistic regression equation