What is the difference between MRR, MAP, and NDCG as ranking metrics?

Quick Overview

Compare MRR, MAP and NDCG as ranking metrics: how each is computed, which relevant items each one counts, and how each handles graded relevance. Tests whether you can pick the right offline metric for search, question answering or recommendation ranking.

What is the difference between MRR, MAP, and NDCG as ranking metrics?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the difference between MRR, MAP, and NDCG as ranking metrics? ```hint Compare what each one counts For each metric, ask which relevant items contribute to the score, and whether a highly relevant item counts for more than a somewhat relevant one. ``` ### What a Strong Answer Covers - How each metric is computed for one query and then averaged over queries - Which relevant items each metric takes into account - Binary versus graded relevance, and how position is discounted - Which kinds of task each metric fits ### Follow-up Questions - How does each metric handle a query with no relevant items? - How can a ranking change raise MAP while lowering NDCG? - Which metric would you report for a recommendation feed, and at what cutoff? - If your relevance labels come from clicks, what bias enters these metrics and how would you correct for it?

Overview: Compare MRR, MAP and NDCG as ranking metrics: how each is computed, which relevant items each one counts, and how each handles graded relevance. Tests whether you can pick the right offline metric for search, question answering or recommendation ranking.

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

What is the difference between MRR, MAP, and NDCG as ranking metrics?

What a Strong Answer Covers Guidance

  • How each metric is computed for one query and then averaged over queries
  • Which relevant items each metric takes into account
  • Binary versus graded relevance, and how position is discounted
  • Which kinds of task each metric fits

Follow-up Questions Guidance

  • How does each metric handle a query with no relevant items?
  • How can a ranking change raise MAP while lowering NDCG?
  • Which metric would you report for a recommendation feed, and at what cutoff?
  • If your relevance labels come from clicks, what bias enters these metrics and how would you correct for it?