Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Design Offline Validation for Ranking Model

EasyModel Evaluation00:00
Practice interviewer
In session
5 left
00:00

Your question is Design Offline Validation for Ranking Model. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

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