Why is NDCG@k often preferred over precision@k in search and recommendation?

Quick Overview

This ranking evaluation question asks why NDCG@k is often chosen over precision@k for search and recommendation. It tests how the rank discount, graded relevance and ideal-DCG normalization work, and when a simpler binary metric is still the better choice.

Why is NDCG@k often preferred over precision@k in search and recommendation?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is `NDCG@k` often preferred over `precision@k` in search and recommendation? ```hint Compare two rankings Take two top-10 lists that contain the same three relevant items, one with them at ranks 1 to 3 and one at ranks 8 to 10. Ask which metric tells them apart. ``` ### What a Strong Answer Covers - How each metric is computed, including the rank discount and the normalization by the ideal DCG - Position sensitivity and graded relevance, with a small worked comparison - Why normalization makes NDCG comparable across queries with different numbers of relevant items - When precision@k is still the right choice, and the practical caveats of NDCG ### Follow-up Questions - How do you compute the ideal DCG, and what goes wrong if you build it from the retrieved list only? - What score do you assign to a query that has no relevant items at all? - When would you prefer MRR or MAP over NDCG? - Offline NDCG went up but online click-through stayed flat. What could explain that?

Overview: This ranking evaluation question asks why NDCG@k is often chosen over precision@k for search and recommendation. It tests how the rank discount, graded relevance and ideal-DCG normalization work, and when a simpler binary metric is still the better choice.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why is NDCG@k often preferred over precision@k in search and recommendation?

What a Strong Answer Covers Guidance

  • How each metric is computed, including the rank discount and the normalization by the ideal DCG
  • Position sensitivity and graded relevance, with a small worked comparison
  • Why normalization makes NDCG comparable across queries with different numbers of relevant items
  • When precision@k is still the right choice, and the practical caveats of NDCG

Follow-up Questions Guidance

  • How do you compute the ideal DCG, and what goes wrong if you build it from the retrieved list only?
  • What score do you assign to a query that has no relevant items at all?
  • When would you prefer MRR or MAP over NDCG?
  • Offline NDCG went up but online click-through stayed flat. What could explain that?