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
November 29, 20260
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
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- 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 PrepSample Answer
Clarify
Auction rank and price use , so an overestimate of CTR for some ads overcharges or misranks them. Training used negative downsampling at rate (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
Microsoft Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline