TOPIC 29/5120 MINNOT STARTED

Statistical testing of machine learning systems and the oracle problem

See why one test proves little, how a margin of error and a confidence level set the number of tests, and five ways to judge a result when the right answer is unknown.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: tasting a big pot of soup. One taste tells you a little about the pot. If the soup is well stirred, a few tastes tell you more. You still cannot say it is perfect. You can say it tastes right, give or take a little, and that you are fairly sure.

You also cannot compare the taste with a written recipe if no one wrote one. You would ask a cook, or taste another pot made the same way.

A machine learning (ML) model is like this soup. Daily List is a to-do list app. Leo, the developer, has a model that flags urgent tasks. Tom, the tester, cannot check one answer and call it done. He needs many tests, a stated margin and a stated confidence. He also needs a way to judge answers when no one knows the right one.

The picture has limits. A cook can taste again and again for free. But each test of a model costs time. And soup is the same all through the pot, while a model may be weaker on some kinds of input.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Stating a result as a range with a confidence, and picking a judge when no answer key exists.

  1. Take a large sample
  2. State the margin
  3. State the confidence
  4. Report the range
Say a result with a range

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
One taste from the potOne test result
Several tastes from a stirred potA large, representative sample
Tastes right give or take a littleThe margin of error
How reliably the tasting procedure works over repeated representative samplesThe confidence level
Asking a cook or a second potExpert or proxy oracle

WHERE THIS PICTURE STOPS

  • A cook can taste again for free, but each test of a model takes time.
  • Soup is the same all through the pot, but a model may be weaker on some inputs.
  • Confidence describes repeated-sampling coverage of an interval method, not a cook’s subjective certainty about one pot.

HOOK

Sample, margin, confidence, then say the range.

REMEMBER IT THIS WAY

A sequence: the real steps, in order.

Metric, margin, confidence: name all three before you count the tests.

What each part of the trick stands for
In the trickWhat it stands for
Metricaccuracy
Marginmargin of error
Confidenceconfidence level

TELL A FRIEND

One spoonful says little, so take a representative sample. Report the estimated range and the long-run coverage of its method, and ask a second judge when there is no recipe.

OFTEN MIXED UP WITH Precision, recall, drift and the right metric for a model. That lesson explains the metrics and the . This lesson explains how many tests are needed and how to report them with a margin.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 4.1.2: rationale for a statistical approach: non-determinism, distributional performance, uncertainty and bias, regulatory and safety context; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened

    CT-AI syllabus v2.0 GA, 17 April 2026, 93 pages. This audit read the actual related sections recorded in the Specialist source ledger: selected AI foundations, data/workflow, neural coverage, testing methods and deployment sections. Professional certification guidance, not an ISO standard or legislation. The audit does not claim every PDF page was reviewed. · Checked 2026-11-06

    Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.

  2. Market practice

    Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 4.1.3: test oracles for AI-based systems: five causes of the oracle problem and five solutions; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened

    CT-AI syllabus v2.0 GA, 17 April 2026, 93 pages. This audit read the actual related sections recorded in the Specialist source ledger: selected AI foundations, data/workflow, neural coverage, testing methods and deployment sections. Professional certification guidance, not an ISO standard or legislation. The audit does not claim every PDF page was reviewed. · Checked 2026-11-06

    Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.

  3. Market practice

    Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.3: ML functional performance testing of probabilistic systems: statistical acceptance criteria with margin of error and confidence level, sample sizes, sequential testing, reporting; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened

    CT-AI syllabus v2.0 GA, 17 April 2026, 93 pages. This audit read the actual related sections recorded in the Specialist source ledger: selected AI foundations, data/workflow, neural coverage, testing methods and deployment sections. Professional certification guidance, not an ISO standard or legislation. The audit does not claim every PDF page was reviewed. · Checked 2026-11-06

    Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.

  4. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

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

    What this simplifies: Daily List, Sam, Nina, Tom, Mei, Leo and Lily are invented, and so are the numbers and examples in this lesson. The lesson is a simplified teaching view; the syllabus and the standards it names go into more detail. This lesson is not a certification of the International Software Testing Qualifications Board (ISTQB) and is not accredited exam preparation.

    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.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.