Home Knowledge Base Average Precision (AP)

Average Precision (AP) is the area under the precision-recall curve — measuring ranking quality by averaging precision at each relevant result position, capturing both precision and recall in a single metric.

What Is Average Precision?

How AP Works

1. Rank items by predicted relevance. 2. For each relevant item at position k, compute Precision@k. 3. Average these precision values.

Example

Ranked list: R, N, R, R, N (R=relevant, N=not relevant).

Why Average Precision?

AP vs. Other Metrics

vs. Precision@K: AP considers all positions, P@K only top-K. vs. NDCG: AP binary relevance, NDCG handles graded relevance. vs. MRR: AP considers all relevant items, MRR only first.

Applications: Information retrieval, search evaluation, recommendation evaluation, object detection (mAP).

Tools: scikit-learn, IR evaluation libraries.

Average Precision is comprehensive ranking evaluation — by averaging precision at all relevant positions, AP captures both the quality and completeness of rankings in a single, interpretable metric.

average precisionevaluation

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.