Solved – Compute accuracy of model evaluation

accuracyconfusion matrixmodel-evaluationpredictive-models

Say the number of negativ classes is $9990$ and the number of positive classes is $10$.
If a model predicts all examples to belong to the negative class, how accurate is this prediction?

So what we got:

  • Actual positive (TP): 10
  • Actual negative (TN): 9990
  • Predicted positive (FP): 0
  • Predicted negativ (FN): 10000

So the accuracy would be: $\frac{TP+TN}{TP+TN+FP+FN} = \frac{10+10000}{10+10000+0+10000)} = 0.5$

But it doesn't seem to be correct.

Best Answer

Yeah, that's wrong.

FN = false negative = 10

FP = false positive = 0

TP = true positive = 0

TN = true negative = 9990

accuracy = $\frac{9990 + 0}{10 + 9990 + 0 + 0}$ = 99.9%

Related Question