Scenario 1
Scenario 1
Scenario 1
Find out Accuracy, Precision, Recall and F1 Score for the given problems.
In schools, a lot of times it happens that there is no water to drink. At a
few places, cases of water shortage in schools are very common and
prominent. Hence, an AI model is designed to predict if there is going to
be a water shortage in the school in the near future or not. The confusion
matrix for the same is:
Predicted:1 22 12
Predicted:0 47 118
Solution:
Predicted:1 0 3
Predicted:0 3 94
Solution:
Accuracy: 94%
Precision: 0%
Recall: 0%
F1 Score: 0
Conclusion
The model has high accuracy mainly due to the high number of true
negatives (correctly predicting no flood). However, it completely fails to
predict any actual floods (true positives), leading to a precision and recall
of 0%. This indicates that while the model may be good at identifying non-
flood conditions, it is ineffective in predicting flood occurrences, which is
critical for the intended application.
Scenario 3:
A lot of times people face the problem of sudden downpour. People wash
clothes and put them out to dry but due to unexpected rain, their work
gets wasted. Thus, an AI model has been created which predicts if there
will be rain or not. The confusion matrix for the same is:
Predicted:1 5 0
Predicted:0 45 50
Solution:
Precision: 1 (100%)
Conclusion:
The AI model has perfect precision, meaning when it predicts rain, it is
always correct. However, the recall is quite low, indicating that the model
fails to identify a significant number of actual rainy days (only 10%). The
overall accuracy is also moderate at 55%. The F1 Score reflects this
imbalance, demonstrating a trade-off between precision and recall.
Scenario 4:
Find out Accuracy, Precision, Recall and F1 Score for the given problems.
Traffic Jams have become a common part of our lives nowadays. Living in
an urban area means you have to face traffic each and every time you get
out on the road. Mostly, school students opt for buses to go to school.
Many times the bus gets late due to such jams and students are not able
to reach their school on time. Thus, an AI model is created to predict
explicitly if there would be a traffic jam on their way to school or not. The
confusion matrix for the same is
Predicted:1 50 50
Predicted:0 0 0
Solution:
The AI model shows an accuracy of 50%, indicating that half of its predictions were correct.
The precision is also 50%, meaning half of the predicted traffic jams were actual traffic jams.
The recall is perfect at 100%, indicating that all actual traffic jams were correctly identified
by the model. The F1 Score reflects a balance between precision and recall, showing
reasonable performance in identifying traffic jams.