Under what dataset conditions can a Random Forest still overfit?

Last updated 5 November 2026

  • Fully grown trees on noisy targets memorize correlated noise that averaging cannot cancel. Fix with min_samples_leaf or max_depth.

  • Risky data: small n with many irrelevant features, ID-like high-cardinality features, tiny minority classes, and leakage from duplicates, grouped or time-series rows.

  • Near-100% training accuracy is normal. Judge overfitting by the gap to OOB or properly grouped cross-validation scores.

  • https://medium.com/@nehasingh890.ns/everything-you-need-to-know-about-decision-trees-random-forests-the-complete-interview-guide-2280b0ec5668
  • https://www.alexmolas.com/2022/12/26/random-forest-overfit.html
  • https://github.com/Devinterview-io/random-forest-interview-questions
All Random Forests interview questions