Questions: Logistic Regression for Classification

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A logistic regression model outputs 0.73 for a patient in a cancer screening dataset. A colleague says 'the model predicted cancer.' What is missing from this interpretation?

ANothing is missing — 0.73 means the model predicts cancer, since it is greater than 0.5
BThe decision threshold: 0.73 is a probability, and classification requires a separate threshold choice. The default 0.5 is not always correct
CThe model should output 0 or 1 directly; 0.73 indicates the model is poorly calibrated
DThe model must be compared to a baseline before any prediction can be made
Question 2 Multiple Choice

A logistic regression is trained on two features x₁ and x₂. A student claims the decision boundary must be curved because the sigmoid function is nonlinear. Is the student correct?

AYes — the sigmoid introduces nonlinearity, so the boundary is a curve in feature space
BNo — the decision boundary is where the linear combination w₁x₁ + w₂x₂ + b = 0, which is always a straight line (or hyperplane), regardless of the sigmoid
CIt depends — the boundary is linear only if the two classes are perfectly separable
DYes — the boundary is nonlinear unless regularization is applied
Question 3 True / False

Logistic regression directly outputs a binary classification label (0 or 1) for each input.

TTrue
FFalse
Question 4 True / False

Cross-entropy loss penalizes confident wrong predictions more severely than mean squared error, making it better suited for logistic regression training.

TTrue
FFalse
Question 5 Short Answer

Why is mean squared error (MSE) not the standard loss function for logistic regression, even though logistic regression uses a regression-like framework?

Think about your answer, then reveal below.