Comparing Two Search Rankers Scored on the Same Queries

Last updated: November 29, 2026

Quick Overview

Two Facebook search rankers are evaluated on the same 500 sampled queries, each producing a per-query NDCG. Explain why a paired test is right here, run it, and contrast it with an unpaired comparison.

Meta
Statistics & Math
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Technical Screen
Statistics & Math
Easy

0

0

0 solved


Two Facebook search rankers are evaluated on the same 500 sampled queries, each producing a per-query NDCG. Explain why a paired test is right here, run it, and contrast it with an unpaired comparison.

Meta ML engineers working on search and ranking often compare models offline on a shared evaluation set. The interviewer checks whether you recognize paired data and understand why pairing removes query difficulty from the noise.

What the Interviewer Expects
  • Recognize that each query yields a pair of measurements
  • Compute the per-query difference and its standard error
  • Explain variance reduction from positive correlation
  • Mention a nonparametric alternative like the Wilcoxon signed-rank test
  • Note that queries, not documents, are the unit
Key Topics to Cover
paired t-test
variance reduction
correlation
Wilcoxon signed-rank
offline evaluation
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What if the differences are heavily skewed with many exact ties at zero?
  • How would you get a confidence interval for the relative NDCG gain?
  • How should the 500 queries be sampled so the result generalizes?
Sharpen Your Skills on Codemia

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

Browse Statistics Questions
Sample Answer
Clarify
  • Each query ii has scores aia_i (ranker A) and bib_i (ranker B).
  • Queries were sampled from production traffic, so they represent the population we care about.
  • Hypothesis: mean NDCG difference $...
Approach

Query difficulty dominates NDCG: a navigational query scores high for both rankers, a vague one scores low for both. So aia_i and bib_i are strongly correlated. The paired approach analyzes $d_i = a_i...


Submit Your Answer
Markdown supported