Skip to content

How quality is measured

This page explains the method behind the product: why quality is measured with rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. on every record, the cycle the work follows and what each quality dimensionDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern. means. What each word means is in Concepts; how a result becomes an indicator, in From results to indicators; the exact calculations, in Formulas.

Quality Data rests on three ideas from the standard frameworks for data quality.

  • Quality is measured against written requirements. ISO 8000ISO 8000 Master data quality standard: quality is declared against explicit requirements, with provenance and traceability., the International Organization for Standardization’s standard for data quality, says data is of good quality when it meets requirements stated beforehand. In Quality Data each requirement is a rule: a few lines of text with a patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition., a severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. and the sentence the person who fixes the record reads. A figure can always be traced back to the rules behind it, and As read says each rule in words from the same definition that runs it.
  • Every record counts, not a sample. A rule runs on every record of the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.. A rate from a sample hides where the errors are; a rate from every record can be split by field, by group and by severity, and each failure can go to a queue.
  • A cut can be measured again. A cut is the data as it was on one date, kept in the product’s own copy, and dates are compared with the cut, never with today. Measuring the same cut again with the same rules gives the same figures, so a change in a figure means a change in the data or in the rules, never in the day it was measured.

The work follows the quality management cycle of DAMA-DMBOKDAMA International's data management body of knowledge Governance framework, roles (owner, steward) and quality cycle., the data management body of knowledge published by DAMADAMA International (Data Management Association) The professional association that publishes DAMA-DMBOK, the data management body of knowledge. International (the Data Management Association): define, measure, analyse, improve and control.

  1. Data steward

    1. 1DefineEach requirement written as a rule, approved on main
  2. Automatic

    1. 2MeasureA cut, and every rule on every record
  3. Managers and stewards

    1. 3AnalyseIndicators and charts of the cut
  4. Analyst

    1. 4ImproveQueues of findings, fixed in the source
  5. Automatic

    1. 5ControlThe next cut shows whether it held

Control feeds the next definition: rules are tuned, and the cycle starts again.

The quality cycle as Quality Data follows it: requirements are defined as rules, measured on a cut, analysed on the dashboard, improved where the data lives, and controlled by the next cut. Each step links to its section.

The people who know the data write what it must meet, field by field, as rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. Not every field needs rules: start with the fields whose errors cost most, and give them a critical or high priority in the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields., because priority weights them in every indicator. A rule counts only once it is approved on main. More in Write, change and test a rule and Take a change to main.

A cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. copies the data, and its evaluationEvaluation It runs every rule on main on every record of a cut. A rule fails, passes or does not apply to each record; one it does not apply to is left out of its figures. runs every rule on main on every record. Each record gets one of three results per rule: it fails, it passes, or the rule does not apply. More in Run and schedule cuts.

The dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more. turns the results into indicators and charts: what kind of problem dominates, in which fields, in which groups, and whether it is improving. More in Reading the dashboard.

Failures go to remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up., one per group of a grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. (an office, a region, a channel), each with a service level agreement (SLAService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another.). Data is fixed where it lives, in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. system: Quality Data only reads. Where many records fail for one reason, such as a capture form or a load, fixing the cause once is worth more than fixing records one by one. More in Work a remediation queue.

The next cut shows whether the fixes held. The trend by cut, the movement between bandsBand The band of an entity's ICD: good (≥ 0.90), fair (0.75–0.90) or poor (< 0.75). and the p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. by group tell a lasting change from noise. What the cycle teaches goes back to the first step: a rule that fails almost every record may be badly posed, and a field that keeps failing may need a stricter rule at the point of capture.

Each ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. measures one quality dimension, given by its patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition.. The dimensions come from ISO/IEC 25012ISO/IEC 25012 Data quality model: inherent dimensions (accuracy, completeness, consistency, credibility, timeliness) and system-dependent ones., the data quality model of ISOInternational Organization for Standardization The international body that publishes standards such as ISO 8000. and the International Electrotechnical Commission, and from DAMA-DMBOKDAMA International's data management body of knowledge Governance framework, roles (owner, steward) and quality cycle.. Quality Data uses six:

Dimension The data… Patterns Example on customers
CompletenessCompleteness Quality dimension: the data is present when it must be. is present when it must be required Every customer has an e-mail
ValidityValidity Quality dimension: the data has the right form and an allowed value (an e-mail with an @ and a domain; a region from its list). has the right form and an allowed value format, length, domain The e-mail has an @ and a domain; the region is in its list
ConsistencyConsistency Quality dimension: the data does not contradict other fields or sources (for example, net worth = assets − liabilities). does not contradict other fields empty, sum, combination, implies, differs A closed account has a closing date
TimelinessTimeliness Quality dimension: the data is up to date. A mobile phone that was right five years ago may not be today. is recent enough fresh The record was updated within 24 months of the cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment.
UniquenessUniqueness Quality dimension: an entity appears only once (a unique document; a mobile phone or e-mail not shared). appears once unique One customer per identity document
AccuracyAccuracy Quality dimension: the value represents reality correctly. Without an external source it is approximated by plausibility. is believable as a picture of reality range, placeholder A birth date is not in the future; no “N/A” as a name

An expression declares its own dimension. Two more things a reader may look for:

  • Referential integrity, that a code points to something that exists, is checked with domain against a reference column or a catalog table, and counts as validity.
  • Accuracy in the strict sense, that the value is true, needs an external sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. to compare with. Without one, rules approximate it with plausibilityPlausibility That a value is believable. A negative net worth or expenses far above income are possible but unlikely: they are confirmed with the customer, not taken as errors.: values that are possible but unlikely.

The Failures by dimension and severity chart counts failures by these dimensions. Each pattern’s dimension and default severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. are in Rule patterns; the formula of each dimension over a whole variable, in How each quality dimension is measured.

Rules say what is wrong with a record. Three more kinds of evidence look at the data as a whole, and each has its chart on the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.:

  1. Profiling describes each field before any rule: how often it is empty, how many distinct values it has, and its commonest shape. A code stored as a number that lost its leading zero shows here first.
  2. Statistical control asks whether a group fails more than normal variation explains. The p′ chartP′ chart Laney's p chart for very large groups: it multiplies the limits by σz, the real spread between groups, so only differences that normal variation does not explain stand out. by group draws limits that are wide for small groups and narrow for large ones, so only real signals stand out.
  3. Outliers and drift look at amounts and populations: an amount unusual for its group, measured with a robust zRobust z How many typical distances a value is from its group's normal value: 0.6745 × (value − median) / MAD, robust because it uses the median and the MAD. Above 3.5 the value is flagged as an outlier. based on the medianMedian The middle value once the data is sorted. Unlike the mean, a few extreme values do not drag it. absolute deviation (MADMedian absolute deviation How spread the data is around its typical value: the median of the distances of each value to the median. An extreme value does not inflate it, which is why it serves to find outliers.), and a population that moved since the previous cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., measured with the population stability index (PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use.).

How to read each is in Reading the dashboard; how each is calculated, in Formulas. What the method assumes and does not measure is in Assumptions and limits.

Government Data · Guide v0.8.1