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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
- Each query has scores (ranker A) and (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 and are strongly correlated. The paired approach analyzes $d_i = a_i...