
Evaluating Ranked Results With Discounted Gain
Discounted cumulative gain scores a ranked list by adding graded relevance scores and shrinking each one with a logarithmic discount by position. Normalizing against the ideal ordering at the same cutoff turns the total into a comparable number between zero and one.
المصادر
الملخص الكامل
A search box returns a list, and the list has an order. Some results matter a lot, some a little, some not at all. Discounted Cumulative Gain, usually shortened to DCG, turns that situation into a number. Each item carries a graded relevance score, a judgment such as 3 for excellent, 2 for useful, 1 for marginal and 0 for irrelevant. The score is divided by a discount that grows with position, commonly the base-two logarithm of the sum of the position and one. Position 1 divides by log2(2), which is 1, so the top item keeps its full value. Position 2 divides by log2(3), about 1.585. Position 3 divides by 2. Later items contribute less even when their judgments are high.
Suppose three documents have relevance scores 3, 1 and 2. In the order 3, 1, 2 the contributions are 3/1, 1/1.585 and 2/2, giving 3 plus 0.63 plus 1, a DCG of about 4.63 at cutoff 3. Now move the score of 2 to the front, keeping the same three items. The order 2, 3, 1 gives 2 plus 3/1.585 plus 1/2, which is 2 plus 1.89 plus 0.50, about 4.39. Here the original order wins. Reverse the test and put the best item first. The order 3, 2, 1 gives 3 plus 2/1.585 plus 1/2, about 4.76. Promoting the strongest item upward improves the total, which is the behavior the metric is designed to reward.
Raw DCG depends on the judgments and on the cutoff, so comparing two queries is awkward. Normalization fixes this. Sort the same items into their best possible order at the same cutoff, compute that ideal DCG, and divide. In the first ordering above, the ideal is the 3, 2, 1 arrangement at about 4.76, so the normalized score is 4.63 divided by 4.76, roughly 0.97. With nonnegative judgments and a positive ideal DCG, the result lies between zero and one. When every judgment is zero, the ideal DCG is zero, and dividing by zero is undefined. A common convention reports 0 in that situation, since the ranking has no relevant material to reward. Teams should state this rule explicitly rather than let it vary silently between tools.
Students can work in pairs with four cards labeled with relevance scores. They arrange the cards, compute DCG at cutoff 3, then rearrange and recompute. Each pair writes the two sums on the board and explains which move helped and why. The visible arithmetic shows whether students understand that the discount, not just the labels, drives the total. A teacher might ask what happens if the top card is a zero and the second card is a three. The pair computes 0 plus 3 divided by 1.585, about 1.89, and sees that a three in second place contributes slightly less than a two in first place, yet more than a one in first place.
DCG rewards putting strong judgments early and tolerates weaker ones later. Normalizing makes lists of different lengths and judgment scales easier to compare, provided the cutoff and the zero-gain convention are stated.


