Both are tree ensembles, but one averages independent deep trees to kill variance and the other adds shallow trees in sequence to kill bias. That single difference dictates the failure modes, the tuning burden, and which one you hand a customer who will retrain it after you leave.
Gradient boosting vs random forests: how does each build trees, the bias-variance behavior, and when to pick which?
Both are tree ensembles, but one averages independent deep trees to kill variance and the other adds shallow trees in sequence to kill bias. That single difference dictates the failure modes, the tuning burden, and which one you hand a customer who will retrain it after you leave.
Updated Aug 2026 · Grounded in real Forward Deployed Engineer interview loops and written to a senior-engineer editorial bar.
The screen is whether the candidate ties the building procedure to the bias-variance story to the operational consequence, not just 'boosting is usually more accurate.' The reserved follow-up is the failure modes: boosting overfits noisy labels and outliers because it chases residuals, while a forest is hard to overfit but cannot easily reach the last few points of accuracy. Naming early stopping for boosting and OOB error for forests is the practitioner tell.
No comments yet — be the first to share your approach.
