Compare Logistic Regression and Random Forest in Python
Company: Capital One
Role: Data Scientist
Category: Machine Learning
Difficulty: medium
Interview Round: Technical Screen
Quick Answer: Compare logistic regression and random forest for a binary classification problem implemented in Python. Cover preprocessing pipelines, regularization, nonlinear interactions, leakage-safe validation, class imbalance, calibration, threshold choice, and production trade-offs.