Page 330 - AI Ver 1.0 Class 10
P. 330
a. Design a confusion matrix and explain all the four cases possible to check the performance of the table.
b. Calculate the Accuracy and the Precision of the model based on the data collected by you.
2. Festival time is approaching and a shopkeeper has planned to increase his sale of dry fruits and Mithai in his Sweet
Shop. What would you suggest him so that his perishable sweets which he make on daily basis should not be wasted
and he is able to achieve his target of earning a handsome profit at the end of the month?
D. Competency-based/Application-based questions:
1. Choosing between Precision and Recall depends on the condition in which the model has been deployed. Justify the
statement.
2. Most of the government schools are provided with mid-day meals. On any given day, the attendance of the students is
unpredictable. An AI model is made to predict the food to be prepared for each day. Calculate the accuracy, precision,
recall and F1 score from the given data.
Confusion Matrix Reality 0 Reality 1
Prediction 0 16 19
Prediction 0 12 9
Lab Subject Enrichment
1. Explore the internet to find some scenarios related to natural disasters. Take any one out of them
and make prediction-reality comparison. Draw a confusion matrix for it to show prediction results.
2. For the scenario in the above question, make evaluation through its parameters_ Accuracy, Precision
and Recall.
3. Calculate the following measures for the given confusion matrix - Accuracy, Precision, Recall and F1
Score.
Confusion Matrix True Positive True Negative
Predictive Positive 100 45
Predicted Negative 65 320
Answers
Exercise (Section A)
A. 1. a 2. a 3. c 4. c 5. c 6. c 7. a 8. b 9. a 10. b
B. 1. Accuracy 2. falsely predicted 3. high 4. F-measure
5. Model Evaluation 6. unauthorized 7. Reality 8. True Positive
C. 1. False 2. True 3. True 4. True 5. False
D. 1. d 2. c 3. a 4. b 5. e
328 Touchpad Artificial Intelligence-X

