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.

...