Is the spread of Random Forest tree predictions a usable uncertainty estimate, and what are its limitations?

Quick Overview

Asks whether disagreement among the trees of a random forest can be used as an uncertainty estimate and where it fails. Tests understanding of epistemic versus aleatoric uncertainty, calibration, out-of-distribution behavior, and other ways to quantify predictive uncertainty.

Is the spread of Random Forest tree predictions a usable uncertainty estimate, and what are its limitations?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Can the spread of individual tree predictions in a Random Forest be used as an uncertainty estimate, and what are its limitations? ```hint Which uncertainty is it Separate uncertainty about the model's fit from noise in the target itself. Think about what each tree outputs at a leaf, how the leaf size changes that output, and which of the two kinds the disagreement between trees can then reflect. ``` ```hint Try a point far away Take a test point well outside the range of the training data. What does each tree predict there, and how much do the trees disagree? ``` ```hint Check it on held-out data Suppose you report mean ± 2 standard deviations of the tree predictions as a 95% interval. How would you test that claim on held-out data, and what would you expect to find? ``` ### What a Strong Answer Covers - How the spread is computed for regression and for classification, and what quantity it measures - Whether an interval built from the spread is calibrated, and how much of the target noise it reflects - Its behavior out of distribution and its sensitivity to hyperparameters - Alternatives that give better-founded intervals or probabilities, and what each one targets - Where the raw spread is still useful ### Follow-up Questions - How would you build prediction intervals that are wider where the target is noisier? - What is the difference between a confidence interval for the forest's prediction and a prediction interval for a new observation, and which methods give each? - Would you rank active learning candidates by tree spread? What could go wrong? - How would you detect test points that are far from the training data, given that the spread may not?

Overview: Asks whether disagreement among the trees of a random forest can be used as an uncertainty estimate and where it fails. Tests understanding of epistemic versus aleatoric uncertainty, calibration, out-of-distribution behavior, and other ways to quantify predictive uncertainty.

PracHub logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

Can the spread of individual tree predictions in a Random Forest be used as an uncertainty estimate, and what are its limitations?

What a Strong Answer Covers Guidance

  • How the spread is computed for regression and for classification, and what quantity it measures
  • Whether an interval built from the spread is calibrated, and how much of the target noise it reflects
  • Its behavior out of distribution and its sensitivity to hyperparameters
  • Alternatives that give better-founded intervals or probabilities, and what each one targets
  • Where the raw spread is still useful

Follow-up Questions Guidance

  • How would you build prediction intervals that are wider where the target is noisier?
  • What is the difference between a confidence interval for the forest's prediction and a prediction interval for a new observation, and which methods give each?
  • Would you rank active learning candidates by tree spread? What could go wrong?
  • How would you detect test points that are far from the training data, given that the spread may not?