Neha Patil (Editor)

Evaluation measures (information retrieval)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The evaluation measures of an information retrieval system is the process of assessing how well the search results satisfied the user's query intent. The metrics are often split into multiple categories. Online metrics measure actual users' interactions with the search system. Offline metrics measure the relevance of the search engine by having expert judges measure how likely each result (or the SERP page as a whole) is to meet the information needs of the user.

Contents

The mathematical symbols used in the formulas below mean:

  • X Y - Intersection - in this case, specifying the documents in both sets X and Y
  • | X | - Cardinality - in this case, the number of documents in set X
  • - Integral
  • - Summation
  • Δ - Symmetric difference
  • Online metrics

    Online metrics are generally created from data mined from search logs. The metrics are often used to determine the success of an A/B test.

    Session abandonment rate

    Session abandonment rate is a ratio of search session which do not result in a click.

    Click-through rate

    Click-through rate (CTR) is the ratio of users who click on a specific link to the number of total users who view a page, email, or advertisement. It is commonly used to measure the success of an online advertising campaign for a particular website as well as the effectiveness of email campaigns.

    Session success rate

    Session success rate measures the ratio of user sessions that lead to a success. Defining "success" is often dependent on context, but for search a successful result is often measured using dwell time as a primary factor along with secondary user interaction, for instance, the user copying the result URL is considered a successful result, as is copy/pasting from the snippet.

    Zero result rate

    Zero result rate (ZRR) is the ratio of SERPs which returned with zero results. The metric either indicates a recall issue, or that the information being searched for is not in the index.

    Offline metrics

    Offline metrics are generally created from relevance judgement sessions where the judges score the quality of the search results. The judges often score each result of a query as either binary (good/bad), or on a multi-level scale of satisfying the needs of the searcher. In practice, queries may be ill-posed and there may be different shades of relevancy. For instance there is ambiguity in the query "mars", the judge does not know if the user is search for Mars the planet, Mars the chocolate bar, or Bruno Mars the singer.

    Precision

    Precision is the fraction of the documents retrieved that are relevant to the user's information need.

    precision = | { relevant documents } { retrieved documents } | | { retrieved documents } |

    In binary classification, precision is analogous to positive predictive value. Precision takes all retrieved documents into account. It can also be evaluated at a given cut-off rank, considering only the topmost results returned by the system. This measure is called precision at n or P@n.

    Note that the meaning and usage of "precision" in the field of information retrieval differs from the definition of accuracy and precision within other branches of science and statistics.

    Recall

    Recall is the fraction of the documents that are relevant to the query that are successfully retrieved.

    recall = | { relevant documents } { retrieved documents } | | { relevant documents } |

    In binary classification, recall is often called sensitivity. So it can be looked at as the probability that a relevant document is retrieved by the query.

    It is trivial to achieve recall of 100% by returning all documents in response to any query. Therefore, recall alone is not enough but one needs to measure the number of non-relevant documents also, for example by computing the precision.

    Fall-out

    The proportion of non-relevant documents that are retrieved, out of all non-relevant documents available:

    fall-out = | { non-relevant documents } { retrieved documents } | | { non-relevant documents } |

    In binary classification, fall-out is closely related to specificity and is equal to ( 1 specificity ) . It can be looked at as the probability that a non-relevant document is retrieved by the query.

    It is trivial to achieve fall-out of 0% by returning zero documents in response to any query.

    F-score / F-measure

    The weighted harmonic mean of precision and recall, the traditional F-measure or balanced F-score is:

    F = 2 p r e c i s i o n r e c a l l ( p r e c i s i o n + r e c a l l )

    This is also known as the F 1 measure, because recall and precision are evenly weighted.

    The general formula for non-negative real β is:

    F β = ( 1 + β 2 ) ( p r e c i s i o n r e c a l l ) ( β 2 p r e c i s i o n + r e c a l l )

    Two other commonly used F measures are the F 2 measure, which weights recall twice as much as precision, and the F 0.5 measure, which weights precision twice as much as recall.

    The F-measure was derived by van Rijsbergen (1979) so that F β "measures the effectiveness of retrieval with respect to a user who attaches β times as much importance to recall as precision". It is based on van Rijsbergen's effectiveness measure E = 1 1 α P + 1 α R . Their relationship is:

    F β = 1 E where α = 1 1 + β 2

    F-measure can be a better single metric when compared to precision and recall; both precision and recall give different information that can complement each other when combined. If one of them excels more than the other, F-measure will reflect it.

    Average precision

    Precision and recall are single-value metrics based on the whole list of documents returned by the system. For systems that return a ranked sequence of documents, it is desirable to also consider the order in which the returned documents are presented. By computing a precision and recall at every position in the ranked sequence of documents, one can plot a precision-recall curve, plotting precision p ( r ) as a function of recall r . Average precision computes the average value of p ( r ) over the interval from r = 0 to r = 1 :

    AveP = 0 1 p ( r ) d r

    That is the area under the precision-recall curve. This integral is in practice replaced with a finite sum over every position in the ranked sequence of documents:

    AveP = k = 1 n P ( k ) Δ r ( k )

    where k is the rank in the sequence of retrieved documents, n is the number of retrieved documents, P ( k ) is the precision at cut-off k in the list, and Δ r ( k ) is the change in recall from items k 1 to k .

    This finite sum is equivalent to:

    AveP = k = 1 n ( P ( k ) × rel ( k ) ) number of relevant documents

    where rel ( k ) is an indicator function equaling 1 if the item at rank k is a relevant document, zero otherwise. Note that the average is over all relevant documents and the relevant documents not retrieved get a precision score of zero.

    Some authors choose to interpolate the p ( r ) function to reduce the impact of "wiggles" in the curve. For example, the PASCAL Visual Object Classes challenge (a benchmark for computer vision object detection) computes average precision by averaging the precision over a set of evenly spaced recall levels {0, 0.1, 0.2, ... 1.0}:

    AveP = 1 11 r { 0 , 0.1 , , 1.0 } p interp ( r )

    where p interp ( r ) is an interpolated precision that takes the maximum precision over all recalls greater than r :

    p interp ( r ) = max r ~ : r ~ r p ( r ~ ) .

    An alternative is to derive an analytical p ( r ) function by assuming a particular parametric distribution for the underlying decision values. For example, a binormal precision-recall curve can be obtained by assuming decision values in both classes to follow a Gaussian distribution.

    Precision at K

    For modern (Web-scale) information retrieval, recall is no longer a meaningful metric, as many queries have thousands of relevant documents, and few users will be interested in reading all of them. Precision at k documents (P@k) is still a useful metric (e.g., P@10 or "Precision at 10" corresponds to the number of relevant results on the first search results page), but fails to take into account the positions of the relevant documents among the top k. Another shortcoming is that on a query with fewer relevant results than k, even a perfect system will have a score less than 1. It is easier to score manually since only the top k results need to be examined to determine if they are relevant or not.

    R-Precision

    R-precision requires knowing all documents that are relevant to a query. The number of relevant documents, R , is used as the cutoff for calculation, and this varies from query to query. For example, if there are 15 documents relevant to "red" in a corpus (R=15), R-precision for "red" looks at the top 15 documents returned, counts the number that are relevant r turns that into a relevancy fraction: r / R = r / 15 .

    Precision is equal to recall at the R-th position.

    Empirically, this measure is often highly correlated to mean average precision.

    Mean average precision

    Mean average precision for a set of queries is the mean of the average precision scores for each query.

    MAP = q = 1 Q A v e P ( q ) Q

    where Q is the number of queries.

    Discounted cumulative gain

    DCG uses a graded relevance scale of documents from the result set to evaluate the usefulness, or gain, of a document based on its position in the result list. The premise of DCG is that highly relevant documents appearing lower in a search result list should be penalized as the graded relevance value is reduced logarithmically proportional to the position of the result.

    The DCG accumulated at a particular rank position p is defined as:

    D C G p = r e l 1 + i = 2 p r e l i log 2 i .

    Since result set may vary in size among different queries or systems, to compare performances the normalised version of DCG uses an ideal DCG. To this end, it sorts documents of a result list by relevance, producing an ideal DCG at position p ( I D C G p ), which normalizes the score:

    n D C G p = D C G p I D C G p .

    The nDCG values for all queries can be averaged to obtain a measure of the average performance of a ranking algorithm. Note that in a perfect ranking algorithm, the D C G p will be the same as the I D C G p producing an nDCG of 1.0. All nDCG calculations are then relative values on the interval 0.0 to 1.0 and so are cross-query comparable.

    Other measures

  • Mean reciprocal rank
  • Spearman's rank correlation coefficient
  • bpref - a summation-based measure of how many relevant documents are ranked before irrelevant documents
  • GMAP - geometric mean of (per-topic) average precision
  • Measures based on marginal relevance and document diversity - see Relevance (information retrieval) § Problems and alternatives
  • Visualization

    Visualizations of information retrieval performance include:

  • Graphs which chart precision on one axis and recall on the other
  • Histograms of average precision over various topics
  • Receiver operating characteristic (ROC curve)
  • Confusion matrix
  • Top queries list

    Top queries is noting the most common queries over a fixed amount of time. The top queries list assists in knowing the style of queries entered by users.

    Queries per time

    Measuring how many queries are performed on the search system per (month/day/hour/minute/sec) tracks the utilization of the search system. It can be used for diagnostics to indicate an unexpected spike in queries, or simply as a baseline when comparing with other metrics, like query latency. For example, a spike in query traffic, may be used to explain a spike in query latency.

    References

    Evaluation measures (information retrieval) Wikipedia