Why do we normalize DCG by the ideal DCG?

Quick Overview

Asks why discounted cumulative gain is divided by the ideal DCG when evaluating a ranking system. It tests how ranking metrics are put on a common scale and averaged across queries, how the ideal ordering is built, and how to treat queries with no relevant items.

Why do we normalize DCG by the ideal DCG?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why do we normalize DCG by the ideal DCG? Ranking systems are usually scored with NDCG averaged over many queries, so explain what dividing by the ideal DCG accomplishes and what goes wrong without it. ```hint Compare two queries Think about what the largest possible DCG for a query depends on, and whether that maximum is the same for every query. ``` ```hint Watch the denominator Consider what happens to the ratio for a query that has no relevant items at all. ``` ### What a Strong Answer Covers - Why raw DCG has no common scale across queries - How IDCG is computed and what it represents - What the resulting 0 to 1 score means and why it makes averaging over queries fair - How to treat queries with IDCG = 0 and which items IDCG must be built from - What per-query normalization gives up, such as equal weight for every query ### Follow-up Questions - Why might you choose the gain ${2^{rel} - 1}$ over $rel$, and how does that choice change NDCG? - If many documents in the results were never judged, how does that bias NDCG? - When would you report MRR or precision@k instead of NDCG for a search product? - Two systems are compared on the same query set. Can mean DCG and mean NDCG pick different winners?

Overview: Asks why discounted cumulative gain is divided by the ideal DCG when evaluating a ranking system. It tests how ranking metrics are put on a common scale and averaged across queries, how the ideal ordering is built, and how to treat queries with no relevant items.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why do we normalize DCG by the ideal DCG? Ranking systems are usually scored with NDCG averaged over many queries, so explain what dividing by the ideal DCG accomplishes and what goes wrong without it.

What a Strong Answer Covers Guidance

  • Why raw DCG has no common scale across queries
  • How IDCG is computed and what it represents
  • What the resulting 0 to 1 score means and why it makes averaging over queries fair
  • How to treat queries with IDCG = 0 and which items IDCG must be built from
  • What per-query normalization gives up, such as equal weight for every query

Follow-up Questions Guidance

  • Why might you choose the gain 2rel−1{2^{rel} - 1} over relrel , and how does that choice change NDCG?
  • If many documents in the results were never judged, how does that bias NDCG?
  • When would you report MRR or precision@k instead of NDCG for a search product?
  • Two systems are compared on the same query set. Can mean DCG and mean NDCG pick different winners?