Normalized discounted cumulative gain
Normalized discounted cumulative gain is a ranking metric that discounts graded relevance by item position and normalizes the result against the ideal ranking.
Machine Learning System Design
A ranking metric that discounts relevance gains by position and normalizes them by the ideal discounted cumulative gain.
- How it is used
- Uses NDCG as a fast offline proxy for evaluating search rankings before relying on online outcomes.
- How deep it goes
- Defines NDCG through discounted gains and ideal normalization, but does not derive the position-discount formula.
- Examples
- Scores photo search results with human labels at 10 positions and purchase, favorite, click, or view feedback at 30 positions.
- What you can do after
- Evaluate search rankings using relevance scores and compare offline metrics with online outcomes.
Read how Machine Learning System Design explains normalized discounted cumulative gain →
Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI
A ranking metric that divides discounted cumulative gain by the ideal discounted cumulative gain.
- How it is used
- Scores annotator rankings of candidate results in information retrieval tasks.
- How deep it goes
- Defines a 0–1 ratio against an ideal ground-truth ranking and normalizes over shown candidates.
- Examples
- Uses basketball web-search and shopping queries to illustrate candidate lists that may be judged by annotators.
- What you can do after
- Evaluate annotator rankings against an ideal ranking for the candidates they saw.
Related concepts
- retrieval rankingmeasures · Retrieval ranking is the process of ordering candidate items according to their estimated relevance or usefulness to a query.
- performancekind of · Performance is the degree to which a system, model, or organization achieves specified objectives, measured by relevant outcomes and operational properties.
- discounted cumulative gainuses · Discounted cumulative gain is a ranking metric that sums graded relevance gains while reducing the contribution of items at lower positions in a ranked list.
- evaluation pipelineproduced by · An evaluation pipeline is an organized sequence of steps for assessing a system or its outputs against defined criteria and producing evaluation results.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

