Linear regression versus logistic regression