Evaluate a Card Offer Recommender With NDCG and Offline Replay
Last updated: November 29, 2026
Quick Overview
Capital One Offers shows each cardholder a ranked list of merchant cash back offers. Explain how you would evaluate a new ranking model offline with NDCG and a replay or counterfactual method before launching an online test.
Capital One
November 29, 20260
0
0 solved
Capital One Offers shows each cardholder a ranked list of merchant cash back offers. Explain how you would evaluate a new ranking model offline with NDCG and a replay or counterfactual method before launching an online test.
Capital One Offers and the shopping portal rank merchant deals for millions of cardholders, and offline evaluation decides which models earn an A/B slot. The interviewer is checking ranking metrics, how logged data from the current ranker biases evaluation, and the gap between clicks and incremental value.
What the Interviewer Expects
- Defines relevance labels with graded outcomes such as activation and purchase
- Computes NDCG at K and explains the discount
- Recognizes logged data only shows what the old ranker surfaced
- Uses inverse propensity weighting or replay on randomized traffic
- Separates engagement metrics from incremental merchant-funded value
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 might NDCG improve while incremental spend does not?
- How would you collect data that makes counterfactual evaluation reliable?
- How do you handle offers with budget caps that run out mid-month?
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
Logged data: impressions with position, offer id, and outcomes (offer activated, purchase at merchant within 30 days). Relevance: 0 for no action, 1 for activation, 2 for purchase. Only the top 10 off...
Approach
For each customer session, re-rank the logged offers with the new model and compute NDCG on the ob...