nDCG
Normalised Discounted Cumulative Gain (NDCG) is a metric used to evaluate the quality of ranked lists produced by search engines and recommender systems. It measures how well the items at the top of a list match their graded relevance to a given query or user.
The standard DCG at rank k is defined as DCG_k = sum_{i=1}^k (2^{rel_i} - 1) / log2(i + 1), where
IDCG_k is the ideal DCG for the same set of items, obtained by sorting them in nonincreasing
NDCG is widely used because it accommodates graded relevance and accounts for position bias. It is typically