liveBook · Manning

Data quality

As explained in Machine Learning System Design

Data quality is the degree to which data is accurate, complete, valid, consistent, timely, and suitable for its intended purpose.

A demand forecast can look sound while missing or duplicated transactions distort its inputs. Data quality is the reliability of data for its intended use; in machine learning, it matters both when assembling training data and when making predictions. Faulty data can produce faulty predictions. section 6.7.1 section 14.3

Quality checks belong throughout the data pipeline, not just at ingestion. Problems can include access failures, format changes, corrupted sources, and errors from upstream models. External data that has already been cleaned still needs checks before use. section 6.7.1 section 14.6 section 14.4.4

A practical quality process has several parts:

  • Filter or preprocess missing and duplicated records before aggregation, and check coverage gaps in external data. section 6.7.1
  • Monitor missing data overall and for important features separately, using clean historical data as a baseline. section 14.5.1
  • Investigate and resolve failures promptly. When trust in the data cannot be maintained, stop and use a fallback until quality is restored. section 14.3
  • Before retraining a degrading model, check whether the problem is faulty data or a genuine change in the patterns the model is trying to capture. section 14.4.4

Retail forecasting checks

A retailer aggregates transactions daily and joins them with other data to calculate features. Its transactions, stock, and promotion data may have missing or duplicated values; competitor prices cover only about 25% of SKUs and have gaps. Rewriting the previous two or three daily partitions is one option for correcting incomplete or duplicated data. For monitoring, the design proposes alerts at three z-scores for important features and four for the rest, plus Evidently AI test-suite presets. section 6.7.1 section 14.5.1

Data quality is one layer of monitoring: software health, model quality and relevance, and business KPIs also matter. In a cascade of models, invalid output from one model can cause invalid predictions downstream. section 14.6

How Machine Learning System Design covers it

How deep it goes
Gives preprocessing, monitoring, alerting, and fallback actions, including a specific missing-data baseline and thresholds.
Examples
Uses a retail demand-forecasting pipeline with transaction duplicates, gaps in competitor prices, and feature-level missing-data alerts.
What you can do after
Diagnose model degradation by checking data quality separately from genuine changes in the patterns being modeled.
How it connects
Connects data quality to ETL, model monitoring, data drift, and cascading models.

Also explained in

Compare how 10 books explain data quality →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.