Learning Path
Question & Answer1
Understand Question2
Review Options3
Learn Explanation4
Explore TopicChoose the Best Answer
A
By adding a penalty equal to the absolute value of the coefficients
B
By increasing the number of features used
C
By removing all features that contribute to the model
D
By minimizing the sum of squared errors only
Understanding the Answer
Let's break down why this is correct
Answer
Lasso regression keeps the ordinary least‑squares loss (the sum of squared errors) but adds a penalty that is proportional to the sum of the absolute values of the regression coefficients, multiplied by a tuning parameter λ. Because the penalty grows with the size of the coefficients, the optimizer is forced to keep them small, and when λ is large some coefficients are driven exactly to zero, effectively removing those predictors from the model. This shrinkage reduces the model’s flexibility, so it fits the training data less tightly and is less likely to capture random noise, which is the main cause of overfitting. For example, if a simple two‑feature model has coefficients 3. 2 and –1.
Detailed Explanation
It adds a penalty that equals the sum of the absolute values of the coefficients. Other options are incorrect because Adding more features usually increases complexity and can worsen overfitting; Removing all features would leave nothing to predict.
Key Concepts
Lasso regression
loss function adjustment
Topic
Regularizers in Predictive Models
Difficulty
medium level question
Cognitive Level
understand
Practice Similar Questions
Test your understanding with related questions
1
Question 1Which type of loss function incorporates regularization to prevent overfitting in a machine learning model?
mediumComputer-science
Practice
2
Question 2Which of the following best describes the role of loss functions in predictive modeling?
easyComputer-science
Practice
3
Question 3What effect does increasing the strength of Lasso regularization (`1) have on a predictive model's coefficients?
mediumComputer-science
Practice
Ready to Master More Topics?
Join thousands of students using Seekh's interactive learning platform to excel in their studies with personalized practice and detailed explanations.