Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
15.7k views
in Artificial Intelligence (AI) by (47.7k points)
closed by

Calculate Accuracy, Precision, Recall and F1 Score for the following Confusion Matrix on Water Shortage in Schools: Also suggest which metric would not be a good evaluation parameter here and why?

1 Answer

+1 vote
by (44.7k points)
selected by
 
Best answer
The Confusion Matrix (Water Shortage in School) Reality: 1 Reality: 0
Prediction: 1 75 5
Prediction: 0 5 15

Reality: 1 Reality: 0
Prediction: 1 75 5 80
Prediction: 0 5 15 20
80 20 100

Calculation:

Accuracy: Accuracy is defined as the percentage of correct predictions out of all the observations.

Where True Positive (TP), True Negative (TN), False Positive (FP) and False Negative (FN).

= (75+15) / (75+15+5+5) 

= (90 / 100) 

=0.9

Precision: Precision is defined as the percentage of true positive cases versus all the cases where the prediction is true.

= 75 / (75+5) 

= 75 /80 

= 0.9375

Recall: It is defined as the fraction of positive cases that are correctly identified.

= 75 / (75+5) 

= 75 /80 

= 0.9375

F1 Score: F1 score is defined as the measure of balance between precision and recall.

= 2 * ((0.9375 *0.9375) / (0.9375+0.9375)

Therefore

= 2 * (0.8789 / 1.875) 

= 2 * 0.46875 

= 0.9375

Accuracy= 0.9% Precision=0.9375% Recall=0.9375%

F1 Score=0.

Here precision, recall, accuracy, f1 score all are same

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...