🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Science & Analytics › Data Cleaning and Preparation for Analysis › Lesson 1
TEC-DATA85-05 · Lesson 1 · 9 clock hours · theory

Data Quality Fundamentals and the Cleaning Pipeline

Objective. Students will define the six dimensions of data quality (accuracy, completeness, consistency, timeliness, validity, uniqueness) and map each dimension to common real-world failure modes.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is Data Quality and Why Does It Matter?

Data quality is the degree to which a dataset is fit for its intended use. Before any analysis, visualization, or machine-learning model is trustworthy, the underlying data must meet a recognized standard of quality. Poor-quality data produces misleading results — a problem sometimes called "garbage in, garbage out." In professional practice, data analysts and data scientists spend a substantial portion of their time cleaning and preparing data before they ever run a single query or build a chart.

The DAMA International Data Management Body of Knowledge (DMBOK2) is the standard reference for data management professionals. It defines data quality around a set of measurable dimensions. Understanding these dimensions gives you a shared vocabulary with employers, teammates, and auditors, and it structures your cleaning work into defensible, repeatable steps.

The Six Dimensions of Data Quality

1. Accuracy

Accuracy means a data value correctly reflects the real-world object or event it represents. A hospital visit log that records a patient's birth year as 1850 for a living adult is inaccurate. Accuracy problems often arise from manual data entry errors, sensor miscalibration, or faulty system integrations. You detect them by comparing values against a trusted reference source or by checking whether values fall within a plausible range.

2. Completeness

Completeness measures whether all required data is present. A municipal permit table missing the contractor's license number on 30 percent of rows is incomplete. Completeness failures may occur when forms allow optional fields, when data migrations drop records, or when source systems go offline. In a dataset, completeness is often assessed as the proportion of non-null values in each column relative to what the business rules require.

3. Consistency

Consistency means that data values do not contradict one another within the same dataset or across related datasets. A retail transaction file where the same product is listed as both "Electronics" and "Elec." in different rows is inconsistent. Consistency problems appear frequently when data is entered through multiple channels, maintained in separate systems, or reformatted without enforcing a controlled vocabulary.

4. Timeliness

Timeliness addresses whether data is available and up to date when it is needed for a decision. A sales dashboard that reflects last week's figures when managers need today's numbers fails the timeliness dimension. Timeliness is also violated when records carry timestamps that do not match the actual time of the event — for example, a hospital visit logged 48 hours after it occurred. Stale data is particularly dangerous in fast-moving domains such as fraud detection and public health surveillance.

5. Validity

Validity means a value conforms to the defined format, type, range, or business rule for that field. A date field containing the string "March 32nd" is invalid. A ZIP code field containing letters is invalid. Validity differs from accuracy: a value can be validly formatted but still factually wrong (for example, a real ZIP code assigned to the wrong city). Validity checks are often the first automated pass in a cleaning pipeline because they are the easiest to define programmatically.

6. Uniqueness

Uniqueness requires that each real-world entity appears only once in a dataset, or that every record has a distinct identifier. Duplicate customer records inflate counts and skew analyses. Duplicate transaction rows can double-count revenue. Uniqueness problems arise from system merges, manual re-entry, or incomplete deduplication logic.

Mapping Dimensions to Common Failure Modes

| Dimension | Typical Cause | Example Failure |

|---|---|---|

| Accuracy | Manual entry error | Age recorded as 150 |

| Completeness | Optional form fields | Missing ZIP codes |

| Consistency | Multiple entry channels | "CA" vs. "California" |

| Timeliness | Batch refresh lag | Yesterday's inventory shown today |

| Validity | No format enforcement | Letters in a phone-number field |

| Uniqueness | System migration overlap | Same customer ID on two accounts |

The Data Cleaning Pipeline

A cleaning pipeline is a documented, ordered sequence of steps applied to raw data before analysis. Ordering matters: fixing validity issues first (removing unparseable rows) makes completeness counts more meaningful; resolving duplicates before imputing missing values prevents you from imputing data that should be removed. A widely used sequence is:

1. Profile — describe the dataset (row count, column types, null rates, value distributions).

2. Validate — check format, type, and range rules; flag or remove non-conforming values.

3. Deduplicate — identify and resolve duplicate records.

4. Handle missing values — decide per column: drop, impute, or flag.

5. Standardize — unify formats, units, and controlled-vocabulary terms.

6. Verify accuracy — cross-check against reference sources where feasible.

7. Document — record every transformation applied, the rationale, and the row counts before and after.

Documentation is not optional. In regulated industries such as healthcare and finance, an undocumented transformation can invalidate an entire analysis.

Safety and Professional Responsibility

Data quality work carries professional risk. Altering source data without version control or audit logs can permanently destroy evidence of the original state. Always work on a copy of the raw data; never overwrite source files. In environments that handle protected health information (PHI) or personally identifiable information (PII), follow your organization's data-governance policy before opening, copying, or sharing any file. When in doubt, ask your supervisor before proceeding — this is the data equivalent of the safety rule: if you are unsure of the hazard, stop and verify.

Key terms9

Data qualityThe degree to which a dataset is fit for its intended use, typically measured across multiple defined dimensions.
AccuracyA data value correctly represents the real-world entity or event it is supposed to describe.
CompletenessAll required data values are present in the dataset with no missing or null entries where the business rules require a value.
ConsistencyData values do not contradict each other within a dataset or across related datasets.
TimelinessData is available and sufficiently current to support the decisions or analyses for which it is needed.
ValidityA data value conforms to the defined format, data type, allowable range, or business rule for that field.
UniquenessEach real-world entity appears only once in a dataset, with no duplicate records.
Data cleaning pipelineA documented, ordered sequence of transformation steps applied to raw data to improve its quality before analysis.
DMBOK2The DAMA International Data Management Body of Knowledge, second edition — the standard professional reference for data management practices including data quality.
In class: Read and annotate excerpts from the DAMA Data Management Body of Knowledge (DMBOK2) sections on data quality; students mark every term that matches a dimension and write a one-sentence definition in their own words. · Examine three provided messy CSV files (a hospital visit log, a municipal permit table, and a retail transaction file); students complete a structured triage worksheet that lists at least two quality problems per dimension they can observe. · Class discussion: students share triage findings, instructor builds a master issue list on the whiteboard, and the class collaboratively orders the cleaning steps into a repeatable pipeline diagram they photograph and keep for the course.
Materials: DAMA DMBOK2 (excerpts), three sample CSV files, structured triage worksheet, whiteboard, student laptops with Python 3 / Jupyter and R / RStudio installed
Check: Students submit the completed triage worksheet; pass requires correctly classifying at least 10 of 14 seeded quality problems by dimension (71 % threshold).

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Data Quality / CompTIA Data+
1. A retail transaction file contains a row where the sale date is recorded as "February 30." Which data quality dimension is violated?
Data Quality / Google Data Analytics
2. A hospital visit log is missing the attending physician's name on 40 percent of rows. This is a failure of which dimension?
Data Quality / CompTIA Data+
3. An analyst finds that the same customer appears twice in a CRM database with different record IDs but identical names, addresses, and email addresses. Which dimension is violated?
Data Quality / IBM Data Science Professional
4. A municipal permit table lists the same city as both "St. Louis" and "Saint Louis" across different rows. This best illustrates a failure of:
Data Quality / Microsoft PL-300
5. A fraud-detection dashboard displays transaction data that is refreshed once per week. Analysts report that by the time they see alerts, the fraudulent accounts have already been closed. Which dimension best describes this problem?
Data Preparation / Google Data Analytics
6. Which step should generally come FIRST in a data cleaning pipeline, and why?
Data Quality / CompTIA Data+
7. An analyst receives a CSV exported from a legacy system in which a patient's recorded age is 7 years, but the same patient's birth year in the same row indicates the patient would be 47 years old. This issue simultaneously involves which TWO dimensions?
Data Governance / IBM Data Science Professional
8. Before cleaning a dataset that may contain personally identifiable information (PII), what is the MOST important professional practice an analyst should follow?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.