+1 vote
in Data Science by
How can you calculate accuracy using a confusion matrix?

1 Answer

0 votes
by

Consider this confusion matrix:

confusion-matrix

You can see the values for total data, actual values, and predicted values.

The formula for accuracy is:

Accuracy = (True Positive + True Negative) / Total Observations

= (262 + 347) / 650

= 609 / 650

= 0.93

As a result, we get an accuracy of 93 percent.

Related questions

0 votes
asked Dec 24, 2019 in Data Science by sharadyadav1986
+1 vote
asked Apr 5, 2023 in Data Science by Robin
...