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.