How Does Logistic Regression Work?