Why do tree ensembles handle mixed categorical and numerical features better than linear models?

Last updated 14 November 2026

  • Trees split on one feature at a time using only rank order, so mixed units and scales coexist without standardization.

  • Some implementations split on category subsets directly, and interactions across feature types arise from nested splits. Linear models need one-hot encoding, scaling and manual interaction terms.

  • Caveat: splits can overfit high-cardinality categoricals (use regularization or CatBoost's ordered statistics), and plain sklearn forests still need numeric encoding.

  • https://www.geeksforgeeks.org/machine-learning/decision-trees-vs-clustering-algorithms-vs-linear-regression/
  • https://ar5iv.labs.arxiv.org/html/2207.08815
All Supervised Learning interview questions