MRR and Precision@K: When You Care About the First Correct Result
MRR: When Users Want One Answer
Reciprocal Rank is 1 divided by the position of the first relevant result. First relevant at position 1: RR = 1.0. Position 3: RR = 0.33. Position 10: RR = 0.1. No relevant in top-K: RR = 0. MRR averages this across queries. MRR of 0.5 means first relevant at position 2 on average.
Use MRR for navigational queries ("facebook login") where users want exactly one answer. Position 1 versus 2 matters enormously; position 5 versus 6 barely matters. MRR captures this through the 1/position formula.
Precision@K: What Fraction of Results Are Good
Precision@K = relevant items in top-K divided by K. If top-10 has 6 relevant items, Precision@10 = 0.6. Position within top-K does not matter: [relevant, relevant, irrelevant] and [irrelevant, relevant, relevant] both score 0.67.
Use Precision@K when users scan multiple results: image search, product listings. High Precision@10 means mostly relevant items without scrolling past garbage.
Choosing Between MRR, Precision, and NDCG
MRR: Single answer matters (navigational search, QA). Precision@K: Multiple results matter equally (product grid). NDCG: Multiple results with different quality levels. In practice, teams track multiple: NDCG for overall quality, MRR for navigational, Precision for coverage.