📏  Average Precision (AP)

Average Precision (AP)#

The area under the precision-recall curve summarising ranked retrieval.

Important

✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.

What it is#

Average precision summarizes the entire precision–recall curve in one number — the mean of precision across recall levels, computed as precision weighted by the gain in recall at each threshold:

\[\text{AP} = \sum_{n} (R_n - R_{n-1})\,P_n.\]

It equals the area under the PR curve (PR-AUC / AUPRC).

Why it’s useful#

Because it sweeps all thresholds, AP needs no single cutoff, and because it is built from precision and recall it ignores true negatives — making it far more informative than ROC-AUC on imbalanced data where the positive class is rare.

Where it’s used#

AP is the standard score for ranking and detection; averaging it over classes or queries gives mean average precision (mAP), the headline metric in information retrieval and object detection.


Theme: Classification & Averaging Metrics  ·  All terminology



See also

Source article Adapted (context, re-expressed) in our own words from: Average Precision (AP) (insightful-data-lab.com).

Tags: purpose: reference topic: terminology level: intermediate