MODULE 08 ยท Junior+ ยท 2 hours

On tabular data, boosting beats neural networks

Logistic regression scored 0.834, the random forest 0.861, boosting 0.874. We work out where the gap comes from and why trees keep winning on tables.

Open this module in the simulator All 23 lessons

The first two modules are free, no card. The rest are $20/month.

๐Ÿข The situation

The churn model from module 5 has been live for a month. Lena at planning:

"Logreg gave ROC-AUC 0.83 โ€” a good start. Retention asks for more precision: every extra percent of quality is hundreds of retained customers. Time to bring out the heavy artillery of tabular ML: trees and ensembles. Compare Random Forest and gradient boosting with our logreg. Spoiler: on tabular data boosting almost always beats neural networks โ€” understand why."

๐ŸŽฏ Your task

  1. Understand how a decision tree works and why a single tree is weak.
  2. Master the two ensemble strategies: bagging (Random Forest) and boosting.
  3. Beat the baseline and explain the gain.

๐Ÿ“š Theory

The decision tree

A tree splits the data with a series of "feature > threshold?" questions, at each step choosing the split that maximally reduces "impurity" (Gini/entropy). Pros: needs no scaling, captures non-linearities and feature interactions, interpretable. Con: a single tree overfits easily โ€” a deep tree memorizes noise.

Ensembles: the wisdom of the crowd

The idea: many weak models that err differently are together more accurate than one strong model.

Bagging โ†’ Random Forest:

Boosting โ†’ XGBoost / LightGBM / CatBoost:

Bagging (Random Forest) independent trees, in parallel sample 1 sample 2 sample 3 averaging the votes โ†“ variance, robust to overfitting Boosting (LightGBM/XGBoost) sequential trees, each fixes the errors residuals residuals tree 1 tree 2: errors of #1 tree 3: errors of 1+2 weighted sum more accurate, but needs early stopping
Two ensemble strategies: the forest averages independent trees; boosting builds a chain where each tree fixes the errors of the previous ones.
Random Forest Gradient Boosting
Strategy parallel, averaging sequential, error correction
Overfitting robust needs control (early stopping)
Training speed faster (parallel) slower, but LightGBM is very fast
Tabular quality good usually the best

Key boosting hyperparameters

Why boosting > neural nets on tables

Tabular data is heterogeneous (money, counters, categories) and the dependencies are piecewise-sharp ("delinquency > 30 days โ†’ risk jumps"). Trees model such thresholds natively; neural networks struggle. Confirmed by industry and Kaggle: for tables the default is gradient boosting.


What to remember

  • A single tree overfits; the power is in ensembles.
  • Bagging reduces variance by averaging; boosting sequentially corrects errors.
  • Early stopping on validation is the standard for boosting.
  • For tabular data gradient boosting is the industry default.

Next in this module: Practice

Open the module โ†’

Nearby lessons

07 Credit scoring: data decides everything 09 Incident: the model fell apart in production

The whole program โ€” 23 lessons