Discuss the importance of data quality metrics and how you measure them.
Instruction: Explain the role of data quality metrics and your methods for measuring and improving data quality.
Updated
Official answer
Define data-quality measures against the dataset's purpose, grain and expected population. Record the denominator, time window, exclusions, owner and action threshold for each metric.
- Completeness: required nonmissing values among eligible records, and separately received records compared with an independently known expected population.
- Validity: values meeting specified rules, such as types, ranges or allowed codes. A valid postcode can still be the wrong postcode.
- Accuracy: agreement with a trustworthy reference or adjudicated sample, including uncertainty in that reference.
- Uniqueness and consistency: duplicate business keys, conflicting versions and violated relationships under explicit definitions.
- Timeliness: age or delay relative to the relevant event, availability requirement and clock assumptions; report a distribution when tails matter.
For example, 98 valid records out of 100 received gives 98% validity. If 120 were expected, receipt completeness is 100/120≈83.3%, so the first number does not establish complete delivery. Required-field completeness is yet another denominator.
Track results by source and important cohort, investigate changes, preserve rejected evidence and verify repairs against the original checks. Avoid combining unrelated dimensions into one reassuring score without a reasoned weighting and failure policy. Metrics expose problems; they do not guarantee that a dataset is fit for every use.