Compare logistic regression and decision trees on latency, interpretability and feature interaction

Quick Overview

Compare logistic regression and decision trees on scoring latency, interpretability and the way each handles feature interactions. It tests reasoning about serving cost, coefficient explanations versus decision paths, non-linear effects, and when each model is the better choice.

Compare logistic regression and decision trees on latency, interpretability and feature interaction

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Explain the differences between logistic regression and decision trees in the context of latency, interpretability, and feature interaction. ```hint Count the work Estimate how many operations each model needs to score one example, and consider what changes when a single tree becomes an ensemble of hundreds. ``` ```hint Two features at once Ask whether a logistic regression on two raw features can express a rule like "risky only when both values are high". ``` ### What a Strong Answer Covers - The scoring cost of each model, including tree ensembles and feature preprocessing - What kind of explanation each model gives and when that explanation stops being reliable - How each model handles interactions and non-linear effects, ideally with a concrete example - A reasoned rule for choosing between them ### Follow-up Questions - How would you capture interactions in logistic regression without writing every product term by hand? - Why are single decision trees unstable, and how do ensembles change the interpretability picture? - Which model gives better-calibrated probabilities out of the box, and how would you fix the other one? - When would a tree struggle with a relationship that logistic regression handles easily?

Overview: Compare logistic regression and decision trees on scoring latency, interpretability and the way each handles feature interactions. It tests reasoning about serving cost, coefficient explanations versus decision paths, non-linear effects, and when each model is the better choice.

PracHub logo
General
Nov 25, 2026
mediumData ScientistOtherMachine Learning
0
0

Explain the differences between logistic regression and decision trees in the context of latency, interpretability, and feature interaction.

What a Strong Answer Covers Guidance

  • The scoring cost of each model, including tree ensembles and feature preprocessing
  • What kind of explanation each model gives and when that explanation stops being reliable
  • How each model handles interactions and non-linear effects, ideally with a concrete example
  • A reasoned rule for choosing between them

Follow-up Questions Guidance

  • How would you capture interactions in logistic regression without writing every product term by hand?
  • Why are single decision trees unstable, and how do ensembles change the interpretability picture?
  • Which model gives better-calibrated probabilities out of the box, and how would you fix the other one?
  • When would a tree struggle with a relationship that logistic regression handles easily?