Phase 1: Prepare
Step 1 Warm-up recall
From M3.L1: name two dimensions of data quality.
Private: nothing you type here is sent or stored.
Step 2 Learning goal
By the end of this lesson you can:
- define a label in plain terms (Foundation);
- compute missed cases and false alarms from rates (Core);
- explain why an outside test beats a vendor claim (Core).
Phase 2: Teach
Step 3 A familiar example
A school that judges pupils by attendance, not learning, will end up with pupils who attend. A model that learns a stand-in for the outcome you care about will deliver the stand-in.
Step 4 Clear explanation
A label is the outcome a model is trained to predict. It is often a stand-in for what you actually care about, so the link between the two matters.
A widely used hospital sepsis alert shows the risk. An outside team tested the Epic Sepsis Model on 38,455 hospitalisations at one university hospital between December 2018 and October 2019. Part of the concern was how sepsis had been defined during model development: as the time a clinician intervened, so the model learned to predict what clinicians had already noticed. The results fell short of the vendor figures.
| Measure | Reported in one external test | Meaning |
|---|---|---|
| Sensitivity | 33% | Caught one in three sepsis cases |
| Cases not detected | 67% | Two in three missed |
| Patients alerted | 18% | Many alerts to staff |
| Positive predictive value | 12% | Most alerts were false alarms |
| Area under the curve | 0.63 | Vendor reported 0.76 to 0.83 |
Apply those rates to an invented 1,000 patients with 70 sepsis cases (7%). A sensitivity of 33% finds about 23 of them and misses about 47. Alerting 18% of patients is 180 alerts, so about 23 of 180, or 13%, are true, close to the 12% reported. Staff would face a large pile of false alarms and still miss most cases.
The lesson for a leader is plain: ask what the label really is, and test the system on your own data before you rely on a vendor figure.
Step 5 Worked example (4 marks)
A tool is tested on 1,000 cases, 50 of which are real. It finds 30 and raises 200 alerts in total. How many real cases are missed, and what share of alerts are true?
- Missed = 50 − 30 = 20. (1 mark)
- True alerts = 30. (1 mark)
- Share of alerts true = 30 ÷ 200 = 15%. (1 mark)
- Answer: 20 missed; 15% of alerts are true. (1 mark)
Go deeper: the professor's notes
What the model predicts.
A proxy for the real outcome.
Share of real cases found.
An alert that is not real.
Reported outside test
| Measure | Value |
|---|---|
| Sensitivity | 33% |
| Alerts true | 12% |
| AUC | 0.63 |
At work: Alerts that are true
30 true of 200 alerts.
- 30 ÷ 200 = 15%.
What a careful practitioner decides. Most alerts are false alarms; plan staff time accordingly.
Phase 3: Practise
Step 6 Learner practice (instant-marked)
1. A label is:
What the model learns to predict.
2. 70 cases and 33% sensitivity: about how many are missed?
70 − 23.
3. 180 alerts, of which 23 are true, is about:
23 ÷ 180.
4. The best test of a vendor claim is:
Test locally.
Phase 4: Close
Step 7 Recap
- The label is often a stand-in for the real outcome.
- Missed cases and false alarms follow from the rates.
- Test on your own data.
Step 8 Exit ticket (ungraded)
A tool finds 40 of 80 real cases and raises 160 alerts. What share of alerts are true?
Private: nothing you type here is sent or stored.
Step 9 Go further (Extension)
Write down the label used by a system you know and say how it differs from the real outcome.
In industry: Epic Sepsis Model: tested outside the vendor
A study in JAMA Internal Medicine in 2021 tested the Epic Sepsis Model on 38,455 hospitalisations at one university hospital. It reported a sensitivity of 33%, a positive predictive value of 12% and an area under the curve of 0.63, below the 0.76 to 0.83 reported by the vendor. The model alerted on 18% of patients and did not detect sepsis in 67% of those who had it.
Link to this lesson. Lesson link: ask what the label is and test on your own data.
Source: Wong et al., JAMA Internal Medicine, June 2021; editorial by Habib, Lin and Grant, August 2021.
Common mistakes
| Mistake | Why it fails |
|---|---|
| Accepting the vendor figure | Test on local data. |
| Ignoring false alarms | Count alerts that are true. |
| Not asking what the label is | Find the stand-in. |
Limits. The 1,000-patient figures are invented from the reported rates. The study covers one hospital and one period; later versions of the product may differ.