Explore Library
Code QuizIntermediate

ROC Curve and AUC Interpretation

Find the logic error in judging a model by its AUC.

Codejavascript
// AUC ranges 0 to 1; 0.5 = random guessing
function isBetterThanRandom(auc) {
  return auc < 0.5;
}

console.log(isBetterThanRandom(0.82)); // expect true

What is the bug in this AUC interpretation?