What is hit rate@k, and in what recommendation use cases is it preferred over rank-aware metrics like NDCG?

Quick Overview

Define hit rate@k for recommender evaluation and explain when it is a better choice than rank-aware metrics such as NDCG. Tests whether you understand what a binary top-k metric ignores, how it fits leave-one-out and candidate generation evaluation, and where its limits are.

What is hit rate@k, and in what recommendation use cases is it preferred over rank-aware metrics like NDCG?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is hit rate@k, and in what recommendation use cases is it preferred over rank-aware metrics like NDCG? ```hint Compare what each metric rewards Take one user whose relevant item lands at rank 1 and another whose item lands at rank k. Ask how each metric scores the two, then think about which products care about that difference. ``` ### What a Strong Answer Covers - A precise per-user definition of hit rate@k and how it is aggregated across users. - What hit rate@k ignores that a rank-aware metric such as NDCG accounts for. - Specific recommendation settings where ignoring position is acceptable, with the reason for each. - The weaknesses of hit rate@k and the settings where a rank-aware metric is the better choice. ### Follow-up Questions - How does hit rate@k relate to recall@k when a user has several relevant items? - Why can ranking the held-out item against a small sample of negatives, instead of the full catalog, mislead you about hit rate? - How would you choose k when the metric evaluates a candidate generation stage that feeds a ranker? - If hit rate@k goes up but NDCG@k goes down between two models, what changed?

Overview: Define hit rate@k for recommender evaluation and explain when it is a better choice than rank-aware metrics such as NDCG. Tests whether you understand what a binary top-k metric ignores, how it fits leave-one-out and candidate generation evaluation, and where its limits are.

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

What is hit rate@k, and in what recommendation use cases is it preferred over rank-aware metrics like NDCG?

What a Strong Answer Covers Guidance

  • A precise per-user definition of hit rate@k and how it is aggregated across users.
  • What hit rate@k ignores that a rank-aware metric such as NDCG accounts for.
  • Specific recommendation settings where ignoring position is acceptable, with the reason for each.
  • The weaknesses of hit rate@k and the settings where a rank-aware metric is the better choice.

Follow-up Questions Guidance

  • How does hit rate@k relate to recall@k when a user has several relevant items?
  • Why can ranking the held-out item against a small sample of negatives, instead of the full catalog, mislead you about hit rate?
  • How would you choose k when the metric evaluates a candidate generation stage that feeds a ranker?
  • If hit rate@k goes up but NDCG@k goes down between two models, what changed?