How each quality dimension is measured
How quality is measured says which quality dimensionsDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern. Quality Data uses and which 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. belong to each. This page gives the formula of each dimension, so that a figure can be checked by hand.
Every dimension yields a value between 0 and 1, shown as a percentage. For every dimension but completenessCompleteness Quality dimension: the data is present when it must be., the higher, the better; completeness counts what is missing, so for it the lower, the better. Each value is measured per variable (one field of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them., such as a document number or an income) and per cut, so the same variable can be followed from one 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. to the next.
Notation: = variable, = record, = total records of variable in the cut. Unless a dimension says otherwise, counts all records, including those where the value is not filled in: an empty value is not left out, it counts against the dimension.
Completeness
Section titled “Completeness”How much of the variable is not filled in.
This measure is the share of empty or null records: the lower, the better, unlike the other dimensionsDimension The kind of quality a rule measures (completeness, validity, timeliness…), given by its pattern., where higher is better. 0 means no record is missing the value.
- Filled in
- Empty or null
Show the data as a table
| Record | |
|---|---|
| 1 | a@x.co |
| 2 | b@y.co |
| 3 | (empty) |
| 4 | c@z.co |
| 5 | d@x.co |
| 6 | (empty) |
| 7 | e@y.co |
| 8 | f@z.co |
| 9 | g@x.co |
| 10 | h@y.co |
Validity
Section titled “Validity”Whether the value has the right form for its kind of field. Each kind has its own check, measured over all values, including those not filled in:
| Kind of field | Formula |
|---|---|
| Document | |
| Name | |
| Phone | |
| Date | |
| Financial variable |
The first three count what is wrong and subtract it from 1; the last three count what is right (a phone counts as valid only with exactly 10 numeric digits, nothing else). Both read the same way: 1 means every value is valid. An empty value is not a valid e-mail, date or number, so it lowers those three.
- Valid
- Not valid
Show the data as a table
| Kind | 1 | 2 | 3 | 4 | 5 | Valid |
|---|---|---|---|---|---|---|
| Document | 10203040 ✓ | 1020 3041 ✗ | 55678899 ✓ | 99887766 ✓ | 12345678 ✓ | 80% |
| Name | Ana Ruiz ✓ | Luis#Gil ✗ | Eva Paz ✓ | Juan Sol ✓ | Rosa M@r ✗ | 60% |
| Phone | 3001234567 ✓ | 300123 ✗ | 3109876543 ✓ | (empty) ✗ | 3115550000 ✓ | 60% |
| ana@x.co ✓ | luis.x.co ✗ | eva@y.org ✓ | (empty) ✗ | rosa@z.co ✓ | 60% | |
| Date | 2024-03-01 ✓ | 1890-01-01 ✗ | 2023-11-20 ✓ | 2031-05-05 ✗ | 2022-07-15 ✓ | 60% |
| Amount | 1200000 ✓ | N/A ✗ | 350000 ✓ | 98000 ✓ | 45000 ✓ | 80% |
Uniqueness
Section titled “Uniqueness”Whether a value that must identify one record appears only once.
Measured over all values, including those not filled in.
- Unique
- First appearance
- Duplicate
Show the data as a table
| Record | Document | |
|---|---|---|
| 1 | 1001 | |
| 2 | 1002 | |
| 3 | 1003 | |
| 4 | 1002 | duplicate |
| 5 | 1004 | |
| 6 | 1005 | |
| 7 | 1003 | duplicate |
| 8 | 1006 | |
| 9 | 1002 | duplicate |
| 10 | 1007 |
Accuracy
Section titled “Accuracy”Whether a financial value is believable. Income and expenses each join two checks, with equal weight: the value is not zero, and income is not below expenses. Measured over all values, including those not filled in.
where:
- = records with income equal to zero;
- = records with expenses equal to zero;
- = records with income below expenses.
The second check is the same for both: a record whose income is below its expenses lowers the accuracy of both variables.
- Fails the check
Show the data as a table
| Record | Income | Expenses | Income = 0 | Income < expenses |
|---|---|---|---|---|
| 1 | 120 | 80 | ||
| 2 | 0 | 40 | ✗ | ✗ |
| 3 | 95 | 100 | ✗ | |
| 4 | 80 | 50 | ||
| 5 | 150 | 90 | ||
| 6 | 60 | 75 | ✗ | |
| 7 | 0 | 30 | ✗ | ✗ |
| 8 | 200 | 120 | ||
| 9 | 70 | 40 | ||
| 10 | 110 | 60 |
Consistency
Section titled “Consistency”Whether the same financial variable agrees between two sets that must hold the same values: set and set , such as two sourcesSource A database the organisation already runs. Quality Data reads it and never writes to it., or a detail and its total.
where and are the sums of the values of variable in set and in set .
Set is the reference: the difference is read as a share of its total, so its sum must not be zero. Measured over all values, including those not filled in.
- Sum of the set
- Gap
Show the data as a table
| Set | Sum |
|---|---|
| A | 1,000 |
| B | 940 |
| |A − B| | 60 |
Timeliness
Section titled “Timeliness”Whether a value has been updated recently enough for the risk it carries.
where:
- = calculation date − date the field was last updated, in days;
- = maximum number of days allowed by the record’s risk profile.
A record is late when its value is older than its risk profile allows, plus 30 days of grace. When the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. keeps only a general last-update date per person, not one per field, that date is used for every field measured. Measured over all values, including those not filled in.
- On time
- Late
- D
- D + 30
Show the data as a table
| Record | Risk | D | D + 30 | d | |
|---|---|---|---|---|---|
| 1 | high | 180 | 210 | 120 | |
| 2 | low | 365 | 395 | 410 | late |
| 3 | high | 180 | 210 | 230 | late |
| 4 | low | 365 | 395 | 300 | |
| 5 | high | 180 | 210 | 205 |
Dimensions and rules
Section titled “Dimensions and rules”These formulas measure a dimension over a whole variable. In Quality Data, the rules of a datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. are what count each case: an empty value, a value with spaces, a duplicate, an old update. Which rules feed each dimension, and with which parameters (the valid date range, the risk profiles and their days), is configured per dataset. See Write, change and test a rule to configure them, Rule patterns for each patternPattern A reusable way of validating (required, format, fresh and eleven more). Each rule is a pattern applied to a field with its condition.’s dimension, and Formulas for the dashboardDashboard Each dataset's charts of the results of the cut chosen: conformity and IGCD by cut, failures by dimension and more.’s own figures.
Government Data · Guide v0.8.1