Source-linked AI summary

Unachievable Region in Precision-Recall Space and Its Effect on Empirical Evaluation

Kendrick Boyd, Vitor Santos Costa, Jesse Davis, David Page

arXiv:1206.4667v2cs.LGcs.AIcs.IR

TL;DR

PR curves and AUCPR are widely used in skewed settings, but some points in PR space cannot be achieved. The paper characterizes this region in terms of class skew and discusses consequences for evaluation and score aggregation.

  • Problem

    PR curves and AUCPR are used in skewed settings, but a region of PR space was not recognized as unachievable.

    Source: §1 · pp. 1–2
  • Method

    The paper formally characterizes achievable PR points and proves results describing the unachievable region and its relation to class skew.

    Source: §2.1 · p. 3, §5 · p. 8
  • Results

    The unachievable region's size depends only on the positive-to-negative ratio, and its minimum PR curve contributes area that every algorithm obtains for free.

    Source: §1 · p. 2, §5 · p. 8
  • Takeaways & Limitations

    The unachievable region affects downsampling, F-measure, score aggregation, and evaluation across tasks or folds with differing skews.

    Source: §1 · p. 2, §5 · p. 8

    F1 remains a summary metric, so vital information for interpreting model performance may be lost.

    Source: §4.4 · p. 7

Abstract

from arXiv · show

Precision-recall (PR) curves and the areas under them are widely used to summarize machine learning results, especially for data sets exhibiting class skew. They are often used analogously to ROC curves and the area under ROC curves. It is known that PR curves vary as class skew changes. What was not recognized before this paper is that there is a region of PR space that is completely unachievable, and the size of this region depends only on the skew. This paper precisely characterizes the size of that region and discusses its implications for empirical evaluation methodology in machine learning.

1. Introduction

PR curves and AUCPR are widely used to evaluate algorithms, particularly when class distributions are skewed. This paper identifies an unachievable region in PR space, characterizes its dependence on class skew, and explains implications for evaluation.

1. Introduction

  • PR analysis is preferred to ROC analysis under large class skew, where even a low false positive rate can yield many false positives and low precision.Precision measures the proportion of positively labeled examples that are truly positive, while recall measures correctly classified positives.Source: §1 · p. 1
  • PR curves and AUCPR are often treated as substitutes for ROC curves and AUCROC, although PR curves vary with class skew.AUCPR is used to compare algorithms in information retrieval, statistical relational learning, and information extraction; some algorithms explicitly optimize it.Source: §1 · p. 1
  • Unlike ROC space, PR space contains points that cannot be achieved by any confusion matrix for a given data set.The paper characterizes the unachievable region's size as a function only of class skew and identifies a minimum PR curve whose area every algorithm obtains for free.Source: §1 · p. 2
  • Unachievable-region effects can distort task or fold aggregation, change with downsampling, and alter the behavior of algorithms optimizing AUCPR or MAP.The paper describes straightforward modifications to AUCPR that can at least partially offset these undesirable effects.Source: §1 · p. 2

2. Achievable and Unachievable Points in PR Space

The section characterizes which precision-recall points are achievable for a given class skew, then derives the minimum PR curve and its implications for AUCPR and average precision. It shows that the unachievable region depends on skew and can affect score interpretation, especially when recall is restricted to high values.

2.1. Unachievable Points in PR Space

  • With 100 positives and 200 negatives, precision 0.2 is possible at recall 0.5 but impossible above it because false positives cannot exceed the negatives.At recall 0.6, the attempted confusion matrix would require more false positives than available negatives.Source: §2.1 · pp. 2–3, Table 1 · p. 3
  • Theorem 1 requires achievable precision and recall to satisfy p ≥ rπ/(rπ + 1 − π), so the feasible boundary depends on skew, not data-set size.Here π is the proportion of positive examples.Source: §2.1 · p. 3

2.2. Unachievable Region in PR Space

  • The minimum PR curve is a tight lower bound: for a given skew, all achievable points lie on or above it.The bound is attained by ranking every negative ahead of every positive.Source: §2.2 · p. 3
  • The unachievable region lies below the minimum PR curve, and its area—and thus minimum AUCPR—has a closed-form value determined by skew.Every algorithm's AUCPR includes this minimum area “for free.”Source: §2.2 · p. 3
  • The minimum average precision follows the worst ranking, with all negatives ranked before positives, and unlike AUCPR depends on the number of positive examples.AP is a discrete sum over positives, whereas AUCPR is calculated from interpolated curves.Source: §2.2 · p. 4
  • Changing skew from 0.01 to 0.5 raises minimum AUCPR by approximately 0.3, even with no change to the learning algorithm.This is an automatic score increase from changing the data set.Source: §2.2 · p. 4
  • Because most of the unachievable region is at higher recall, its effect on AUCPR is more pronounced when the area is restricted to high recall.The paper gives a formula for the minimum AUCPR over a restricted recall interval.Source: §2.2 · p. 4, Figure 3 · p. 4

3. PR Space Metrics that Account for Unachievable Region

Because AUCPR’s range depends on class skew, the authors propose AUCNPR, which subtracts the skew-dependent minimum and normalizes the best ranking to 1. AUCNPR assigns best and worst rankings scores of 1 and 0 regardless of skew while preserving ordering on the same test set.

3. PR Space Metrics that Account for Unachievable Region

  • A replacement metric should preserve AUCPR ordering on a single test set and have the same range across data sets, though preserving ordering may not suit cross-validation with differing skews.Source: §3 · p. 4
  • AUCNPR subtracts minimum AUCPR so the worst ranking scores 0, then normalizes by the maximum, which is 1 for full recall or b−a over recall range a≤r≤b.Source: §3 · p. 5
  • Across skews, AUCNPR gives the best ranking 1 and the worst 0, preserves same-test-set ordering, and makes cross-dataset comparisons more meaningful than AUCPR.Source: §3 · p. 5
  • Normalizing by random-guessing AUCPR π leaves the score range skew-dependent and can produce negative scores for algorithms below random guessing.Source: §3 · p. 5
  • When π=0 or π=1, AUCPRMIN and AUCNPR are undefined; the paper refers readers to its technical report for these degenerate data sets.Source: §3 · p. 5

4. Discussion and Recommendations

The discussion argues that skew-dependent unachievable regions matter in PR evaluation, especially when aggregating results, downsampling data, or summarizing performance with F1. It recommends accounting for skew in aggregation and showing the minimum PR curve.

4. Discussion and Recommendations

  • When π=0.1, AUCPRMIN is approximately 0.05 and grows as π approaches 0.5; PR plots should show the minimum PR curve.The paper urges practitioners to account for the unachievable region when inspecting PR curves and AUCPR scores.Source: §4 · p. 5

4.1. Aggregation for Cross-Validation

  • Fold-skew differences can make straightforward AUCPR or vertical-curve averaging overly optimistic; averaging AUCNPR reduces, but does not eliminate, skew’s effect.The folds can have different unachievable regions, and AUCNPR has the same range regardless of skew.Source: §4.1 · pp. 5–6

4.2. Aggregation among Different Tasks

  • AUCPR 0.4 is worse than random for gender but reasonably high for genre; Table 2’s AUCNPR is more conservative, though it remains skew-sensitive.The cited predicates have different AUCPR ranges, so the same AUCPR value need not have the same interpretation.Source: §4.2 · p. 6, Table 2 · p. 6

4.3. Downsampling

  • AUCNPR varied less than AUCPR across downsampling settings, yet at a 1:1 ratio its downsampled-test score was more than twice its original-test score.The original test set had a 1:24 positive-to-negative ratio (π=0.04).Source: §4.3 · p. 7, Table 3 · p. 7

4.4. F1 Score

  • At π=0.33, A, B, and C all score F1=0.45, yet are respectively unachievable, near the minimum PR curve, and good precision at modest recall.F1 treats precision and recall as interchangeable despite their different constraints in PR space.Source: §4.4 · p. 7, Figure 4 · p. 8

5. Conclusion

The paper characterizes a region of precision-recall space that is unachievable for each positive-to-negative example ratio. It connects this result to downsampling and the effects of the minimum PR curve on F measure and score aggregation.

  • Theorems 1 and 2 precisely characterize the unachievable region of precision-recall space for a given positive-to-negative example ratio.Source: §5 · p. 8
  • The characterization further informs the effects of downsampling on precision-recall evaluation.Source: §5 · p. 8
  • The paper examines how the minimum PR curve affects F measure and score aggregation.Source: §5 · p. 8
Loading 1206.4667v2…