Logistic regression homework