Validate and monitor ranking model end-to-end

Read the full interview experience this question came from →

Quick Overview

This question evaluates a data scientist's mastery of learning-to-rank concepts, offline evaluation and metric design, position-bias correction, diagnostic analysis, deployment safeguards, and alignment of surrogate objectives with business KPIs for hotel search ranking.

Validate and monitor ranking model end-to-end

Company: Expedia

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Onsite

For the same Expedia hotel-ranking model: a) Propose an offline evaluation plan that prevents leakage (time-based splits, user-level grouping), handles position bias (propensity-weighted/IPS metrics or counterfactual LTR), and reports probability calibration of conversion predictions (e.g., reliability curves, ECE). b) Specify which ranking metrics you’ll report (e.g., NDCG@10 with revenue weights, ERR), including the formulas and why they reflect client value. c) Outline diagnostics to identify key drivers without leaking target information (e.g., SHAP with proper background, permutation checks, stability across folds). d) Define rollout/monitoring: shadow mode, canary, guardrail alarms, drift detection (data and concept), late-arriving data handling, and an automatic rollback policy with thresholds. e) Describe how you’d verify that optimizing a surrogate objective still improves the client KPI, and what you’d do if the offline–online relationship breaks.

Overview: This question evaluates a data scientist's mastery of learning-to-rank concepts, offline evaluation and metric design, position-bias correction, diagnostic analysis, deployment safeguards, and alignment of surrogate objectives with business KPIs for hotel search ranking.

Read the full Expedia Data Scientist interview experience this question came from

|Home/Machine Learning/Expedia
Expedia logo
Expedia
Oct 13, 2025
hardData ScientistOnsiteMachine Learning
9
0

Expedia Hotel-Ranking Model: Evaluation, Metrics, Diagnostics, Rollout, and KPI Alignment

Context: You are building a learning-to-rank (LTR) model to order hotel search results for Expedia. The goal is to maximize client value (e.g., bookings, gross merchandise value [GMV], or margin) while ensuring rigorous offline evaluation, attribution fairness under position bias, and safe deployment.

Answer the following:

(a) Offline evaluation plan

  • Prevent leakage through time-based splits and user/session-level grouping.
  • Handle position bias using propensity-weighted (IPS/SNIPS/DR) metrics or counterfactual LTR.
  • Report probability calibration of conversion predictions (reliability curves, ECE).

(b) Ranking metrics

  • Specify which ranking metrics you will report (e.g., NDCG@10 with revenue/margin weights, ERR), including formulas and why they reflect client value.

(c) Diagnostics for key drivers

  • Outline diagnostics to identify key drivers without leaking target information (e.g., SHAP with proper background, permutation checks, stability across folds).

(d) Rollout and monitoring

  • Define shadow mode, canary, guardrail alarms, drift detection (data and concept), late-arriving data handling, and an automatic rollback policy with thresholds.

(e) Surrogate objective and client KPI

  • Describe how you would verify that optimizing a surrogate objective still improves the client KPI, and what you would do if the offline–online relationship breaks.
Loading comments...