AI Cybersecurity Lab

Intrusion and anomaly detection, malware analysis, threat intelligence, phishing, security logs and incident response: defensive experiments that really compute in your browser on synthetic data, with algorithms, datasets, projects and quizzes.

28interactive experiments

PR-AUC (Average Precision)

Research and Metrics · Metric

Definition

Area under precision vs recall.

Formula

\mathrm{AP}=\sum_n (R_n-R_{n-1})P_n

How to read it

More informative when positives are rare.

Caveats

The baseline equals the positive prevalence, not 0.5.

References

  1. Saito, Rehmsmeier (2015). The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLOS ONE 10(3), e0118432. doi:10.1371/journal.pone.0118432
  2. Davis, Goadrich (2006). The relationship between Precision-Recall and ROC curves. ICML 2006, pp. 233-240. doi:10.1145/1143844.1143874