Why are the trees in a Random Forest usually grown deep without pruning?
Last updated
Averaging reduces variance but not bias. The forest therefore wants low-bias, high-variance trees, which fully grown trees are, and lets averaging over decorrelated trees remove the variance. Pruning would add bias that the ensemble cannot undo.
Bias–variance logic:
A deep tree fits fine structure: low bias, but high variance.
The bias of the average is roughly the bias of a single tree, so any bias added by pruning carries straight through to the forest.
Variance is handled elsewhere:
Bootstrap samples and random feature subsets decorrelate the trees.
Their individual overfitting errors partly cancel when averaged, shrinking the (1 − ρ)σ²/B term.
Practical bonus: No pruning step means no cost-complexity tuning and faster, simpler training.
Caveats:
On very noisy or small data, mild limits often help:
min_samples_leaformax_depth. Common defaults include leaf size 5 for regression.Fully grown trees can also be very large in memory and slow at prediction time.
- https://medium.com/@saraswataroy21/mastering-random-forests-advanced-techniques-for-optimal-ensemble-learning-in-machine-learning-45e65b94b848
- https://medium.com/@nidhishnumbers/random-forest-math-assumptions-key-insights-47309b13fd50
- https://medium.com/@ilma.khan1699/the-random-forest-algorithm-70698890bf11