13. Data quality: dimensions, rules, measurement and cost
Data quality is fitness for a use: data is good when it is good enough for the decision it serves. Dimensions name the ways it can fail, rules make each one testable, and a measurement turns the rules into scores someone can act on before the cost of a bad number lands.
The clip measures Kestrel's claims table against five rules, one per dimension: completeness (a reported date is present), validity (the cause is one of Kestrel's codes), accuracy (the reserve is a plausible amount), integrity (the claim points at a policy that exists) and timeliness (the claim was reported within 90 days). Each gauge fills to the share of rows that pass and turns red below a 95% threshold. Then the cost of fixing a defect is shown at three moments: at entry, later in the pipeline, and after a decision was made on it.
The intuition: good enough for what?
Kestrel's claims table looks fine in a list: forty claims, every row with a number, a date and an amount. Then the actuary asks how long claims take to be reported, and three rows have no reported date. The fraud team filters on the cause, and two rows carry codes no list contains. Finance adds up the reserves, and one claim reserves almost ten million euros.
The same table is good enough for one person and useless for another. A count of claims per month needs only the loss date; a reporting-delay study needs every reported date; the reserve total needs every amount to be right. Quality is not a property of the data alone. It is a property of the data for a use, which is why it has to be stated before it can be measured.
Harbour Mutual's board will see one loss ratio for the combined company. Before Kestrel's claims feed that number, someone has to say what "good enough" means for it, write that down as rules, and measure the rows against them.
The theory: dimensions, rules, measurement and cost
Wang and Strong asked data consumers what quality meant to them and found that accuracy was only one answer among many. They grouped the answers into four categories: intrinsic (accuracy, objectivity, believability, reputation), contextual (relevance, timeliness, completeness, an appropriate amount), representational (interpretability, ease of understanding, consistent representation) and accessibility (access and security). The lesson that stuck: quality is judged by the people who use the data.
A dimension is one way data can fail its use. DAMA-DMBOK lists the ones most practitioners measure: completeness (the values that should be there are there), validity (values conform to their type, format and allowed list), accuracy (values match the real-world thing they describe), consistency (the same fact agrees across rows, tables and systems), uniqueness (each thing is recorded once), integrity (references point at rows that exist) and timeliness (the data is available, and describes the world, soon enough). ISO/IEC 25012 defines a larger set of fifteen characteristics in the same spirit.
A dimension is a heading, not a test. A rule makes it testable: a condition each row passes or fails, on named columns, with a reason. "Every claim has a reported date" is a completeness rule; "the cause is one of WTR, BRD, DIEF, STRM, AANR, GLAS, MED, BAG" a validity rule. Accuracy is the hardest to test directly, because it needs the real world; rules approximate it with plausibility (a reserve between zero and one million euros) or by comparing with a trusted source.
A measurement applies a rule to a set of rows and reports the share that passes: the score. A score means something only against a threshold agreed with the data's users (95% for the board's figures, perhaps 80% for an exploratory study) and over time, so a fall is noticed. ISO 8000 frames this as measuring data against stated requirements, and asks that each measurement say which requirement, which data and when.
SELECT
COUNT(*) AS claims,
COUNT(meldingsdatum) AS has_reported_date,
COUNT(*) FILTER (WHERE oorzaak_code IN ('WTR', 'BRD', 'DIEF', 'STRM', 'AANR', 'GLAS', 'MED', 'BAG')) AS valid_cause,
COUNT(*) FILTER (WHERE reserve_cent BETWEEN 0 AND 100000000) AS plausible_reserve,
COUNT(*) FILTER (WHERE EXISTS (SELECT 1 FROM polissen p WHERE p.polis_id = s.polis_id)) AS has_policy,
COUNT(*) FILTER (WHERE meldingsdatum - schadedatum <= 90) AS reported_in_time
FROM schades s| Dimension | Rule | Passing | Score |
|---|---|---|---|
| Completeness | meldingsdatum is present | 37 / 40 | 92.5% |
| Validity | oorzaak_code is one of Kestrel's eight codes | 38 / 40 | 95.0% |
| Accuracy (plausibility) | reserve_cent between 0 and one million euros | 38 / 40 | 95.0% |
| Integrity | polis_id points at a policy that exists | 38 / 40 | 95.0% |
| Timeliness | reported within 90 days of the loss | 35 / 40 | 87.5% |
Uniqueness needs pairs, not rows: Kestrel's customer 29 is customer 4 entered a second time, which no single-row rule can see. Finding such pairs is the matching of page 14.
Quality work is a cycle, not a project: define the requirement with the users, measure against rules, analyse the root cause of failures (often a form, an interface or a missing reference list), improve the process that creates the data, and control it with gates and monitoring so it stays fixed. Chapters 16 and 17 practise the last three steps.
Why it matters
A loss ratio built on Kestrel's claims inherits every defect in them: a claim with no policy cannot be assigned to a product line, and a reserve of almost ten million euros moves the ratio on its own. Measured rules turn "we do not trust Kestrel's data" into "two claims have no policy and one reserve is implausible", which someone can fix.
Scores also decide where to spend effort. The timeliness rule fails more rows than the others because two defects stack: a missing date and a late one. Fixing the claims portal's time-out removes both.
Where it goes wrong
- Quality without a use. A score measured against nobody's requirement is a number nobody acts on.
- One score for everything. A single "quality index" hides which dimension failed and for whom.
- Cleaning downstream for ever. Correcting the same defect in every pipeline instead of at the source pays the 10 and the 100 again each time.
- Rules nobody owns. A threshold with no owner is changed, quietly, the first time it fails.
- Accuracy assumed from validity. A valid cause code can still be the wrong one; only a comparison with reality shows it.
Check yourself
Choose an answer to each question, then press Check.
Sources
The works this page draws on, summarised in its own words rather than quoted. Read them for the full argument.
- DAMA International, DAMA-DMBOK: Data Management Body of Knowledge, 2nd edition (Technics Publications, 2017), chapter 13Data quality dimensions, rules and the cycle of defining, measuring, analysing, improving and controlling.
- R. Y. Wang and D. M. Strong, "Beyond Accuracy: What Data Quality Means to Data Consumers", Journal of Management Information Systems 12(4), 1996Quality as fitness for use, from a survey of data consumers, in four categories: intrinsic, contextual, representational and accessibility.
- ISO 8000, Data quality (in particular ISO 8000-8, on information and data quality concepts and measuring)Quality as conformance to stated requirements, and what a measurement must record.
- ISO/IEC 25012:2008, Software engineering: Data quality modelFifteen data quality characteristics, inherent and system-dependent.
- T. C. Redman, Data Driven: Profiting from Your Most Important Business Asset (Harvard Business Press, 2008)The hidden cost of poor quality and the case for fixing data where it is created; the 1-10-100 rule of thumb as it is retold in data quality writing.
Practise it
The chapters that put this theory to work on Harbour Mutual and Kestrel:
- Chapter 15: Data quality 1: measuring it
- Chapter 16: Data quality 2: acting on it
- Chapter 17: Data quality 3: gates in the pipeline
- Chapter 41: Stage 4: Trusted numbers
The tools to try it in:
- Quality workbench · Write quality rules, set thresholds, inject defects, and see the scores per dimension and per domain.
Terms taught here: Data qualityData quality dimensionThresholdRoot cause