How does the max_samples parameter affect tree diversity in a Random Forest?

Last updated 5 November 2026

  • max_samples sets how many rows go into each tree's bootstrap sample (only active when bootstrap=True). The default draws n rows with replacement, about 63.2% unique.

  • Smaller samples mean less overlap between trees, so tree correlation ρ drops and the ensemble variance floor ρσ² falls. Each tree is weaker though (higher bias and variance).

  • Side benefits include faster training and more out-of-bag rows. Tune it with max_features via OOB score or CV.

  • https://medium.com/@AryanBeast/random-forest-explained-from-trees-to-tuning-and-feature-importance-a037513f08a5
  • https://ones.com/blog/how-to-tune-random-forest-parameters-for-accurate-predictions/?primary_category=knowledge
  • https://www.techmazone.com/pages/interview-random-forest.html
All Random Forests interview questions