How are predictions aggregated across trees in a Random Forest regressor?

Quick Overview

Asks how a random forest regressor combines the predictions of its individual trees into one output. Tests understanding of leaf values, equal-weight aggregation, why averaging reduces variance, and what the aggregation means for extrapolation and uncertainty.

How are predictions aggregated across trees in a Random Forest regressor?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How are predictions aggregated across trees in a Random Forest regressor? ```hint One tree first Work out what a single regression tree outputs for a sample, then ask how the forest combines those outputs and with what weights. ``` ### What a Strong Answer Covers - What a single tree outputs for a sample and where that value comes from. - How the forest combines the per-tree outputs, including the weighting. - Why averaging improves accuracy and what limits the improvement. - Consequences of averaging leaf means, such as the range of possible predictions and a rough uncertainty signal. ### Follow-up Questions - How does aggregation work in a Random Forest classifier in scikit-learn? - Why can a forest not extrapolate a linear trend beyond the training data, and what would you do about it? - How would you build a prediction interval from a random forest? - How does correlation between trees limit the gain from adding more trees?

Overview: Asks how a random forest regressor combines the predictions of its individual trees into one output. Tests understanding of leaf values, equal-weight aggregation, why averaging reduces variance, and what the aggregation means for extrapolation and uncertainty.

Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How are predictions aggregated across trees in a Random Forest regressor?

What a Strong Answer Covers Guidance

  • What a single tree outputs for a sample and where that value comes from.
  • How the forest combines the per-tree outputs, including the weighting.
  • Why averaging improves accuracy and what limits the improvement.
  • Consequences of averaging leaf means, such as the range of possible predictions and a rough uncertainty signal.

Follow-up Questions Guidance

  • How does aggregation work in a Random Forest classifier in scikit-learn?
  • Why can a forest not extrapolate a linear trend beyond the training data, and what would you do about it?
  • How would you build a prediction interval from a random forest?
  • How does correlation between trees limit the gain from adding more trees?