SERP Rank Lab

Insight

On a synthetic log: +34.45% revenue per search for −16.84% CTR; the rollout returns −14.26% (p = 0.11) and −16.05% conversion → do not ship

Business recommendation

The bottleneck is the signal, not the objective: until a ranker sees the relevance the production blend sees, any optimisation for money buys clicks, not revenue.

Interactive: every figure is computed from the project’s own data, so you can move the controls instead of taking the sentence on trust.

What the case measured

  • Synthetic data data
  • Live demo
  • Open code
  • 6 tools in the stack stack

The decision behind the case

The bet

The bottleneck is the signal, not the objective: until a ranker sees the relevance the production blend sees, any optimisation for money buys clicks, not revenue.

What was rejected

  • Ship revenue-objective straight away: offline it returns +34.45% revenue per search

    Why not: The offline gap does not transfer to the rollout: −14.26% on revenue, while the CTR and conversion guardrails are breached significantly.

    What it cost: Declining costs +34.45% revenue per search in the model — but that is the price of a click we would have lost: 982 ₽ per click.

  • A trained CTR ranker as a replacement for the production blend

    Why not: It loses even to sorting by price (826.56 vs 843.91): click logs carry none of the relevance signal the production blend mixes in.

    What it cost: The case ships no ML ranker; the upside is in the data, not in the model.

  • The '+38% revenue' headline from the oracle pair

    Why not: Both oracle policies read the simulator's ground truth, and the affinity/price_index anti-correlation is a modelling assumption (ceiling_oracle.label: modeled).

    What it cost: The honest headline is smaller: +34.45% instead of +38%, and it already comes with a CTR price.

Situation
A metasearch product earns on the position an offer occupies, so ranking and monetisation are not measured by the same number
Task
Find out how much revenue ranking for money produces, and what that revenue is paid for in clicks
Action
Two feasible policies on one information set, a user_id rollout with guardrails and a stopping rule, then a diagnosis through the signal source
Result
On a synthetic log: +34.45% revenue per search for −16.84% CTR; the rollout returns −14.26% (p = 0.11) and −16.05% conversion → do not ship
Stack
PythonDuckDBStreamlitNumPy / SciPypytestuv
Source View on GitHub → Updated: Nov 1, 2026

▶ Data-flow diagram — self-contained HTML, opens in a browser — no install, no build

Situation

A metasearch site sells no tickets. Its revenue is a partner commission or a cost-per-click, multiplied by which position the offer occupied on the results page. So the role rests on two questions: how to rank offers, and how much revenue a given ranking policy produces per search.

The second question is usually replaced by the first: the offline relevance score rises while the money does not. On this surface both policies can be placed on one and the same information set, so the price of the choice gets measured instead of argued about.

Task

I needed to carry the ranking analysis to a decision: compare two policies that can actually be switched on, measure what the revenue costs in clicks, and test whether the offline gap transfers to a rollout.

Frequently asked

Why not ship it if offline revenue is higher?

The +34.45% offline gap is a model number, while the user_id rollout returns −14.26% (p = 0.11) with breached guardrails: CTR −13.06%, booking conversion −16.05%. The stopping rule fires on a guardrail, not on revenue.

Where did +38% go?

It was the gap of the oracle pair: both policies read the simulator's ground truth, and the affinity/price_index anti-correlation is a modelling assumption. That ceiling is labelled modeled; on one information set the money upside is +34.45%.

What does the revenue cost in clicks?

982 ₽ per forgone click. Money buys +34.45% revenue per search at −16.84% CTR; the breakeven states the click value at which the trade is neutral.

Why does the production policy win if it does not optimise money?

Its blend mixes in the true relevance (serp_sim.py:452-458). The learned models have no such signal, so they lose to the data source, not to the objective.

Can NDCG stay as the release gate?

No: the policy at NDCG 0.985 earns less than the one at 0.883, and the trained ranker at 826.56 loses to sorting by price at 843.91. The offline metric and the money move in opposite directions.

Want an analyst who works like this?

Tell me the role and the problems in it — I reply within a day. Need this reasoning applied to your data rather than a hire? That works too.

Send a request