Ridge regression adds which penalty term to the least-squares loss?
A
Number of non-zero coefficients
B
Sum of squared coefficients (L2)
Correct answer
C
Sum of absolute coefficients (L1)
D
Square of the intercept term only
Correct answer
B. Sum of squared coefficients (L2)
19 views
⚔️
Challenge a friend on Linear Regression
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
Ridge (L2) shrinks all coefficients toward zero but rarely makes any exactly zero. Lasso (L1) can set coefficients to zero, which performs feature selection.
Reference
Asked in: Data Science Interviews, GATE DA
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ A fitted regression line is ŷ = 3 + 2x. What is the predicted value when x = 5? Next MCQ › Adjusted R² differs from ordinary R² because it: