50 minutes. Self-marked against the rubric. 16 marks. In the full course this counts toward the labs and cases share (15% of the course grade). Write your answers in the boxes, then open the model answer and tick each mark you earned honestly. Nothing is sent or stored.
Scenario (invented)
A hospital (invented) tests an alert model on 500 patients. Forty of them really go on to develop a serious condition. The model raises 60 alerts, and 30 of those alerts are for patients who really develop it.
Reviewing an alert costs £20. A missed case costs £400. With no model, no alerts are raised and every case is missed.
Tasks
Task 1 (5 marks)
Fill in TP, FP, FN and TN, then find the accuracy and the accuracy of never alerting.
Private: nothing you type here is sent or stored.
Task 2 (4 marks)
Find precision, recall and F1 and say what they show that accuracy hid.
Private: nothing you type here is sent or stored.
Task 3 (4 marks)
Find the total cost with the model and with no model, and the saving.
Private: nothing you type here is sent or stored.
Task 4 (3 marks)
The model is moved to a ward where only 2% of patients develop the condition. Assuming the same recall (75%) and the same false-alarm rate (30 of 460, about 6.5%), count what happens among 1,000 patients and find the PPV.
Private: nothing you type here is sent or stored.
Rubric and model answer
Task 1: matrix and accuracy (5 marks)
Model: TP 30; FP 60 − 30 = 30; FN 40 − 30 = 10; TN 500 − 30 − 30 − 10 = 430. Accuracy (30 + 430) ÷ 500 = 92%. Never alerting: 460 ÷ 500 = 92%.
Task 2: precision, recall, F1 (4 marks)
Model: precision 30 ÷ 60 = 50%; recall 30 ÷ 40 = 75%; F1 = 2 × 0.5 × 0.75 ÷ 1.25 = 0.60. Accuracy equalled the baseline, but the model finds three quarters of the cases.
Task 3: cost (4 marks)
Model: with the model, alerts 60 × £20 = £1,200 and misses 10 × £400 = £4,000, total £5,200. With no model, 40 × £400 = £16,000. Saving £10,800.
Task 4: base rate (3 marks)
Model: sick 20, healthy 980; TP 0.75 × 20 = 15; FP about 0.065 × 980 = 64; PPV = 15 ÷ 79 = about 19%. In the low-prevalence ward most alerts are false alarms.
Marks so far: 0 of 16