Regression Quiz
Check your understanding of linear and logistic regression — what OLS optimizes, how L1 and L2 regularization differ, and what the sigmoid really outputs.
Exercise
Ordinary least squares chooses the line that minimizes what?
Need a hint?
Residual = actual − predicted.
Exercise
An R² of 0.8 means what?
Need a hint?
Compare your model's squared error to that of always predicting the mean.
Exercise
What distinguishes Lasso (L1) from Ridge (L2) regularization in practice?
Need a hint?
Look at the shape of the L1 constraint region — it has corners.
Exercise
What does logistic regression output for an input x?
Need a hint?
The sigmoid squashes wᵀx + b into (0, 1).
Exercise
What shape is logistic regression's decision boundary?
Need a hint?
Where does σ(wᵀx + b) = 0.5?
Exercise
You're predicting the number of support tickets per day (0, 1, 2, …). Which GLM fits naturally?
Need a hint?
The outcome is a non-negative count.
Exercise
Adding an L2 (ridge) penalty to least squares changes which slot of the ML project loop?
Need a hint?
You are modifying the quantity being minimized.
Exercise
Transfer test — a technique this course did NOT teach: a random forest replaces a single linear model with an ensemble of decision trees. Which slot does that change?
Need a hint?
It swaps the family of functions the model can express.