Neha Patil (Editor)

Mean reciprocal rank

Updated on
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The mean reciprocal rank is a statistic measure for evaluating any process that produces a list of possible responses to a sample of queries, ordered by probability of correctness. The reciprocal rank of a query response is the multiplicative inverse of the rank of the first correct answer. The mean reciprocal rank is the average of the reciprocal ranks of results for a sample of queries Q:

MRR = 1 | Q | i = 1 | Q | 1 rank i .

where rank i refers to the rank position of the first relevant document for the i-th query.

The reciprocal value of the mean reciprocal rank corresponds to the harmonic mean of the ranks.


For example, suppose we have the following three sample queries for a system that tries to translate English words to their plurals. In each case, the system makes three guesses, with the first one being the one it thinks is most likely correct:

Given those three samples, we could calculate the mean reciprocal rank as (1/3 + 1/2 + 1)/3 = 11/18 or about 0.61.

This basic definition does not specify what to do if none of the proposed results are correct, though reciprocal rank 0 could be used in this situation. It also does not specify what to do if there are multiple correct answers in the list. In this case, mean average precision is a potential alternative metric.


Mean reciprocal rank Wikipedia

Similar Topics
Pirates of the Pines
Koray Altınay
Giacomo Cimini