L2 Regularization for Variance Reduction
A data scientist is building a regression model to predict house prices. The dataset contains features like number of bedrooms, square footage, and location. After training, the model has high variance. Which technique should the data scientist use to reduce variance without significantly increasing bias?
Quick Answer
High variance means the model is fitting the training data's idiosyncrasies too closely, and the standard remedy is to constrain the model's complexity in a way that discourages that overfitting without throwing away useful signal, which is exactly what L2 (Ridge) regularization does. L2 regularization adds a penalty term to the loss function proportional to the sum of the squared coefficients, which pushes the model toward smaller coefficient values overall rather than eliminating any of them outright; in practice this means no single feature can dominate the model's predictions the way it might in an unregularized fit, which directly reduces sensitivity to the specific quirks of the training set. This is why it reduces variance without significantly increasing bias: the penalty shrinks coefficients gradually and proportionally rather than forcing a fundamentally simpler model structure, so the model retains the ability to use all the available features while just being less prone to overreacting to noise in any one of them. The other options don't fit as cleanly: adding more features would increase model complexity and likely worsen variance rather than reduce it, and simply training on fewer examples tends to increase bias and can even increase variance further due to less data to learn stable patterns from. Whenever a model shows high variance and the question specifically asks for a fix that avoids meaningfully raising bias, regularization techniques like L2 are usually the intended answer, since they shrink model complexity smoothly rather than through a blunt structural change.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Apply L2 regularization
L2 regularization (Ridge) penalizes large coefficients, effectively shrinking them and reducing model complexity, which lowers variance without substantially increasing bias. Option A (bagging) also reduces variance, but the question asks for a technique that reduces variance without significantly increasing bias; regularization is a more direct and common approach for high variance in regression. Option B (increasing features) would increase model complexity and variance, worsening the problem. Option D (fewer training examples) would increase bias and potentially variance due to less data.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use bagging
Why it's wrong here
Bagging reduces variance but regularization is more direct.
- ✗
Increase the number of features
Why it's wrong here
More features increase variance.
- ✓
Apply L2 regularization
Why this is correct
L2 regularization penalizes large coefficients, reducing variance.
- ✗
Use fewer training examples
Why it's wrong here
Fewer examples increase variance.
Go deeper
Related to this question
About these practice questions
Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on MLS-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A data scientist is building a regression model to predict house prices. The dataset has 10 features, and the model shows high variance with a low bias. Which technique should the data scientist use to reduce variance?
easy- ✓ A.Apply L2 regularization to the model.
- B.Increase the depth of decision trees in the ensemble.
- C.Add more features to the model.
- D.Reduce the amount of training data.
Why A: L2 regularization (Ridge regression) penalizes large coefficients by adding a squared magnitude term to the loss function, which shrinks the model's weights and reduces variance without substantially increasing bias. This directly addresses the high-variance, low-bias symptom, making the model less sensitive to fluctuations in the training data.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.