Inferensys

Glossary

Data Quality Metric

A data quality metric is a quantitative measure used to assess a specific dimension of data quality, such as accuracy, completeness, consistency, timeliness, or validity.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DEFINITION

What is a Data Quality Metric?

A precise, quantitative measure used to assess a specific dimension of data's fitness for use.

A data quality metric is a quantifiable measure that assesses a specific dimension of data's fitness for use, such as accuracy, completeness, consistency, timeliness, or validity. These metrics provide objective benchmarks for data reliability and are foundational to data observability, enabling teams to monitor the health of data pipelines and enforce service-level objectives (SLOs). Common examples include the percentage of non-null values (completeness) or the count of records failing a format check (validity).

Implementing these metrics requires defining data quality rules—testable assertions like uniqueness or range constraints—against which data is programmatically validated. In modern data contracts, these metrics form the core of the agreement between producers and consumers. They are critical for automated data testing, anomaly detection, and statistical process control, allowing engineering teams to detect schema drift or data degradation before it impacts downstream analytics and machine learning models.

DATA QUALITY METRIC

Core Dimensions of Data Quality

A data quality metric is a quantitative measure used to assess a specific dimension of data quality. These core dimensions provide the framework for defining what 'quality' means for a given dataset.

01

Accuracy

Accuracy measures the degree to which data correctly represents the real-world entity or event it is intended to model. It is the closeness of a data value to its true, verifiable value.

  • Key Metrics: Error rate (percentage of incorrect values), distance from a known source of truth.
  • Example: A customer's date of birth in a CRM system matching their government-issued ID.
  • Challenges: Often requires an external, authoritative source for verification, making it one of the most difficult dimensions to measure at scale.
02

Completeness

Completeness assesses the extent to which expected data values are present and not missing (null) in a dataset. It verifies that all required records and fields are populated.

  • Key Metrics: Percentage of non-null values for a field, count of missing mandatory records.
  • Example: An e-commerce order record must have values for order_id, customer_id, product_sku, and order_total.
  • Rule Types: Checks for nullability as defined by the schema and validates against business rules for mandatory fields.
03

Consistency

Consistency evaluates the uniformity of data across different systems, tables, or reports. It ensures that data does not contradict itself when compared from different sources or points in time.

  • Key Metrics: Number of rule violations across systems, referential integrity error count.
  • Example: The total revenue reported in a sales database matching the aggregated revenue in the finance system for the same period.
  • Forms: Includes logical consistency (business rules) and format consistency (adherence to a standard pattern like date format).
04

Timeliness

Timeliness measures how current and up-to-date data is for its intended use. It combines concepts of data freshness (age of data) and latency (delay in availability).

  • Key Metrics: Data freshness (time since last update), pipeline latency (source-to-consumer delay).
  • Example: Stock trading algorithms require price data with sub-millisecond latency, while a monthly financial report may tolerate a 24-hour delay.
  • SLOs: Often governed by Service Level Objectives (SLOs) defining acceptable freshness windows for data products.
05

Validity

Validity confirms that data conforms to the defined syntax, format, type, and range specified by its schema or business rules. It checks if data is well-formed and within allowable parameters.

  • Key Metrics: Percentage of records passing schema validation, count of format errors.
  • Example: An email field must match a standard email regex pattern; a temperature reading must be a number between -50 and 200.
  • Mechanisms: Enforced through schema validation, regex validation, and range checks.
06

Uniqueness

Uniqueness verifies that each data entity (record) is represented only once within a dataset or system, with no unintended duplicates. It is critical for master data and key-based operations.

  • Key Metrics: Duplicate record count, percentage of unique values for a key field.
  • Example: Ensuring a customer_id or social_security_number appears only once in a customer master table.
  • Techniques: Enforced via database constraints (UNIQUE, PRIMARY KEY) and monitored through duplicate detection algorithms using fuzzy matching for non-exact duplicates.
SCHEMA AND DATA VALIDATION

Common Data Quality Metrics and Calculations

Quantitative measures used to assess specific dimensions of data quality, enabling objective monitoring and validation.

MetricDefinitionTypical CalculationCommon Thresholds

Completeness

Measures the degree to which expected data values are present and not missing (null).

(Count of non-null values / Total expected values) * 100

99.5% for critical fields

Accuracy

Assesses the correctness of data values against an authoritative source of truth.

(Count of correct values / Total values checked) * 100

99.9% for master data

Uniqueness

Evaluates the absence of duplicate records for a given entity or key within a dataset.

1 - (Count of duplicate records / Total records)

100% for primary keys

Consistency

Verifies that data values are uniform and non-contradictory across different systems or tables.

Count of records violating defined business rules (e.g., status logic, cross-table integrity).

0 violations per run

Timeliness (Freshness)

Measures the latency between when data is generated and when it is available for use.

Current timestamp - Timestamp of most recent successful data update

< 5 minutes for real-time; < 24 hours for batch

Validity

Checks if data conforms to the defined syntax, format, type, and range specified by its schema.

(Count of values conforming to schema rules / Total values) * 100

99.8%

Integrity

Ensures the correctness of relationships between data entities, such as referential integrity.

Count of orphaned foreign key records (where reference does not exist).

0 orphaned records

IMPLEMENTATION GUIDE

How to Implement Data Quality Metrics

A systematic approach to defining, instrumenting, and monitoring quantitative measures of data health.

Implementation begins by defining data quality dimensions—such as accuracy, completeness, consistency, timeliness, and validity—and translating each into a specific, measurable data quality metric. For example, a completeness metric for a customer table could be the percentage of non-null values in the email field. These metrics are operationalized by embedding validation checks directly into data pipelines using frameworks like Great Expectations or dbt tests, or by configuring them within a data observability platform. The resulting measurements are then tracked over time to establish a performance baseline.

Effective implementation requires setting data quality thresholds and Service Level Objectives (SLOs) to trigger alerts when metrics degrade. Metrics should be visualized on dashboards to provide at-a-glance health status and integrated into data incident management workflows for rapid triage. A mature practice involves automating metric calculation, establishing ownership with data producers, and iteratively refining rules based on their impact on downstream machine learning models and business reports. The ultimate goal is to shift from reactive firefighting to proactive quality assurance.

DATA QUALITY METRICS

Frequently Asked Questions

Data quality metrics are the quantitative foundation of data observability, providing objective measures to assess the health, reliability, and fitness-for-use of data. This FAQ addresses common questions about their definition, implementation, and role in modern data engineering.

A data quality metric is a quantitative measure used to assess a specific dimension of data quality, such as accuracy, completeness, consistency, timeliness, or validity. It transforms subjective assessments of data health into objective, trackable numbers that can be monitored over time, compared against Service Level Objectives (SLOs), and used to trigger alerts. For example, a completeness metric for a customer table might be calculated as (Count of Non-Null Email Addresses / Total Row Count) * 100, yielding a percentage that indicates data coverage.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.