1. Home
  2. Data Science
  3. Scikit-learn
  4. A fraud classifier labels 99 of 100 test transactions as…

Added 30 Nov -0001

A fraud classifier labels 99 of 100 test transactions as legitimate and reports accuracy 0.99. Which metric exposes the problem fastest?

  1. The confusion matrix sum, which grows whenever accuracy is artificially high
  2. R-squared, which measures how much variance the fraud labels explain overall
  3. Balanced accuracy, which averages recall across both classes and lands near 0.50 Correct answer
  4. Precision, which stays high because most of the predicted negatives are truly negative

Correct answer

C. Balanced accuracy, which averages recall across both classes and lands near 0.50

16 views

MCQSEXAM

Explanation

Balanced accuracy is the mean of per-class recall, so a model that never predicts the minority class scores about 0.5 on a two-class problem instead of the misleading 0.99 that plain accuracy reports. Accuracy is dominated by the majority class whenever classes are imbalanced. Precision also looks respectable here, since the model predicts almost no positives at all.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Scikit-learn MCQs

Practise all Scikit-learn MCQs

Similar MCQs