Phase 1: Prepare
Step 1 Warm-up recall
From M7.L3: what is drift?
Private: nothing you type here is sent or stored.
Step 2 Learning goal
By the end of this lesson you can:
- describe a feedback loop (Foundation);
- say when a model should not be used (Core);
- write the main items of a short model card (Core).
Phase 2: Teach
Step 3 A familiar example
A council sends inspectors to the shops its model rates riskiest. Next year's records show more problems at those shops, but they are the only shops anyone looked at.
Step 4 Clear explanation
A feedback loop arises when a model's output changes the data it will later learn from.
Suppose a model picks the 20 riskiest of 100 shops and inspectors find faults in 10 of them, a recorded rate of 50%. The other 80 shops were not inspected, so they have no recorded faults. A new model trained on the records will see a strong pattern, but it cannot tell whether the 80 shops are truly safer, because no one looked. Collecting some inspections at random, outside the model's choices, gives data that are not distorted by the loop.
Some situations call for not using a model, or for using it only to prioritise human review: when mistakes cannot be undone, when the data are known to be biased, when people affected cannot appeal, or when no one can say how it reached a result. A model also says nothing about cause. It finds patterns in past data and does not tell you what would happen if you changed something.
Finally, write it down. A short model card records what a model is for, its data, its label, its measured performance by group, its limits and its owner.
| Question for a short model card | Example answer |
|---|---|
| What is it for? | Ranking loan applications for human review, not automatic refusal |
| What data built it? | Applications 2019 to 2023 from one region; source and date range stated |
| What does it predict, and is the label a proxy? | Default within 12 months; recorded outcome, not intent |
| How well does it work, for whom? | Error rates reported by group and against a baseline |
| What are its known limits? | Not tested on self-employed applicants; do not use outside the region |
| Who owns it and when is it rechecked? | Named owner; monthly accuracy check with an alert level |
The aim is not paperwork. It is that the next person, or the same person a year later, can tell when the model should be trusted and when it should not.
Step 5 Worked example (4 marks)
A model picks 20 of 100 shops for inspection and faults are found in 10. A manager says the other 80 shops must be safer because nothing was recorded there. Respond.
- Recorded rate in the inspected shops = 10 ÷ 20 = 50%. (1 mark)
- The 80 other shops were not inspected, so their zero is “not looked at”, not “no faults”. (1 mark)
- The comparison is distorted by who was inspected. (1 mark)
- Answer: the claim is unsupported; inspect a random sample of the 80 to find out. (1 mark)
Go deeper: the professor's notes
Output shapes data.
Document.
Keep in loop.
Model card
| Item | Entry |
|---|---|
| Purpose | rank for review |
| Data | source and dates |
| Limits | stated |
| Owner | named |
At work: Inspections
Twenty of 100 shops inspected.
- Note who was inspected.
- Add random inspections.
What a careful practitioner decides. Zero recorded is not zero faults.
Phase 3: Practise
Step 6 Learner practice (instant-marked)
1. A feedback loop is when:
Output shapes later input.
2. Random inspections help because they:
They break the loop.
3. A model finds patterns but does not show:
Association is not cause.
4. A model card records:
So others know when to trust it.
Phase 4: Close
Step 7 Recap
- Feedback loops distort the data a later model learns from.
- Some decisions should not be left to a model alone.
- A model card records purpose, data, performance by group, limits and owner.
Step 8 Exit ticket (ungraded)
Name two items you would put on a model card.
Private: nothing you type here is sent or stored.
Step 9 Go further (Extension)
Draft a six-line model card for a model or forecast you use.
In industry: Pneumonia, asthma and a rule nobody should follow
A health-risk study found that the most accurate model for predicting death from pneumonia was a neural net. A simpler rule-based model trained on the same data learned a surprising rule: a history of asthma lowers a patient's chance of dying from pneumonia. Acting on it could have meant that asthmatics were not hospitalised, which would be dangerous. The pattern reflected something else in the data, and because the simpler model was readable, the rule could be found and removed.
Link to this lesson. Readable models make it possible to question a pattern that scores well.
Source: Caruana et al. (2015), Intelligible Models for HealthCare, KDD 2015; Caruana, Intelligible Machine Learning for Critical Applications Such As Health Care, AAAS 2017
Common mistakes
| Mistake | Why it fails |
|---|---|
| Treating recorded data as complete | Ask who decided where to look. |
| Using a model for decisions that cannot be undone | Keep a person in the decision. |
| No documentation | Write purpose, data, limits and owner. |
Limits. Documentation does not make a model good; it makes its limits visible.