Logistic Regression [40 points]