Decision Trees and Ensembles Interview Questions for Machine Learning
25 Decision Trees and Ensembles questions with answers for machine learning roles — 6 easy, 12 medium, 7 hard.
About Decision Trees and Ensembles
Tree-based ensembles dominate tabular ML in industry. Understand how decision trees split, why they overfit, how bagging and random forests reduce variance, and how gradient boosting with XGBoost, LightGBM and CatBoost reduces bias. Covers tuning, early stopping, monotonic constraints, permutation importance and SHAP explanations for business stakeholders.
What is the difference between Gini impurity and entropy?
Show answer
Why do single decision trees overfit and how do you control it?
Show answer
Explain bagging and how a random forest uses it.
Show answer
Train a random forest and show feature importances in scikit-learn.
Show answer
Visualise a small decision tree and its rules.
Show answer
What is boosting and how is it different from bagging?
Show answer
How does gradient boosting work?
Show answer
What makes XGBoost, LightGBM and CatBoost different?
Show answer
Your random forest model file is 2 GB and too slow for real-time scoring. What can you do?
Show answer
XGBoost validation loss starts rising after 300 rounds while training loss keeps falling. What do you do?
Show answer
Random forest and LightGBM give the same AUC. Which would you deploy?
Show answer
Train LightGBM with early stopping.
Show answer
Compute permutation importance on validation data.
Show answer
Describe a project where you improved a model's performance significantly.
Show answer
How do you decide when a model is good enough to stop tuning?
Show answer
When would you use AdaBoost and how does it re-weight samples?
Show answer
Use HistGradientBoosting with native categorical support in scikit-learn.
Show answer
Which hyperparameters matter most when tuning a gradient boosting model?
Show answer
Why can impurity-based feature importance be misleading?
Show answer
What is stacking and when is it worth it?
Show answer
Business users do not trust a gradient boosting model because it is a black box. How do you help?
Show answer
Your tree model predicts higher risk for customers with higher income, which is illogical. What do you do?
Show answer
Explain a single prediction with SHAP for a tree model.
Show answer
Your gradient boosting model performs worse on recent months than older ones. What do you check?
Show answer
Frequently asked questions
How important is Decision Trees and Ensembles in Machine Learning interviews?
Tree-based ensembles dominate tabular ML in industry. Understand how decision trees split, why they overfit, how bagging and random forests reduce variance, and how gradient boosting with XGBoost, LightGBM and CatBoost reduces bias. Covers tuning, early stopping, monotonic constraints, permutation importance and SHAP explanations for business stakeholders.
How should I use the Decision Trees and Ensembles sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.