Why are the raw predicted probabilities from a Random Forest often poorly calibrated?

Quick Overview

Asks why random forest predicted probabilities often fail to match observed frequencies even when the model ranks examples well. Tests understanding of how forests produce scores, the effect of averaging trees, class weighting and training-set scoring, and how to calibrate and verify probabilities.

Why are the raw predicted probabilities from a Random Forest often poorly calibrated?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are the raw predicted probabilities from a Random Forest often poorly calibrated? A random forest can rank examples well while its `predict_proba` outputs do not match observed frequencies. Explain where the distortion comes from, which direction it usually goes, and how you would correct and check it. ```hint Look at one tree first Consider what a fully grown tree outputs at its leaves, then what averaging hundreds of such trees does to a point whose true probability is close to 0 or 1. ``` ```hint Check where the scores came from Ask which data the scores were computed on, and what class weighting or resampling did to the base rate the model saw. ``` ### What a Strong Answer Covers - How forest scores are produced (vote fractions or averaged leaf frequencies) and why that differs from a modeled likelihood - Why averaging decorrelated trees pulls extreme probabilities toward the middle, and the shape this gives the reliability curve - Other sources of distortion: class weighting or resampling, and scoring on training data - Calibration methods, the data they must be fit on, and how to choose between them - The plots and metrics used to verify calibration ### Follow-up Questions - Why do gradient-boosted trees and naive Bayes tend to show different calibration errors from a random forest? - How can out-of-bag predictions be used to calibrate a forest without a separate holdout set? - After training with `class_weight="balanced"`, how would you map scores back to the true base rate? - When does miscalibration not matter for the decision the model supports?

Overview: Asks why random forest predicted probabilities often fail to match observed frequencies even when the model ranks examples well. Tests understanding of how forests produce scores, the effect of averaging trees, class weighting and training-set scoring, and how to calibrate and verify probabilities.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why are the raw predicted probabilities from a Random Forest often poorly calibrated?

A random forest can rank examples well while its predict_proba outputs do not match observed frequencies. Explain where the distortion comes from, which direction it usually goes, and how you would correct and check it.

What a Strong Answer Covers Guidance

  • How forest scores are produced (vote fractions or averaged leaf frequencies) and why that differs from a modeled likelihood
  • Why averaging decorrelated trees pulls extreme probabilities toward the middle, and the shape this gives the reliability curve
  • Other sources of distortion: class weighting or resampling, and scoring on training data
  • Calibration methods, the data they must be fit on, and how to choose between them
  • The plots and metrics used to verify calibration

Follow-up Questions Guidance

  • Why do gradient-boosted trees and naive Bayes tend to show different calibration errors from a random forest?
  • How can out-of-bag predictions be used to calibrate a forest without a separate holdout set?
  • After training with class_weight="balanced" , how would you map scores back to the true base rate?
  • When does miscalibration not matter for the decision the model supports?