1
$\begingroup$

My confusion matrix looks as follows:

> table(actual, predicted_all)
      predicted_all
actual    0    1
     0 1728 5261
     1 2088  168

While the AUC seems a bit too high in my eyes:

auc(actual, predicted_all) Area under the curve: 0.8391

I suspect I'm doing something wrong here, or is this not the case?

$\endgroup$

1 Answer 1

1
$\begingroup$

You have 6989 samples in class 0, 2256 samples in class 1, so it is easy to beat a random predictor, i.e. the AUROC should be significantly higher than 0.5.

This confusion matrix was simply computed using a threshold that makes your predictor tends to choose 1 more often.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.