Why are predicted probabilities from gradient boosted trees often poorly calibrated?

Quick Overview

Asks why gradient boosted tree models often output probabilities that do not match observed event rates, and how to repair them. Tests understanding of additive log-odds, regularization and class weighting effects, post-hoc calibration methods, and how to measure calibration.

Why are predicted probabilities from gradient boosted trees often poorly calibrated?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are the predicted probabilities from gradient boosted trees often poorly calibrated, and how would you fix them? ```hint Separate the training fit from new data Log loss rewards calibrated probabilities. Ask why minimizing it on the training set can still leave the probabilities on new data off. ``` ```hint List what changes the score scale Go through the number of rounds, shrinkage and leaf penalties, class weighting, and the training objective, and ask what each one does to the summed log-odds. ``` ### What a Strong Answer Covers - Why minimizing training log loss does not guarantee calibration on new data, and how many rounds or deep trees lead to overconfidence - How shrinkage, leaf penalties and early stopping change the probability scale - How class weighting, resampling and non-log-loss objectives break the probability meaning - How to calibrate after training on held-out data, and the trade-off between Platt scaling and isotonic regression - How to measure calibration, and what calibration does and does not change about ranking ### Follow-up Questions - You trained with `scale_pos_weight=99` on data with 1% positives. How would you map the scores back to real probabilities without refitting? - When does isotonic regression overfit, and how much calibration data does it need? - Why is a calibrator fit on last month's data risky for a fraud model, and what would you monitor? - Random forest probabilities tend to avoid 0 and 1. Why do they behave differently from boosting here?

Overview: Asks why gradient boosted tree models often output probabilities that do not match observed event rates, and how to repair them. Tests understanding of additive log-odds, regularization and class weighting effects, post-hoc calibration methods, and how to measure calibration.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why are the predicted probabilities from gradient boosted trees often poorly calibrated, and how would you fix them?

What a Strong Answer Covers Guidance

  • Why minimizing training log loss does not guarantee calibration on new data, and how many rounds or deep trees lead to overconfidence
  • How shrinkage, leaf penalties and early stopping change the probability scale
  • How class weighting, resampling and non-log-loss objectives break the probability meaning
  • How to calibrate after training on held-out data, and the trade-off between Platt scaling and isotonic regression
  • How to measure calibration, and what calibration does and does not change about ranking

Follow-up Questions Guidance

  • You trained with scale_pos_weight=99 on data with 1% positives. How would you map the scores back to real probabilities without refitting?
  • When does isotonic regression overfit, and how much calibration data does it need?
  • Why is a calibrator fit on last month's data risky for a fraud model, and what would you monitor?
  • Random forest probabilities tend to avoid 0 and 1. Why do they behave differently from boosting here?