What is the primary difference between standard bagged trees and a Random Forest?

Last updated 5 November 2026

Both train trees on bootstrap samples and aggregate their outputs. The difference is that a Random Forest also considers only a random subset of features at each split. This decorrelates the trees, so averaging them reduces variance further.

  • Bagged trees: every split searches all p features:

    • If a few features are very strong, almost every tree splits on them near the root.

    • The trees therefore end up looking similar and are highly correlated.

  • Random Forest: every split searches m < p random features:

    • The subset size is controlled by max_features. Common choices are √p for classification and about p/3 for regression.

    • Weaker features get a chance to be chosen, so the trees become more diverse.

  • Why decorrelation matters:

    • The variance of an average of B trees with pairwise correlation ρ is ρσ² + (1−ρ)σ²/B.

    • Adding more trees only shrinks the second term. Lowering ρ is the only way to reduce the first term, and feature subsampling does exactly that.

  • Bagging is a special case of Random Forest with max_features equal to all features.

  • Trade-off: each individual tree gets slightly worse (a small bias increase), but the ensemble's variance usually drops by much more.

  • https://scikit-learn.org/stable/modules/ensemble.html
  • https://sebastianraschka.com/faq/docs/bagging-boosting-rf.html
  • https://pub.towardsai.net/top-20-random-forest-interview-questions-answers-17e8738abfbc
All Random Forests interview questions