Bootstrap Confidence Interval for an Offline AUC Improvement
Last updated: November 29, 2026
Quick Overview
Model B beats model A on an offline Instagram Reels engagement holdout by 0.004 AUC. Explain how you would decide whether that difference is real, and implement a paired bootstrap confidence interval for the AUC difference.
Meta
November 29, 20260
0
0 solved
Model B beats model A on an offline Instagram Reels engagement holdout by 0.004 AUC. Explain how you would decide whether that difference is real, and implement a paired bootstrap confidence interval for the AUC difference.
Meta teams run many offline comparisons before spending A/B test capacity, so interviewers want candidates who quantify uncertainty instead of eyeballing a decimal. The check is whether you pair the comparison, resample the right unit, and know when user clustering breaks the naive bootstrap.
What the Interviewer Expects
- Use a paired comparison: both models scored on the same examples
- Resample examples (or users) jointly for both models
- Implement AUC and the bootstrap correctly, handling single-class resamples
- Explain why clustering by user requires a block bootstrap
- Mention DeLong's test as an analytic alternative
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
- How would you change the bootstrap if each user contributes hundreds of rows?
- How many bootstrap iterations do you need?
- What if the interval excludes zero but the online A/B test is flat?
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
I would confirm both models are scored on the same holdout, how many examples and users it has, and whether rows are independent. Reels data has many impressions per user, so the effective sample size...
Approach
Because the two models see the same examples, their errors are correlated and an unpaired comparison would overstate variance. The paired bootstrap resamples indices once per iteration and recomputes ...