Recalibrating a Fraud Model Trained on Downsampled Negatives
Last updated: November 29, 2026
Quick Overview
A pharmacy claims fraud model was trained after keeping all fraud cases but only 2% of legitimate claims. Its predicted probabilities look far too high in production. Explain why, show how to correct them, and how to choose an alert threshold for investigators.
CVS Health
November 29, 20260
0
0 solved
A pharmacy claims fraud model was trained after keeping all fraud cases but only 2% of legitimate claims. Its predicted probabilities look far too high in production. Explain why, show how to correct them, and how to choose an alert threshold for investigators.
CVS Caremark audits pharmacy claims for fraud, waste and abuse where true positives are far rarer than 1%. Interviewers use this to test whether a candidate understands how sampling distorts probabilities, the difference between ranking and calibration, and threshold choice under investigator capacity.
What the Interviewer Expects
- Explains that downsampling inflates the predicted positive rate
- Derives the prior correction formula
- Notes that ranking (AUC) is unaffected by the correction
- Validates calibration on an unsampled holdout
- Chooses a threshold from capacity or expected cost
- Mentions precision recall curves over ROC for rare events
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
- What if the fraud base rate shifts after a policy change?
- How would you calibrate with isotonic regression instead, and what data does it need?
- How would class weights instead of downsampling change things?
- Investigators label only what they review. How does that bias retraining?
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
True fraud rate in production, say . Training kept all positives and a fraction of negatives. Investigators can review 300 claims per day out of 500,000....
Approach
Downsampling changes the class prior the model learned, so the odds it outputs are scaled. Correct them analytically, verify on a holdout drawn from the true distribution, then set the threshold from ...