Evaluate ranked relevance with confidence. Compare real and ideal orders quickly. See gain, discount, curves, and interpretation in one clean dashboard.
| Position | Item | Ranked Relevance | Ideal Relevance |
|---|---|---|---|
| 1 | Doc A | 3 | 3 |
| 2 | Doc B | 2 | 3 |
| 3 | Doc C | 3 | 2 |
| 4 | Doc D | 0 | 2 |
| 5 | Doc E | 1 | 1 |
| 6 | Doc F | 2 | 0 |
Use this example to test NDCG@k, compare ranking quality, and verify how gain and discounting affect final evaluation.
NDCG measures how close your ranked results are to the ideal ranking. It rewards relevant items near the top and discounts lower positions.
rel. Exponential gain uses 2^rel - 1. Exponential gain gives much more weight to highly relevant items.
Position 1 receives full weight. Lower positions receive discounted credit through the logarithmic denominator. This makes early ranking quality more important.
NDCG measures ranking quality by comparing your ranked list with an ideal order. It values relevant items more when they appear near the top.
Scores closer to 1 are better. In many applications, 0.8 or higher is strong, but acceptable targets depend on the task, labels, and baseline.
Accuracy ignores position and graded relevance. NDCG is better for search, recommendation, and ranking systems where order matters significantly.
NDCG@k evaluates only the first k positions. It is useful when users usually inspect only the top portion of results.
Use exponential gain when highly relevant items deserve much stronger emphasis than moderately relevant ones. It exaggerates top-label differences intentionally.
Yes. If you leave the ideal list blank, this calculator sorts the ranked relevance values in descending order to build the ideal ranking.
Yes. NDCG is designed for graded relevance, such as 0 to 3 or 0 to 5 labels, not only binary relevant versus irrelevant judgments.
Because NDCG normalizes DCG by the best possible ranking. Two lists may earn similar gain, yet differ in how close they are to ideal placement.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.