noun · abbreviation · evaluation metric
nDCG
Normalized discounted cumulative gain (nDCG) is a ranking metric that adds up the relevance of each result, discounts each one by how far down the list it appears, and divides by the best possible score so the result falls between 0 and 1.
In practice
The discount is logarithmic, so slipping from first to second costs more than slipping from eighth to ninth. Unlike mean reciprocal rank, nDCG counts every relevant result and can use graded relevance, like scoring a strong recommendation higher than a passing mention. That makes it a candidate for AI visibility, where a brand can be recommended, mentioned, or left out.
Not to be confused with
Mean reciprocal rank, which only looks at the position of the first relevant result.