Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design Offline Validation for Ranking Model

Easy
Model EvaluationCross-ValidationAccuracyA/B TestingAsked 1 times

Problem

Context

ShopNow wants to replace its current product recommendation ranker on the homepage with a new gradient-boosted model that predicts 7-day purchase probability. Leadership wants an offline validation framework that can credibly estimate business value before running an online experiment. The challenge is that the model scores items shown in historical logs, where exposure was determined by the current production ranker.

Current Performance

MetricProduction RankerCandidate ModelRelative Change
AUC-ROC0.6810.742+8.9%
Log Loss0.4120.366-11.2%
Precision@100.0840.097+15.5%
Recall@100.2110.246+16.6%
Lift in Top 5%2.1x2.8x+33.3%
Calibration error0.0610.118Worse
Avg. score on purchased items0.1430.191+33.6%

The Problem

The candidate model looks better on ranking metrics, but its probabilities are poorly calibrated and evaluation is based only on logged impressions from the old system. You need to design an offline validation framework that can demonstrate likely value, identify risks, and define what evidence is strong enough to justify an A/B test.

Requirements

  1. Define the offline datasets, splits, and holdout strategy you would use.
  2. Explain which metrics you would trust most for proving value and why.
  3. Address selection bias from historical exposure under the production ranker.
  4. Propose how to validate calibration, thresholding, and segment-level performance.
  5. Recommend clear go/no-go criteria for launching an online test.

Constraints

  • 120M logged impressions from the last 90 days
  • Strong seasonality around weekends and promotions
  • Only 8% of catalog items receive meaningful exposure
  • Online experiment capacity is limited to one test this quarter

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Persistent Systems Data Scientist Interview Questions
Next questions
Persistent SystemsValidate Offline Metrics Against Business ValueEasyGitLabDiagnose Offline-Online Recommendation FailureMediumOffline Evaluation Before LaunchMedium
0 / ~200 words