Normalized discounted cumulative gain (NDCG) measures the quality of ranked results, such as photos returned by a search engine. It discounts relevance gains by position and normalizes discounted cumulative gain (DCG) by the ideal DCG. NDCG@N evaluates the first N results. section 5.3.2 section 12.4.2
NDCG can serve as a fast offline proxy for online measures such as click-through rate and conversion rate. Its usefulness depends on the relevance scores: human labels require collection effort, while implicit feedback reflects observed user interactions. section 5.3.2 section 12.4.2
Evaluating photo search
For NDCG@10, use human-labeled relevance scores for the photos on a search results page. For NDCG@30, use implicit scores: 3 for an image bought, 2 for one added to favorites, 1 for one clicked, and 0 for a view without interaction. section 12.4.2
To check whether an offline metric is a useful proxy, apply it retrospectively to saved search results and compare it with online metrics across time periods using Spearman’s rank correlation. Future A/B tests can track whether differences in offline metrics correspond to changes in online outcomes. section 12.4.2

