Ranking Evaluation Metrics (MAP, MRR, NDCG, Precision and Recall at k)
Ranking evaluation metrics such as MAP, MRR, NDCG and precision and recall at k measure how well a system orders items for each query, given judged relevance of the items.
순위 평가 지표는 MAP, MRR, NDCG, k순위 정밀도·재현율처럼 항목별 관련성 판정을 바탕으로 시스템이 질의마다 항목을 얼마나 잘 정렬했는지 재는 지표입니다.
I have search results with relevance judgments for each query; how do I report MAP, MRR and NDCG@10 with confidence intervals for my ranking system?
질의마다 검색 결과와 관련성 판정이 있는데, 우리 검색 시스템의 MAP, MRR, NDCG@10을 신뢰구간과 함께 보고하려면 어떻게 하나요?
Sort each query's items by the system score and compute average precision, reciprocal rank, NDCG at the chosen cut-offs and precision and recall at k from the relevance labels. Average over queries and resample queries in a bootstrap to obtain confidence intervals.
When to use Ranking Evaluation Metrics (MAP, MRR, NDCG, Precision and Recall at k)
- You evaluate search, recommendation or retrieval output where order matters.
- Relevance is judged per query-item pair, either binary or graded.
- You want query-level uncertainty for the averaged metrics.
When to use something else
- Each case has a single binary prediction rather than a ranked list; use ROC AUC or classification metrics.
- You want to compare two systems formally on the same queries; use a paired test or paired bootstrap on per-query differences.
Assumptions and requirements
- Judged relevance is available for the retrieved items of each query.
- Queries are a sample from the population of queries of interest (the bootstrap resamples queries).
- Score ties are rare or their order is meaningful, since ties are broken by row order.
What the analysis reports
- MAP, MRR, NDCG@k, precision@k and recall@k
- Percentile bootstrap confidence intervals over queries
- Per-query metrics table
- Count of queries without any relevant item
How to report it
Across [value] queries, MAP was [value], 95% CI [[value], [value]], MRR was [value], and NDCG@[value] was [value], 95% CI [[value], [value]].
Related methods
- Mean Average Precision
- Multiclass ROC Analysis (One-vs-Rest, Hand-Till)
- Bootstrap Confidence Interval
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn and direct computations (formulas, enumeration or simulation).
독립 계산. scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Ranking Evaluation Metrics (MAP, MRR, NDCG, Precision and Recall at k) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a grouping variable
- Price
- 150 credits for one analysis up to 10,000 rows (complexity level 1); larger or wider data costs more. Optional methodologist review: 900 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.