How does increasing min_samples_leaf regularize a random forest?

Last updated 5 November 2026

  • min_samples_leaf requires every leaf to hold at least k samples, so trees cannot isolate noisy single points and become shallower and smoother.

  • Each prediction averages at least k targets: variance drops, bias rises, and class probabilities are less extreme. Too large a k underfits.

  • It adapts to data density better than max_depth. Tune it with OOB score or cross-validation, especially for noisy targets.

  • https://pub.towardsai.net/top-20-random-forest-interview-questions-answers-17e8738abfbc
  • https://www.geeksforgeeks.org/machine-learning/how-to-tune-hyperparameters-in-gradient-boosting-algorithm/
  • https://medium.com/@shridharpawar77/a-comprehensive-guide-to-random-forest-in-machine-learning-50ddaef79974
All Random Forests interview questions