Data Quality › Summary
Machine Learning from ScratchAll chapters Data Quality › SummaryOne section · Sections in this chapter8 / 9 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Data quality fundamentally determines the validity of statistical analyses and machine learning models. Measurement error, bias, missing data, and outliers are inevitable features of real-world datasets that require careful attention rather than automatic application of standard fixes. Understanding the mechanisms that generate quality issues enables appropriate responses that balance data retention against error reduction.
Measurement errors come in random and systematic forms with different implications for analysis. Random error increases uncertainty but does not bias estimates systematically, while systematic error creates bias that persists regardless of sample size. Choosing instruments carefully and maintaining calibration and quality control minimize both types, though elimination is not feasible. Bias in data collection, arising from selection mechanisms, sampling frames, or measurement procedures, cannot be corrected statistically after data collection. Prevention through careful study design is important.
Missing data mechanisms determine which analytical approaches produce valid inference. Under MCAR assumptions, complete case analysis is unbiased though inefficient. MAR allows multiple imputation and maximum likelihood methods to recover valid estimates. MNAR requires untestable assumptions, creating irreducible uncertainty. Diagnosing missingness mechanisms through patterns in observed data combined with domain knowledge guides method selection, with transparent reporting of assumptions and decisions.
Outliers require investigation to distinguish errors from legitimate extreme values. Clear errors may be corrected or removed, while real extremes may call for methods resistant to outliers or sensitivity analyses. Visual inspection, statistical screening, and domain knowledge combine to identify and appropriately handle unusual observations. Removing too many outliers creates new biases by truncating distributions, while retaining severe errors distorts all downstream analyses.
Implementing effective data quality practices requires systematic workflows that integrate quality checks throughout analysis pipelines, complete documentation of decisions, and honest reporting of limitations. Data quality work involves judgment and tradeoffs rather than mechanical application of rules. Investing effort in understanding and improving data quality gives the basis for reliable, meaningful analyses that produce trustworthy insights.