How does increasing min_samples_leaf regularize a random forest?

Quick Overview

Asks how raising min_samples_leaf changes the trees in a random forest and why that reduces overfitting. Tests understanding of the bias-variance trade-off in leaf estimates, the difference from depth limits, and how to tune the setting on real data.

How does increasing min_samples_leaf regularize a random forest?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does increasing `min_samples_leaf` regularize a random forest? Explain what changes in each tree, why that reduces overfitting, and what it costs. ```hint Look at a single leaf A leaf predicts from the training samples that land in it. How noisy is that prediction when the leaf holds one sample, and when it holds many? ``` ### What a Strong Answer Covers - What the constraint does during the split search, and the kinds of values it accepts - Why larger leaves lower variance, for both regression outputs and class probabilities - The bias cost, and what happens when the value is set too high - How it differs from a depth limit - How to tune it in a forest, where averaging over trees already reduces variance ### Follow-up Questions - Why might `min_samples_leaf` matter less in a random forest than in a single decision tree? - How does `min_samples_leaf` differ from `min_samples_split`? - With a 1% positive class, what does a large `min_samples_leaf` do to the minority class? - If out-of-bag error keeps improving as you raise `min_samples_leaf`, what does that tell you about the data?

Overview: Asks how raising min_samples_leaf changes the trees in a random forest and why that reduces overfitting. Tests understanding of the bias-variance trade-off in leaf estimates, the difference from depth limits, and how to tune the setting on real data.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does increasing min_samples_leaf regularize a random forest?

Explain what changes in each tree, why that reduces overfitting, and what it costs.

What a Strong Answer Covers Guidance

  • What the constraint does during the split search, and the kinds of values it accepts
  • Why larger leaves lower variance, for both regression outputs and class probabilities
  • The bias cost, and what happens when the value is set too high
  • How it differs from a depth limit
  • How to tune it in a forest, where averaging over trees already reduces variance

Follow-up Questions Guidance

  • Why might min_samples_leaf matter less in a random forest than in a single decision tree?
  • How does min_samples_leaf differ from min_samples_split ?
  • With a 1% positive class, what does a large min_samples_leaf do to the minority class?
  • If out-of-bag error keeps improving as you raise min_samples_leaf , what does that tell you about the data?