InterviewStack.io LogoInterviewStack.io

Decision Trees and Ensemble Methods Questions

How decision trees recursively split data. Hyperparameters: max depth, min samples split, criterion. Ensemble methods: random forests, gradient boosting. Understanding why ensembles work (combining weak learners). Trade-offs: complexity, interpretability, bias-variance. When to use trees vs. linear models.

MediumTechnical
98 practiced
Explain how gradient boosting frameworks (e.g., XGBoost/LightGBM) use gradients and second-order information (Hessians) when optimizing arbitrary differentiable losses. Derive the pseudo-residuals for logistic loss and show how a tree is fit to those pseudo-residuals.
HardSystem Design
98 practiced
Design a distributed training approach for histogram-based gradient boosting on a dataset with 1 billion rows and 500 features across 20 worker nodes. Discuss data partitioning, histogram aggregation, synchronization strategy, communication costs, and fault tolerance considerations.
HardTechnical
101 practiced
Outline a method to perform model distillation from a large gradient-boosted ensemble to a small neural network to reduce inference latency. Include dataset creation for distillation training, loss functions, and evaluation/validation steps to ensure fidelity.
EasyTechnical
79 practiced
Explain the bias–variance trade-off specifically for decision trees. Use a small synthetic example (deep tree vs shallow tree) to illustrate how variance and bias change and how ensemble methods like bagging and boosting affect each.
HardTechnical
93 practiced
Compare leaf-wise (used by LightGBM) versus level-wise (used by traditional implementations) tree growth strategies. Explain why leaf-wise can be faster and achieve lower loss but can overfit and how you would mitigate that in practice for large datasets.

Unlock Full Question Bank

Get access to hundreds of Decision Trees and Ensemble Methods interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.