Why can tree-based models capture non-linear relationships out of the box while linear models need explicit basis expansions?

Last updated 14 November 2026

  • A tree recursively splits the input space into regions with constant predictions, so it learns its own basis functions and can approximate steps, thresholds and curves.

  • Nested splits encode feature interactions automatically, since each path is a conjunction of conditions.

  • A linear model (y = w·x + b) can only represent hyperplanes, so curves need manual expansions (polynomials, splines, logs, interactions) or kernels.

  • https://aml4td.org/chapters/interactions-nonlinear.html
All Supervised Learning interview questions