Precision at k
Also P@k · P@R · Precision at R
P@k is the fraction of relevant documents among the top k results of a ranked result list; P@R is P@k with k = R, the number of relevant documents for the query.
Know these firstGround Truth
Properties#
- ; iff all top- results are relevant.
- ignores the order within the top and everything below rank ; it does not depend on . For , even for a perfect ranking.
- adapts the cut-off to the query: iff the first results are exactly the relevant documents.
- is not monotone in (see the example: ).
- Averaged over all queries of a benchmark: and , see Mean Average Precision.
- Average Precision averages over the positions of the relevant documents.
Example#
Sources#
- Slides 02, p. 22, Slides 02, p. 24 (MP@k, MP@R), Slides 13, p. 18
- DBIS_VL02 > Precision at k, DBIS_VL13 > Example Task: Ranking and Precision (WS 22/23, Task 3.1, 8 points)
- Exams: DBIS Exam WS1617 (not published) Task 1.3, DBIS Exam WS1718 (not published) Task 1.1, DBIS Exam WS2122 (not published) Task 1.3, DBIS Exam WS2223 (not published) Task 3.1, DBIS Exam WS2324 (not published) Task 1.3