Software Testing / Learning brief

Tom counts the smoke alarm mistakes

What this means in plain language

A smoke alarm can shriek over toast or miss a real fire. Tom uses that picture to count the urgent helper's two kinds of mistake, choose between precision and recall, and spot a helper that drifted.

Understand the full idea, step by step

A smoke alarm can fail in two ways. It can shriek over toast. It can stay quiet during a real fire. Changing sensitivity often trades these errors, but a perfectly separated set can have neither.

Tom has an alarm of his own. It is the urgent helper in Daily List. Leo says it is 80 in 100 right. Tom wants to know what kind of right.

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Model metrics as taught in this academy, with an invented app and invented people. Every figure comes from a script run on a tiny made-up data set.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The smoke alarm is a teaching picture, and all counts are made up.

Sources for this brief — 5 sources
  1. Market practice

    Classification: accuracy, recall, precision and related metrics (Google Machine Learning Crash Course) ↗ — Google · Accuracy is a rough measure only when classes have similar counts; with rare positives a model that always predicts the common class scores high yet is useless; recall and precision are more meaningful, and all are computed at one fixed threshold (search excerpt, page not opened)

    Course page. Says the best metric depends on the task and on the cost of each kind of mistake. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Metrics and scoring: quantifying the quality of predictions (scikit-learn user guide) ↗ — scikit-learn project · The confusion matrix counts items by true group and predicted group; precision is true positives over true positives plus false positives (search excerpt, page not opened)

    Lists the classification metrics, including the confusion matrix (entry i, j counts items truly in group i and predicted in group j), precision as true positives over true positives plus false positives, and recall. Documentation for one library. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: scikit-learn 1.9.1 documentation as seen in the excerpt. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    What Is Data Drift in Machine Learning (and How to Detect It) (Chalk blog) ↗ — Chalk · Data drift is a change in the distribution of input features in production compared with training while the model itself stays the same (search excerpt, page not opened)

    Describes data drift as a change in the distribution of the input features in production compared with training, while the model itself stays the same, and separates it from concept drift. Vendor blog. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Artificial Intelligence Risk Management Framework, version 1.0 (National Institute of Standards and Technology) ↗ — National Institute of Standards and Technology · Test sets and metrics are documented, and systems are tested before release and while running (search excerpt, page not opened)

    Framework. Has four functions called govern, map, measure and manage, and lists traits of trustworthy AI such as valid, safe, explainable and privacy-enhanced. Search excerpt only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREPrecision, recall, drift and the right metric for a modelCount a model's two kinds of mistake in a confusion matrix, pick precision or recall to fit the cost of each, and watch for drift after release.Opens at L0 Explain simply · about 18 min

Related briefs

Tom and the smoke alarm

A reminder fires an hour late. A smoke alarm and a firefighter show how Tom finds the problem, how Leo finds the cause, and why the fix still needs a second look by the tester, as in a real team.

READ BRIEF

Tom fits a smoke alarm to the page

All of Tom's checks pass, yet the Daily List page quietly breaks behind the scenes. A smoke alarm that names the room shows why a test should listen to the console and fail on a page error.

READ BRIEF