PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Statistics & Math/TikTok

Derive L1 vs L2 effects with correlation

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of regularization methods (ridge/L2, LASSO/L1, and elastic net), multicollinearity effects, geometric intuition of constraint sets, and hyperparameter influence on coefficient patterns in the Statistics & Math domain.

  • medium
  • TikTok
  • Statistics & Math
  • Data Scientist

Derive L1 vs L2 effects with correlation

Company: TikTok

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

Two standardized predictors x1 and x2 have corr(x1,x2)=0.99. You observe X'X = [[100,99],[99,100]] and X'y = [120,120]. (1) Compute the ridge (L2) estimate w_ridge = (X'X + λI)^{-1} X'y for λ=10 (give numeric weights to 2 decimal places) and explain why L2 prefers sharing weight. (2) Without solving the full LASSO, argue which coefficient pattern the L1 solution is likely to produce for λ1=10 (both similar and small, one near zero and the other large, or something else?) and why, using the geometry of L1 vs L2 constraint sets under high collinearity. (3) Propose elastic-net penalties (α and λ) that would stabilize selection while controlling variance; justify how you would tune α and λ and which validation metric you would pick if the goal is sparse interpretation with minimal loss in PR-AUC.

Quick Answer: This question evaluates understanding of regularization methods (ridge/L2, LASSO/L1, and elastic net), multicollinearity effects, geometric intuition of constraint sets, and hyperparameter influence on coefficient patterns in the Statistics & Math domain.

Related Interview Questions

  • Explain Type I/II errors vs precision/recall - TikTok (easy)
  • Compute cluster-aware significance and sequential corrections - TikTok (medium)
  • Model overdispersed counts; estimate treatment lift - TikTok (Medium)
  • Decide if subgroup increases imply overall increase - TikTok (medium)
  • Control confounding in observational ad lift - TikTok (hard)
TikTok logo
TikTok
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Statistics & Math
3
0

Multicollinearity: Ridge vs LASSO vs Elastic Net

Setup

  • Two standardized predictors x1 and x2 with corr(x1, x2) = 0.99.
  • X'X = [[100, 99], [99, 100]] and X'y = [120, 120].

Tasks

  1. Compute the ridge (L2) estimate w_ridge = (X'X + λI)^{-1} X'y for λ = 10. Report numeric weights to 2 decimal places and explain why L2 prefers sharing weight under high collinearity.
  2. Without solving the full LASSO, argue which coefficient pattern the L1 solution is likely to produce for λ1 = 10: both similar and small, one near zero and the other large, or something else? Justify using the geometry of L1 vs L2 constraint sets under high collinearity.
  3. Propose elastic-net penalties (α and λ) that would stabilize selection while controlling variance. Explain how you would tune α and λ and which validation metric you would pick if the goal is sparse interpretation with minimal loss in PR-AUC.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More TikTok•More Data Scientist•TikTok Data Scientist•TikTok Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.