Why are class probability estimates from leaf frequencies often poorly calibrated?

Quick Overview

Asks why class probabilities taken from decision tree leaf frequencies tend to be poorly calibrated. Tests understanding of optimistic bias from purity-driven splits, small-sample variance, Laplace smoothing, post-hoc calibration and how to measure calibration.

Why are class probability estimates from leaf frequencies often poorly calibrated?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are class probability estimates from leaf frequencies often poorly calibrated? Here the estimate for class $k$ at a leaf is the share of that leaf's training samples that belong to class $k$. ```hint How leaves are chosen Think about what the split criterion optimizes, and what that does to the class mix the training data shows in each leaf. ``` ```hint Small counts Work out which probabilities a leaf holding three samples can output, and how uncertain each one is. ``` ### What a Strong Answer Covers - The optimistic bias created by splits chosen to maximize training purity - The variance and coarseness of frequencies computed from small leaves - Other causes of miscalibration, such as class weighting or resampling - Concrete fixes (smoothing, larger leaves, post-hoc calibration, ensembles) and their trade-offs - How to measure calibration ### Follow-up Questions - When would you choose sigmoid calibration over isotonic for a tree model? - Why does a random forest tend to be underconfident near 0 and 1 while a single deep tree is overconfident? - The training data was downsampled to one negative per positive. How would you correct the leaf probabilities? - Does poor calibration hurt ROC-AUC? When does it matter and when does it not?

Overview: Asks why class probabilities taken from decision tree leaf frequencies tend to be poorly calibrated. Tests understanding of optimistic bias from purity-driven splits, small-sample variance, Laplace smoothing, post-hoc calibration and how to measure calibration.

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

Why are class probability estimates from leaf frequencies often poorly calibrated?

Here the estimate for class kk at a leaf is the share of that leaf's training samples that belong to class kk.

What a Strong Answer Covers Guidance

  • The optimistic bias created by splits chosen to maximize training purity
  • The variance and coarseness of frequencies computed from small leaves
  • Other causes of miscalibration, such as class weighting or resampling
  • Concrete fixes (smoothing, larger leaves, post-hoc calibration, ensembles) and their trade-offs
  • How to measure calibration

Follow-up Questions Guidance

  • When would you choose sigmoid calibration over isotonic for a tree model?
  • Why does a random forest tend to be underconfident near 0 and 1 while a single deep tree is overconfident?
  • The training data was downsampled to one negative per positive. How would you correct the leaf probabilities?
  • Does poor calibration hurt ROC-AUC? When does it matter and when does it not?