Input data testing in depth: bias, pipelines, representativeness and labels
Match each data risk to the test that finds it, run a disparate impact analysis, layer pipeline tests, compare data with real use, and check labels.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: checking the ingredients before you cook. A cook looks at the flour, the eggs and the milk before the cake goes in the oven. Is the flour from a shop the cook trusts? Is there enough of each thing? Did someone put the wrong label on a tin?
A model learns from data the way a cake comes from its ingredients. Leo, the developer, trains the urgent helper for Daily List, a to-do list app. Tom, the tester, checks the data first. Poor data can undermine the model. Later tests can reveal the problem and lead to repair, relabelling, retraining or replacement; testing alone does not repair it.
Tom checks six things. Where did the data come from? Is it fair? Is it clean? Does it match real use? Are the labels right? Does the pipe that carries it work?
The picture has limits. A cook can taste the flour. A tester cannot taste a data table, so Tom uses tests.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- relabelling
- giving something a new label
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 Checking the data before a model is trained and picking the right test for each risk.
- Check the source
- Check fairness
- Check the fit to real use
- Check the labels
- Check the pipes
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Checking where the flour was bought | Data provenance testing |
| Checking that no tin is mislabelled | Label correctness testing |
| Checking you have enough of each ingredient | Representativeness and imbalance checks |
| Swapping one ingredient and tasting again | Counterfactuals in disparate impact analysis |
| Checking the pipes that carry the ingredients | Data pipeline testing |
WHERE THIS PICTURE STOPS
- A cook can taste the flour, but a tester cannot taste a table of data.
- A recipe needs a few ingredients, while a dataset can have millions of rows.
HOOK
Source, fairness, fit, labels, pipes.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Source, fair, fit, labels, pipes: five questions to ask of any dataset.
| In the trick | What it stands for |
|---|---|
| Source | data provenance |
| Fair | bias testing |
| Fit | representativeness |
| Labels | label correctness |
| Pipes | pipeline testing |
TELL A FRIEND
Check the data like ingredients. Where did it come from, is it fair, does it match real use, are the labels right, and do the pipes work.
OFTEN MIXED UP WITH Testing the data a model learns from. That lesson covers the main input data checks and constraint rules. This lesson matches each risk to a named test and goes deeper on bias, pipelines, fit and labels.
PRACTISE AND KEEP
Sources for this topic — 6 sources
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 5.1.1: input data risks and matching mitigations: bias, untrustworthy or poisoned data, inconsistent data, feature selection, imbalance, label quality, data pipeline failures; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 5.1.2: testing for bias: data bias and algorithmic bias, reviews, static analysis, exploratory data analysis, dynamic testing, label correctness, disparate impact analysis with counterfactuals; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 5.1.3: data pipeline testing at design, component, integration, system, system integration and production levels, with fault injection and back-to-back testing; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 5.1.4: data representativeness testing: define the target population, analyse data characteristics, apply statistical tests such as chi-squared and Kolmogorov-Smirnov; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 5.1.6: label correctness testing: expert review, multiple annotation and agreement, risk-based review, distribution analysis, rule-based tests, model loss and confidence analysis; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.