← All parts of this equation

Equation 11 · Part 14 · Measuring What a RAG System Retrieves, Not Just What It Answers

Denominator: IDCG@k

DCG@k=∑i=1k2 reli−1log⁡2(i+1),nDCG@k=DCG@kIDCG@k\mathrm{DCG@}k = \sum_{i=1}^{k} \frac{2^{\,\mathrm{rel}_i}-1}{\log_2(i+1)}, \qquad \mathrm{nDCG@}k = \frac{\mathrm{DCG@}k}{\mathrm{IDCG@}k}
IDCG@k\mathrm{IDCG@}k

What this part means

The complete quantity below the fraction bar; it must be nonzero for this division.

Its job in the formula

IDCG@k occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

The passage around this formula

…discounted cumulative gain generalises this to graded relevance and to the whole list rather than only the first hit: DCG@k=∑i=1k2 reli−1log⁡2(i+1),nDCG@k=DCG@kIDCG@k\mathrm{DCG@}k = \sum_{i=1}^{k} \frac{2^{\,\mathrm{rel}_i}-1}{\log_2(i+1)}, \qquad \mathrm{nDCG@}k = \frac{\mathrm{DCG@}k}{\mathrm{IDCG@}k}. where reli\mathrm{rel}_i is the graded relevance of the result at position i and IDCG@\mathrm{IDCG@}k is the DCG of the ideal ordering, so the ratio is bounded near one regardless of how many relevant documents exist for a given query. The logarithmic discount encodes a specific judgement about attention: a relevant document at position one is worth far more than the same document…

Read this part in the article →

Learn the underlying idea

A fraction a/b means a divided by b. The top number is the numerator; the bottom number is the denominator, and it cannot be zero.

Open the illustrated fractions: division written vertically guide →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.