Calibrate a Boosted Tree Ads Model and Measure Calibration Error

Last updated: November 29, 2026

Quick Overview

A gradient boosted click model for Microsoft Advertising ranks well but its predicted probabilities are systematically off, which breaks auction pricing. Explain how to measure calibration, implement expected calibration error and isotonic regression, and choose a calibration method.

Microsoft
Machine Learning
Machine Learning Engineer
Microsoft
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

0

0 solved


A gradient boosted click model for Microsoft Advertising ranks well but its predicted probabilities are systematically off, which breaks auction pricing. Explain how to measure calibration, implement expected calibration error and isotonic regression, and choose a calibration method.

In ad auctions the expected value is bid times predicted CTR, so miscalibrated probabilities directly misprice ads. Microsoft Advertising interviewers expect you to separate ranking quality from calibration and to implement standard fixes.

What the Interviewer Expects
  • Explain why AUC can be high while probabilities are miscalibrated
  • Use reliability diagrams, ECE and the predicted-over-observed ratio
  • Implement ECE with equal-width bins
  • Compare Platt scaling and isotonic regression
  • Fit the calibrator on held-out data and monitor it per segment
Key Topics to Cover
calibration
expected calibration error
isotonic regression
Platt scaling
ads auctions
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • Why does negative downsampling break calibration and how do you correct it?
  • When would isotonic regression overfit?
  • How would you calibrate separately per ad slot or device without fragmenting data?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Auction rank and price use bid×pCTRbid \times pCTR, so an overestimate of CTR for some ads overcharges or misranks them. Training used negative downsampling at rate ww (keeping a fraction of non-clicks)....

Approach

First correct known biases, then measure, then fit a monotone calibrator on a fresh held-out day....


Submit Your Answer
Markdown supported