Tree-based models predict an outcome by splitting data into groups with a series of yes-or-no rules, forming a decision tree. Single trees are easy to read; ensembles such as random forests and gradient boosting combine many trees for more accurate predictions. They handle mixed data types and nonlinear effects well.
Types
There are three main kinds:
- Decision tree: one tree of rules. Easy to explain, but unstable and prone to overfitting.
- Random forest: many trees built on random samples of the data and variables, with their predictions averaged.
- Gradient boosting: trees built one after another, each correcting the errors of the ones before.
Use with simulation
Tree-based models are often used to forecast demand, failures or processing times that feed a simulation, and to explain which factors drive a result, such as which product features drive changeover time.
Common mistakes
These are the mistakes we see most often:
- Letting a single tree grow until it memorizes the training data.
- Reading variable importance as cause and effect.
Tree-based models FAQ
A random forest averages many independent trees; gradient boosting builds trees in sequence, each fixing the errors of the last.
A single tree is. Ensembles are less so, but tools such as variable importance and partial dependence plots help explain them.
Related: Predictive modeling · Support vector regression · Glossary