Skip to content
RED SAGSkills
mediumData Scientist interview question

How do you decide between a regularised linear model and a gradient boosted tree model for a tabular problem?

What the interviewer wants to hear

  • Linear models are interpretable, stable and good with few rows or many sparse features
  • Boosted trees capture non-linearity and interactions with little feature work
  • Consider explainability, latency and maintenance needs
  • Compare both against a baseline with proper validation

Model answer

I usually try both, because the comparison itself is informative. A regularised linear or logistic model is fast, stable, easy to explain with coefficients and works well when data is small, very wide or sparse, such as text features. It needs manual work for non-linear effects and interactions. Gradient boosted trees usually win on accuracy for medium to large tabular data because they find non-linearities and interactions automatically and handle missing values and mixed scales. The trade-offs are less transparent explanations, more tuning and a higher risk of overfitting on small data. I would also weigh the context: if a regulator needs clear reasons, or the gain from boosting is tiny, I prefer the linear model. I compare them on the same validation scheme against a simple baseline, and look at calibration and stability across time periods, not only the headline metric.

Can you answer it under time pressure?

Take a timed medium round and get scored on every answer.

Start mock interview

More medium Data Scientist questions