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 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).
Precision:
Precision is defined as the percentage of true positive cases versus all the cases where the prediction is true.
Recall:
Recall= True Positive / True Positive + False Negative
F1 Score:
F1 score is defined as the measure of balance between precision and recall.
F1 Score = Precision*Recall/Precision + Recall
Accuracy= 0.9% Precision= 0.9375% Recall= 0.9375% F1 Score= 0.
Here precision, recall, accuracy, and f1 score all are the same