menu search
brightness_auto
more_vert
2 1

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 ?

Topic Evaluation (project cycle)
Type  Long Answer Type
Class 10

thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Verified Answer
1
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 15 20
80 20 100

Calculation: 

Accuracy

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

Accuracy = Correct Predictions / Total Cases * 100%
Accuracy = (TP + TN) / (TP + TN + FP + FN ) * 100%

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.

Precision = True Positive / All Predicted Positives *100%
Precision =(TP/TP+FP) *100%
= 75 / (75+5) 
= 75 /80
= 0.9375

Recall:

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

Recall= True Positive / True Positive + False Negative 

Recall= TP/TP+FN
= 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)  

F1 Score = Precision*Recall/Precision + Recall

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, and f1 score all are the same 


Study more about Evaluation at Evaluation Class 10
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
Welcome to Aiforkids, where you can ask questions and receive answers from other members of the community.

AI 2024 Class 10 Board Exams mein 100% laane ka plan OPEN NOW

Class 10 Complete One Shot AI Lectures at - Youtube

1.5k questions

1.4k answers

4 comments

11.5k users

...