Which ungraded search result could settle the winner?
Two search engines answer the same question with different lists of documents. Someone has graded how useful most of those documents are. Two still need a grade. If you’re trying to decide which search engine did better, which document should you read first?
In our invented example, with grades of 0, 1 or 2, start with B’s top result. If the reviewer gave it a 0 or a 1, A would win whatever grade the remaining document received. A grade of 2 left the decision open. We found that out by following the missing grades through the lists people actually saw.
A relevance grade belongs to one document for one question. A document that helps answer one question can be useless for another. The examples are separate invented searches. We used grades from 0 (irrelevant) to 2 (most relevant) and kept the lists in their original order within each example. The scoring software was pytrec-eval-terrier 0.5.10. First we tested how a blank grade affected the positions the scorer counted. Then we tried the grades a reviewer might supply.
Does the ungraded document keep its place? In our first test only the top result counted. The measure, normalized discounted cumulative gain at rank one (nDCG@1), gives full credit if that result has the best grade in the common judgments, even when a best-graded document sits farther down an engine’s list. A’s first document had no grade. Its second was grade 2.
Keeping A’s first result where it appeared gave A 0.00. Scoring only graded documents removed the first from the scorer’s list and promoted the grade-2 document, giving A 1.00. B’s top result kept half the available credit, so B stayed at 0.50. A score of 1.00 here means full credit for the top place. When we explicitly assigned A’s first result a grade of 0, it kept its place under both rules. There’s a real distinction between ‘a reviewer found this irrelevant’ and ‘nobody has judged this yet.’ How trec_eval handles ungraded results
What if the same document appears on both lists? In our second example, both engines put one ungraded document first for the same question. A’s second document had grade 1 and B’s had grade 0. We counted the first two places (nDCG@2), giving more credit for higher-ranked useful results and comparing each score with the best ranking the common grades allowed.
Taken separately, the ranges of possible scores for A and B overlapped. But the shared document has to receive the same grade in both lists. For example, if the shared first document gets 0, both systems earn zero credit for first place. A still has its grade-1 second result, while B’s second result has grade 0. Under each common grade, after recalculating the best possible ranking, A led by 0.193 to 0.240. A separate example put a shared document at different ranks. There, changing its grade could reverse the lead. How trec_eval scores the top results
Which grade might let a reviewer stop? In our last top-two example, the first and second results on B’s list each needed a grade between 0 and 2. We held one at zero and varied the other, then reversed their roles. A won every time. Trying all nine pairs of grades told a different story: the possible outcomes included a tie and a win for B.
Review B’s first result before its second. If the first deserves 0 or 1, A leads for every possible second grade. If the first deserves 2, the second grade still matters: several outcomes, including a tie, remain possible. These are possibilities under the allowed grades, not grades measured for the two documents.
Keep each ranked list in the order the user saw, the question–document grades both systems share and the allowed grades that remain. Record how far down the list you counted, how many results there had grades, and what the scorer did with the others. Comparing A and B under the same assumptions tells you which next judgment could change the decision. Listing possible outcomes doesn’t assign them probabilities.