Correct Position Bias When Learning to Rank Travel Portal Hotels

Last updated: November 29, 2026

Quick Overview

In Capital One Travel, hotels at the top of results get far more clicks regardless of quality. Explain how position bias corrupts a learning to rank model trained on click logs and how you would estimate and correct it.

Capital One
Machine Learning
Machine Learning Engineer
Capital One
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

0

0 solved


In Capital One Travel, hotels at the top of results get far more clicks regardless of quality. Explain how position bias corrupts a learning to rank model trained on click logs and how you would estimate and correct it.

Capital One Travel competes with large online travel agencies, and its hotel ranking learns from booking and click logs that the current ranking produced. Senior ML interviews use this to test unbiased learning to rank: separating examination from relevance and running the experiments needed to estimate propensities.

What the Interviewer Expects
  • Explains the examination hypothesis: click = examined and relevant
  • Shows how naive training reinforces the existing ranking
  • Estimates position propensities with randomization or intervention harvesting
  • Applies inverse propensity weighting to the ranking loss
  • Discusses variance from small propensities and clipping
  • Uses bookings as a less biased but sparser label
Key Topics to Cover
learning to rank
position bias
inverse propensity weighting
unbiased LTR
travel search
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you estimate propensities without hurting customers with random rankings?
  • How does trust bias differ from position bias?
  • What changes on mobile where only three results are visible?
  • How would you combine click and booking objectives?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Logs: query (destination, dates), shown hotels with positions, clicks, bookings. About 1 in 30 sessions books. Desktop shows 20 results, mobile 6 above the fold. I would ask whether any randomization ...

Approach

Examination model: P(click∣d,k)=P(Ek)⋅P(Rd)P(\text{click} \mid d, k) = P(E_k) \cdot P(R_d), where P(Ek)P(E_k) is the chance a user even looks at position kk, and P(Rd)P(R_d) is relevance. Training on raw clicks learns $P(E_k) P...


Submit Your Answer
Markdown supported