Every measure of a ranking is built from precision and recall at each cutoff $k$. Interpolated precision, $p_{\text{interp}}(r) = \max_{r' \ge r} p(r')$, turns the sawtooth precision-recall curve into one that never rises. Its mean at eleven recall levels is 0.566 on this article's worked ranking (relevant documents at ranks 1, 3, 6 and 9 of ten, five relevant in all) and 0.330 for BM25 on Cranfield. Precision at $k$ has a ceiling: on Cranfield a perfect system's mean P@10 is 0.605, against BM25's 0.234. Recall at $k$ bounds every later reranking stage. R-precision, precision at rank $R$, is where precision equals recall, and reciprocal rank suits single-answer needs. ROC curves are rarely used, because true negatives swamp them.
Ranking the thesis student's six Arctic documents from what information retrieval is by how many query words each contains puts A and B first, then F, then C and E, and D last. Nothing is excluded, so recall is no longer the problem. But the order is poor, and the student must read all six documents to find the three useful ones. A ranking that put B, C and D first would contain exactly the same documents and be far better. Precision and recall of the whole list cannot tell the two apart. The measures of this article can, because they look at the list one rank at a time.
A ranked system returns an ordered list, and a user reads it from the top until satisfied or discouraged. Measures for rankings must therefore reward relevant documents for appearing early. All of them start from the same computation: precision and recall, which this article assumes, for the top $k$ results, for each $k$.
Here is the route. First we compute precision and recall at every rank of one worked ranking and plot the curve they make. Then we smooth it by interpolation and summarize it in eleven numbers. Next come single-number measures: precision at $k$, recall and success at $k$, R-precision and reciprocal rank. Finally we see why ROC curves are rarely used here, and match each measure to the user it models.
The article follows Manning, Raghavan, and Schütze (2008, §8.4). Mean average precision and nDCG, the two most widely reported measures, have their own articles and continue the same example. The numbers are computed by tools/experiments/eval_measures/worked_examples.py and cranfield_measures.py in the site's repository and rounded to three decimals.
A worked ranking
A query has 5 relevant documents in the collection. A system returns 10 documents, of which these ranks are relevant (R) or not (N):
| Rank $k$ | Judgment | Relevant so far | Precision at $k$ | Recall at $k$ |
|---|---|---|---|---|
| 1 | R | 1 | 1.000 | 0.2 |
| 2 | N | 1 | 0.500 | 0.2 |
| 3 | R | 2 | 0.667 | 0.4 |
| 4 | N | 2 | 0.500 | 0.4 |
| 5 | N | 2 | 0.400 | 0.4 |
| 6 | R | 3 | 0.500 | 0.6 |
| 7 | N | 3 | 0.429 | 0.6 |
| 8 | N | 3 | 0.375 | 0.6 |
| 9 | R | 4 | 0.444 | 0.8 |
| 10 | N | 4 | 0.400 | 0.8 |
Precision at $k$ is the number of relevant documents in the top $k$ divided by $k$. Recall at $k$ is that number divided by 5, the total number of relevant documents. The fifth relevant document is never retrieved, so recall never reaches 1. This ranking is the running example of the measure articles that follow.
The two columns behave differently as $k$ grows.
- Recall is a staircase. It moves up by $1/5$ at each relevant document and is flat otherwise, so it can never fall.
- Precision moves at every rank. Write $h$ for the number of relevant documents in the top $k$. At a relevant document, precision rises or stays at 1, because the numerator and denominator both grow by one and $(h+1)/(k+1) \ge h/k$ whenever $h \le k$. (Cross-multiplying, the inequality is $k(h + 1) \ge h(k + 1)$, that is, $k \ge h$.) At a nonrelevant document, it falls from $h/k$ to $h/(k+1)$, or stays at 0 if $h = 0$.
Example (where precision equals recall). Precision and recall take the same value at rank 5 of this ranking, where both are 0.4, and at no other rank. Rank 5 is also the number of relevant documents. That is no coincidence: at rank $k$ precision is $h/k$ and recall is $h/5$, and with $h > 0$ the two are equal exactly when $k = 5$. The section on R-precision returns to this.
Plotting the two columns against each other is the first step toward a summary.
The precision-recall curve
Plotting precision against recall, one point per rank, gives a precision-recall curve. Its characteristic shape is a sawtooth.
- Each relevant document raises recall and does not lower precision: a step to the right, and usually up.
- Each nonrelevant document leaves recall unchanged and lowers precision: a drop straight down.
In the table, precision rises to 0.667 at rank 3, falls to 0.4 by rank 5, rises to 0.5 at rank 6, and so on. Several ranks share a recall value. Ranks 3, 4 and 5 all sit at recall 0.4, stacked vertically at precision 0.667, 0.5 and 0.4.
Interpolation
The sawtooth makes curves hard to compare and average. The standard fix is interpolated precision. The interpolated precision at recall level $r$ is the highest precision at any recall level $r' \ge r$:
$$p_{\text{interp}}(r) = \max_{r' \ge r} p(r').$$
The justification is about the user. A user willing to read further to reach a higher recall would accept that extra effort if precision were at least as good. So the best precision achievable at or beyond a recall level is the meaningful one. Interpolation turns the sawtooth into a curve that never increases as recall grows. The reason is in the definition: if $r_1 \le r_2$, every recall level $r' \ge r_2$ also satisfies $r' \ge r_1$, so the maximum for $r_1$ is taken over a set that contains the set for $r_2$, and a maximum over a larger set cannot be smaller. Hence $p_{\text{interp}}(r_1) \ge p_{\text{interp}}(r_2)$. When no rank reaches recall $r$, the set is empty and the interpolated precision is taken to be 0.
How is it computed? Because recall only grows with rank, "recall at least $r$" means "rank at least the first rank where recall reaches $r$". So the interpolated precision at each point is a running maximum of precision, taken from the bottom of the ranking upward. Working from rank 10 back to rank 1:
| Rank $k$ | Precision at $k$ | Recall at $k$ | Max precision at rank $k$ or below |
|---|---|---|---|
| 10 | 0.400 | 0.8 | 0.400 |
| 9 | 0.444 | 0.8 | 0.444 |
| 8 | 0.375 | 0.6 | 0.444 |
| 7 | 0.429 | 0.6 | 0.444 |
| 6 | 0.500 | 0.6 | 0.500 |
| 5 | 0.400 | 0.4 | 0.500 |
| 4 | 0.500 | 0.4 | 0.500 |
| 3 | 0.667 | 0.4 | 0.667 |
| 2 | 0.500 | 0.2 | 0.667 |
| 1 | 1.000 | 0.2 | 1.000 |
Reading off the last column at the first rank of each recall value gives the interpolated curve:
- 1.000 for recall up to 0.2 (rank 1);
- 0.667 up to 0.4 (rank 3);
- 0.500 up to 0.6 (rank 6);
- 0.444 up to 0.8 (rank 9);
- 0 beyond 0.8, which the system never reaches.
The 11-point average
A traditional summary measures interpolated precision at the eleven recall levels 0.0, 0.1, ..., 1.0.
Example (a recall level no rank reaches exactly). The interpolated precision at recall 0.5 is 0.500. No rank has recall exactly 0.5, so we take the best precision at recall 0.5 or more. The first rank past 0.5 is rank 6, at recall 0.6, and the best precision from there down is 0.500. The full row:
| Recall level | 0.0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Interpolated precision | 1.000 | 1.000 | 1.000 | 0.667 | 0.667 | 0.500 | 0.500 | 0.444 | 0.444 | 0 | 0 |
At recall 0.3, the best precision at any recall of 0.3 or more is 0.667, reached at rank 3 with recall 0.4. At recall 0.9 and 1.0 the interpolated precision is 0, because the system never reaches those recall levels. In this ranking the value at recall 0 comes from rank 1, where the first document is relevant and precision is 1.
The 11-point interpolated average precision is the mean of these values:
$$\frac{3 \times 1 + 2 \times 0.667 + 2 \times 0.5 + 2 \times 0.444 + 0 + 0}{11} = 0.566.$$
For a set of queries, the interpolated precision at each level is averaged across queries, giving an averaged precision-recall curve. The 11-point average was the traditional summary, used for instance in the first eight TREC ad hoc evaluations (Manning, Raghavan, and Schütze, 2008, §8.4). On the Cranfield collection, with the rankings from comparing ranking models:
| Recall level | 0.0 | 0.2 | 0.4 | 0.6 | 0.8 | 1.0 | 11-point mean |
|---|---|---|---|---|---|---|---|
| BM25 | 0.580 | 0.503 | 0.379 | 0.248 | 0.159 | 0.114 | 0.330 |
| TF-IDF | 0.563 | 0.487 | 0.359 | 0.232 | 0.157 | 0.113 | 0.318 |
| BIM | 0.455 | 0.379 | 0.265 | 0.171 | 0.105 | 0.083 | 0.240 |
The curves show the whole trade-off at once. BM25 and TF-IDF differ only at low recall, where BM25's better top ranks show, and converge after recall 0.7. The BIM is below both everywhere. But a curve is eleven numbers. Two curves that cross cannot be ranked without deciding which part of the curve matters more, which is why single-figure measures replaced them. The simplest looks at one cutoff.
Precision at k
For many applications, and web search above all, what matters to users is how many good results are on the first page or the first few pages (Manning, Raghavan, and Schütze, 2008, §8.4). Precision at $k$ (P@$k$) measures exactly that page: the fraction of the top $k$ results that are relevant. In the example, P@5 = 2/5 = 0.4 and P@10 = 4/10 = 0.4. It needs no knowledge of how many relevant documents exist. That makes it suitable for very large collections such as the web, where total recall is unknowable.
Its weaknesses are the other side of the same property.
- It ignores the order within the top $k$. A ranking with relevant documents at positions 1 and 2 has the same P@5 as one with them at 4 and 5.
- It varies with the number of relevant documents. A query with only two relevant documents can never exceed P@10 = 0.2, however good the system. Averages of P@$k$ across queries mix those different ceilings.
A natural misreading is that a low mean P@10 means a weak system. The ceiling is not a corner case. Of Cranfield's 225 queries, 173 have fewer than 10 relevant documents (the median is 6). A perfect system puts $\min(R_q, 10)$ relevant documents in the top ten for a query $q$ with $R_q$ relevant documents, so the best possible mean is
$$\frac{1}{\lvert Q \rvert} \sum_{q \in Q} \frac{\min(R_q, 10)}{10}.$$
On Cranfield this is 0.605, not 1. BM25's mean P@10 of 0.234 looks poor in absolute terms; as a fraction of what was achievable, it is $0.234/0.605 = 0.387$.
Recall and success at k
Recall at $k$ (R@$k$) is the fraction of all relevant documents found in the top $k$. In the worked ranking, R@5 $= 2/5 = 0.4$ and R@10 $= 4/5 = 0.8$. It is the matching measure for systems whose top $k$ results feed a later stage. An example is the first stage of a multi-stage ranking, which must not lose relevant documents before the reranker sees them.
The reason is a ceiling of a different kind. A later stage that reorders the top $k$ can change where the relevant documents stand, but it cannot add one that the first stage left out. The recall at $k$ of the first stage is therefore an upper bound on the recall of anything computed from its output. Multi-Stage Ranking proves this ceiling, and the matching one for nDCG, and measures both on Cranfield at several depths.
Example (the ceiling a reranker inherits). A perfect reranker applied to the worked ranking's ten results raises its average precision to 0.8 and no further. The best it can do is move the four retrieved relevant documents to ranks 1 to 4. Average precision, defined in the next article, is then $(1 + 1 + 1 + 1 + 0)/5 = 0.8$: the fifth relevant document is not among the ten, and no reordering recovers it. The value 0.8 is the first stage's recall at 10. This is general for a perfect reranking: the $h$ retrieved relevant documents each have precision 1 at their new ranks, so the average over all $R$ relevant documents is $h/R$, the recall.
Success at $k$, also called the hit rate, asks less: it is 1 if at least one relevant document is in the top $k$ and 0 otherwise, and its mean over queries is the share of queries with something useful in the top $k$. It suits a consumer that needs one good document. The worked ranking has success at 1 equal to 1. A ranking with its first relevant document at rank 2 has success at 1 equal to 0 and success at 2 equal to 1. Unlike recall, success at $k$ needs no knowledge of how many relevant documents exist.
On Cranfield, for BM25 over the 225 queries (worked_examples.py in the site's repository):
| Depth $k$ | Mean recall at $k$ | Success at $k$ |
|---|---|---|
| 1 | 0.324 | |
| 10 | 0.397 | 0.858 |
| 100 | 0.737 | 0.969 |
| 1,000 | 0.952 | 0.982 |
A reranker fed BM25's top 100 on this collection starts with a ceiling of 0.737 on mean recall. Dense passage retrieval measures a dense retriever's recall at the same cutoff on the same queries. Success at 1,000 stops at $221/225 = 0.982$. For three of the four remaining queries, no relevant document shares a term with the query after stemming, so BM25 never scores one. For the fourth, the single relevant document stands at rank 1,171, beyond the depth of the run. The same two measures are used for the retrievers that feed question answering and retrieval-augmented generation, since the reader or generator that follows can use only what the top $k$ contains. Karpukhin et al. (2020), for example, report a passage retriever by its top-20 and top-100 accuracy, the share of questions with an answer-bearing passage among the top $k$ (§2 and Table 2), which is success at $k$.
The ceiling problem of P@$k$ comes from using the same $k$ for every query. The next measure adapts the cutoff to the query.
R-precision
R-precision adapts the cutoff to the query. If a query has $R$ relevant documents, R-precision is the precision at rank $R$. In the example $R = 5$, so R-precision is P@5 = 0.4. A perfect system scores 1 on every query regardless of how many relevant documents it has, which removes the ceiling problem of P@$k$. It requires knowing $R$, so it needs the same judgment effort as recall.
At rank $R$, precision and recall are equal, since both are the number of relevant documents retrieved divided by $R$. For that reason R-precision is also called the break-even point. That is the general form of the earlier example: in the worked ranking the two curves meet at rank 5 because the query has 5 relevant documents.
In the worked ranking, rank 5 is the only rank where they are equal: the table shows precision above recall at every earlier rank and below it at every later one, and in the figure of precision and recall at each rank the two curves cross at rank 5 and nowhere else. On a precision-recall plot, the break-even point is where the curve meets the diagonal $P = R$. On Cranfield, BM25's mean R-precision is 0.309, close to its MAP of 0.307.
Reciprocal rank
Some needs are satisfied by a single document: a known-item search, a navigational query, a question with one answer. For these, what matters is how far down the first relevant result appears. The reciprocal rank is $1/k$, where $k$ is the rank of the first relevant document, and 0 if none is retrieved. Averaged over queries it is the mean reciprocal rank (MRR), the measure used to evaluate question answering at TREC (Voorhees, 1999) and to report link prediction on knowledge graphs, beside Hits@$k$ (Knowledge Graph Embeddings). In the example the first result is relevant, so the reciprocal rank is 1. If the first relevant result had been at rank 2, it would be 0.5.
Over four queries whose first relevant results are at ranks 1, 2, and 5, and never, the reciprocal ranks are 1, 0.5, 0.2, and 0, and
$$\text{MRR} = \frac{1 + 0.5 + 0.2 + 0}{4} = 0.425.$$
MRR drops steeply with rank. Moving the first relevant result from rank 1 to rank 2 halves the score, while moving it from 9 to 10 barely changes it. That matches user behavior for single-answer needs, since few users read far down a list.
Example (MRR is not the reciprocal of the mean rank). For the three queries that found something, the MRR is 0.567, which is not the reciprocal of their mean rank. The mean rank of the first relevant result is $(1 + 2 + 5)/3 = 2.67$, whose reciprocal is 0.375. Their mean reciprocal rank is $1.7/3 = 0.567$. Its reciprocal, 1.76, is the harmonic mean of the ranks, not the arithmetic mean. The harmonic mean is pulled toward the small values, so one query answered at rank 1 does more for MRR than one answered at rank 50 does against it. On Cranfield, BM25 puts a relevant document first for 73 of the 225 queries and has an MRR of 0.534.
Every measure so far ignores the true negatives. Classification has a well-known curve that uses them, and the next section shows why retrieval avoids it.
ROC curves
Classification research often uses the receiver operating characteristic (ROC) curve. It plots the true positive rate (recall) against the false positive rate, $FP/(FP + TN)$. ROC curves are rarely used in retrieval, for the same reason accuracy fails. Nearly every document is nonrelevant, so the true negatives are enormous, and the false positive rate stays close to zero across the part of the ranking any user would read. The curve compresses the region that matters into a sliver near its left edge (Manning, Raghavan, and Schütze, 2008, §8.4). Precision-recall curves, which ignore true negatives, show that region clearly.
A real query shows how extreme the compression is. For BM25 on Cranfield query 2, which has 24 relevant documents among 1,400, the first 100 results contain 8 relevant and 92 nonrelevant documents. Their false positive rate is $92/1{,}376 = 0.067$. So a hundred results, far more than anyone reads, occupy the leftmost 7 percent of the ROC plot. The same hundred results span precision from 1 down to 0.08 on the precision-recall plot.
The usual one-number summary of an ROC curve is the area under the curve (AUC). It equals the probability that a randomly chosen relevant document is ranked above a randomly chosen nonrelevant one, counting ties as half; ROC Curves for Diagnostic Tests proves this, and the library's Binary Classification Metrics works one by hand. A ranking in random order scores 0.5 and a perfect one 1.
The area under the ROC curve for this query is 0.748, which sounds respectable. It is dominated by how the ranking orders the hundreds of documents nobody reads, including the 617 that share no term with the query. Each of the 24 relevant documents is compared with all 1,376 nonrelevant ones, and nearly all of those comparisons involve a nonrelevant document far below any rank a user would reach.
Trying the measures
The demo below holds a ranking of 10 or 20 results. Clicking a result cycles its grade from 0 (not relevant) through 3 (highly relevant); any grade above 0 counts as relevant for the binary measures. The sliders set the cutoff $k$ and the number of relevant documents the system did not retrieve. That number matters for recall, AP, R-precision and the ideal ranking of nDCG. The presets load the worked ranking of this article, the second query of mean average precision, and the graded example of nDCG.
Three settings of the demo, with what each shows on the worked ranking:
- Moving a relevant document up. Mark rank 9 as not relevant and rank 2 as relevant, so the relevant ranks are 1, 2, 3 and 6. P@10 stays at 0.4, since the top ten still hold four relevant documents. AP rises from 0.522 to $(1 + 1 + 1 + 4/6 + 0)/5 = 0.733$, a gain of 0.211, because AP rewards the earlier position and P@10 cannot see it.
- No unretrieved relevant documents. Set the unretrieved count to 0, so that $R = 4$. The recall steps become 0.25, 0.5, 0.75 and 1, and the interpolated curve now reaches recall 1, at precision 0.444. The eleven interpolated values are 1 (three levels), 0.667 (three), 0.5 (two) and 0.444 (three), with mean 0.667, and AP becomes $2.611/4 = 0.653$. The ranking did not change; only the number of relevant documents it is measured against did.
- Nothing relevant at all. Load the all-nonrelevant preset and set the unretrieved count to 0. With no relevant documents at all, recall and nDCG are undefined, and the demo, like most tools, reports 0 (see implementing evaluation measures).
Choosing a measure
Each measure models a different user:
| Measure | Models a user who |
|---|---|
| P@$k$ | reads exactly the first $k$ results |
| Recall at $k$ | passes the top $k$ to a later stage, or must find everything within $k$ |
| Success at $k$ | needs one relevant document somewhere in the top $k$ |
| R-precision | reads as many results as there are relevant documents |
| Reciprocal rank | stops at the first relevant result |
| Average precision | wants every relevant document, and values finding each one early |
| nDCG | reads with declining attention, and values some documents more than others |
No measure is correct in general. User models behind retrieval metrics makes the table exact: it derives measures from stated models of the reader, among them rank-biased precision and expected reciprocal rank. A measure should be chosen to match the task, and reporting several, as TREC does, shows whether a conclusion depends on the choice. Evaluating Embedding Models makes this choice for a first-stage retriever, pairing recall at a cutoff with nDCG@10. How these measures are computed in practice, and where implementations disagree, is the subject of implementing evaluation measures.
Worked problems
The four problems are exercises of the course text (Manning, Raghavan, and Schütze, 2008, Exercises 8.4, 8.5, 8.6 and parts a to d of 8.9), restated here with solutions in our own words. Parts e to h of Exercise 8.9 and Exercise 8.8 concern average precision and are solved in the next article. The numbers are recomputed in tools/experiments/eval_measures/worked_examples.py.
Problem 1 (Exercise 8.4). Find the possible values of interpolated precision at a recall level of 0.
Solution. It is 0 if the ranking contains no relevant document, and otherwise it is the largest precision at any rank, which can be any rational number in $(0, 1]$ and equals 1 exactly when the first document is relevant.
Every rank has recall at least 0, so $p_{\text{interp}}(0) = \max_k P@k$, the maximum over all ranks of the ranking. If no relevant document is retrieved, every $P@k$ is 0 and so is the maximum. Otherwise the maximum is positive. It is reached at the rank of a relevant document: at a nonrelevant rank $k$ with $h > 0$ relevant documents above it, $P@k = h/k$ is smaller than $P@(k-1) = h/(k-1)$, so a nonrelevant rank never holds the maximum. It equals 1 exactly when some top $k$ consists only of relevant documents, and that happens exactly when the document at rank 1 is relevant. Every rational value $h/k$ with $1 \le h \le k$ occurs: rank $k - h$ nonrelevant documents first and then $h$ relevant ones. Precision is 0 through rank $k - h$, and then $j/(k - h + j)$ after the $j$-th relevant document, which increases with $j$ to $h/k$ at rank $k$. In the worked ranking the value is 1, from rank 1.
Problem 2 (Exercise 8.5). Must there always be a break-even point between precision and recall? Show that there must be, or give a counterexample.
Solution. In a ranking of at least $R$ documents there always is one, at rank $R$; a ranking shorter than $R$ can have none at a nonzero value.
At rank $k$, with $h$ relevant documents in the top $k$, precision is $h/k$ and recall is $h/R$. These are equal exactly when $h = 0$, where both are zero, or $k = R$. So:
- if the system ranks at least $R$ documents (in particular, if it ranks the whole collection), precision equals recall at rank $R$, whatever the ranking. This is the R-precision of the section above, and the common value may be 0;
- at every rank before the first relevant document, both are 0, a trivial break-even;
- no other rank is a break-even point.
A counterexample for short result lists: a query has $R = 5$ relevant documents and the system returns three documents, of which only the first is relevant. Precision at the three ranks is 1, 1/2 and 1/3, and recall is 1/5 at each, so they are never equal. No three-document list with a relevant first document does better, since equality with $h \ge 1$ needs $k = 5$ and the list ends at rank 3. In the worked ranking, with ten results and $R = 5$, the break-even point is rank 5, at the value 0.4.
Problem 3 (Exercise 8.6). State the relationship between the value of $F_1$ and the break-even point.
Solution. At the break-even point, $F_1$ equals the common value of precision and recall. If $P = R = b > 0$, then $F_1 = 2PR/(P + R) = 2b^2/(2b) = b$. The same holds for every mean of the two, since any mean of two equal numbers is that number. In the worked ranking, $F_1$ of the top 5 is $2(0.4)(0.4)/0.8 = 0.4$. The break-even value is not in general the largest $F_1$ along the ranking: at rank 3 of the worked ranking, $P = 0.667$ and $R = 0.4$ give $F_1 = 0.5$.
Problem 4 (Exercise 8.9, parts a to d). A ranked list of 20 documents, from a collection of 10,000, has relevant (R) and nonrelevant (N) documents in this order, the top of the ranking on the left:
R R N N N N N N R N R N N N R N N N N R
Six of the 20 are relevant, at ranks 1, 2, 9, 11, 15 and 20, and the collection holds 8 relevant documents in all. Find (a) the precision of the top 20, (b) $F_1$ of the top 20, (c) the uninterpolated precision at 25 percent recall, and (d) the interpolated precision at 33 percent recall.
Solution. (a) $6/20 = 0.300$. (b) Recall is $6/8 = 0.75$, so $F_1 = 2(0.3)(0.75)/(0.3 + 0.75) = 0.45/1.05 = 0.429$; in counts, $TP = 6$, $FP = 14$, $FN = 2$ and $F_1 = 12/28$.
(c) Recall is 25 percent when 2 of the 8 relevant documents have been retrieved. That is first true at rank 2, where precision is $2/2 = 1$. It remains true through rank 8, because ranks 3 to 8 are nonrelevant, and precision at those ranks is $2/k$: 0.667, 0.5, 0.4, 0.333, 0.286 and 0.25. So the uninterpolated precision at 25 percent recall is not one number. It is 1 at the rank where that recall is reached, and it falls to 0.25 before recall next rises. That ambiguity is the reason for interpolation.
(d) Interpolated precision at recall 0.33 is the largest precision at any rank with recall at least 0.33. No rank has recall between 0.25 and 0.375, so the qualifying ranks are those from rank 9 on, where the third relevant document arrives. Precision falls at nonrelevant ranks, so only the relevant ranks need checking: $3/9 = 0.333$ at rank 9, $4/11 = 0.364$ at rank 11, $5/15 = 0.333$ at rank 15 and $6/20 = 0.300$ at rank 20. The largest is $4/11 = 0.364$.
What we have learned
Every ranked measure starts from precision and recall at each rank. Plotted against each other they form a sawtooth, which interpolation smooths into a curve that never rises. Single numbers then pick a part of that curve. P@$k$ fixes a cutoff and inherits a ceiling (0.605 at P@10 on Cranfield). Recall at $k$ bounds what any later stage can do with the top $k$. R-precision moves the cutoff to rank $R$, where precision and recall break even. Reciprocal rank looks only at the first relevant result.
None of these uses every relevant document at once. The next article, Mean Average Precision, defines a single number that rewards a system for finding all of them and for finding each one early, and it continues the worked ranking.
References
- Karpukhin, V., Oğuz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., and Yih, W. (2020). Dense passage retrieval for open-domain question answering. In Proceedings of EMNLP 2020, 6769–6781. record · 15 pages
- Manning, C. D., Raghavan, P., and Schütze, H. (2008). Introduction to Information Retrieval, section 8.4. Cambridge University Press. record · 102 pages
- Voorhees, E. M. (1999). The TREC-8 question answering track report. In Proceedings of the Eighth Text REtrieval Conference (TREC-8), 77–82. record · 5 pages
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 13 revisions