How to calculate accuracy from confusion matrix?
Show older comments
How to calculate accuracy from confusion matrix?
1 Comment
darova
on 30 May 2019
Im confused a little bit. What do you mean?
Answers (1)
Rik
on 30 May 2019
0 votes
Accuracy = (TP+TN)/(TP+TN+FP+FN)
where: TP = True positive; FP = False positive; TN = True negative; FN = False negative
As you can find on Wikipedia ( https://en.m.wikipedia.org/wiki/Accuracy_and_precision )
So it should be trivial to calculate the accuracy from your confusion matrix: divide the sum of the diagonal by the total sum.
3 Comments
Shivalika Singh
on 22 Apr 2024
how to calculate sensiticity and ppv??
Shivalika Singh
on 22 Apr 2024
sensitivity**
Rik
on 23 Apr 2024
Did you check Wikipedia for a formula?
Categories
Find more on Simulink 3D Animation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!