Download PDFOpen PDF in browser

On the Reliability of the Area Under the ROC Curve in Empirical Software Engineering

EasyChair Preprint 10358

14 pagesDate: June 7, 2023

Abstract

Binary classifiers are commonly used in software engineering research, to estimate several software qualities, e.g., defectiveness or vulnerability. Thus, it is important to adequately evaluate how well binary classifiers perform, before they are used in practice. The Area Under the Curve (AUC) of Receiver Operating Characteristic curves has often been used to this end. However, AUC has been widely criticized, so it is necessary to evaluate under what conditions and to what extent AUC can be a reliable performance metric.

We analyze AUC in relation to φ (also known as Matthews Correlation Coefficient), often considered a more reliable performance metric, by building the lines in the ROC space with constant value of φ, for several values of φ, and computing the corresponding values of AUC.

By their very definitions, AUC and φ depend on the prevalence ρ of a dataset, which is the proportion of its positive instances (e.g., the defective software modules). Hence, so does the relationship between AUC and φ. It turns out that AUC and φ are very well correlated, and therefore provide concordant indications, for balanced datasets (those with ρ around 0.5). Instead, AUC tends to become quite large, and hence provide over-optimistic indications, for very imbalanced datasets (those with ρ close to 0 or 1).

We use examples from the software engineering literature to illustrate the analytical relationship linking AUC, φ and ρ. We show that, for some values of ρ, the evaluation of performance based exclusively on AUC can be deceiving. In conclusion, this paper provides some guidelines for an informed usage and interpretation of AUC.

Keyphrases: Accuracy, Matthews Correlation Coefficient, Pearson φ, Predictors, binary classifiers, performance metrics

BibTeX entry
BibTeX does not have the right entry for preprints. This is a hack for producing the correct reference:
@booklet{EasyChair:10358,
  author    = {Luigi Lavazza and Sandro Morasca and Gabriele Rotoloni},
  title     = {On the Reliability of the Area Under the ROC Curve in Empirical Software Engineering},
  howpublished = {EasyChair Preprint 10358},
  year      = {EasyChair, 2023}}
Download PDFOpen PDF in browser