L1 Versus L2 Regularization on Correlated Credit Features

Last updated: November 29, 2026

Quick Overview

A logistic regression default model uses many correlated bureau attributes, such as several overlapping utilization and inquiry counts. Explain how L1 and L2 regularization behave here and which you would choose.

Upstart
Machine Learning
Data Scientist
Upstart
November 29, 2026
Data Scientist
Phone Screen
Machine Learning
Easy

0

0

0 solved


A logistic regression default model uses many correlated bureau attributes, such as several overlapping utilization and inquiry counts. Explain how L1 and L2 regularization behave here and which you would choose.

Upstart's data science screens include fundamentals around regularization because credit data is full of near-duplicate attributes. The interviewer checks that you know the geometric intuition, how each penalty treats correlated groups, and how interpretability requirements in lending shape the choice.

What the Interviewer Expects
  • State the L1 and L2 penalty terms
  • Explain sparsity from L1 and shrinkage from L2
  • Describe behavior on correlated features
  • Mention elastic net as a middle ground
  • Tie the choice to interpretability and stability
Key Topics to Cover
regularization
lasso
ridge
multicollinearity
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you choose the regularization strength?
  • Why must features be standardized before applying these penalties?
  • How does regularization interact with adverse action reason codes?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Model: logistic regression minimizing log loss plus a penalty on weights ww. Many features are highly correlated. I care about out-of-sample accuracy and about stable, explainable coefficients, since...

Approach

L2 (ridge) adds λ∑wj2\lambda \sum w_j^2; L1 (lasso) adds λ∑∣wj∣\lambda \sum |w_j|. Geometrically, the L1 constraint region has corners on the axes, so the optimum often lands where some weights are exactly z...


Submit Your Answer
Markdown supported