KatInterview

Experiment Plan for a Recency-Boosted Search Ranker

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingexperiment-designsearch-ranking

Last updated

Plan a controlled experiment for a recency-weighted search ranker: hypotheses, success and guardrail metrics, randomization unit, and biases such as novelty and interference.

Scenario

A search team wants to ship a ranker that gives extra weight to how recently a page was published. You are asked to plan the online experiment that decides whether this change makes search better for users.

The team's worry: a recency boost may lift clicks on breaking or time-sensitive items while making it harder for people to reach older, authoritative pages that are still the best answer (evergreen content). That could hurt satisfaction over the long run.

Context

  • Surface: the search results page.
  • Population: active users worldwide.
  • Baseline: the current production ranker.

What to cover

  1. Hypotheses. State a null and an alternative hypothesis, and say how you would frame the test (one-sided or two-sided) and why.
  2. Metrics. Name one primary metric that decides the outcome, plus secondary and guardrail metrics. Explain why your primary metric is a better choice than raw click-through rate.
  3. Randomization unit. Say what you randomize on (user, query, or something else), how assignment works, and the trade-offs against the alternatives.
  4. Risks and biases. Describe at least two threats to a trustworthy result (for example novelty effects, seasonality, interference between groups, or mixed effects across query types) and how you would counter each.

Follow-ups to be ready for

  • Roughly how many samples do you need if the baseline success rate is 10% and you want to detect a 0.5% relative lift?
  • Clicks rise but search abandonment also rises. How do you decide whether to ship?
  • Could users in control and treatment influence one another, for example through feedback loops?

Hints

Hint 1

Define success in terms of whether users found what they needed (for example a satisfied click with no quick return or rewrite of the query), not just whether they clicked.

Hint 2

Your guardrails should directly probe the stated worry: measure success separately on evergreen and navigational queries, and watch reformulations, quick back-clicks, latency, and retention.

Hint 3

Think about why showing one user two different rankers for the same query is a problem, and what that implies for the randomization unit and for how you compute standard errors.

Hint 4

Plan the duration around the novelty effect, not around sample size; at large traffic volumes you will hit the required sample long before the effect stabilizes.