Lesson 2 of 2 Data as the Foundation of AI

Data Quality and AI Outcomes

An AI system can only be as good as the data it learns from and works with. This lesson explains the dimensions of data quality and how poor quality shows up in AI results.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the dimensions of data quality.
  • Explain how each kind of data quality problem appears in AI results.
  • Explain why data quality is a business responsibility.
  • Describe how data quality is measured with metrics and thresholds.
  • Explain why label quality limits supervised models.
  • Describe how to prepare a knowledge source for a generative AI assistant.

The dimensions of data quality

Data quality is not a single property. The following terms describe the dimensions that data teams and business owners assess.

Accuracy
Values correctly describe reality, for example the right address or the correct label on a training example.
Completeness
Required records and fields are present; there are no large gaps.
Consistency
The same fact has the same value and definition across systems.
Timeliness
Data is current enough for the decision it supports.
Validity
Values follow the expected format and rules, such as dates in valid ranges.
Representativeness
The data reflects the full population and situations the model will face, including minority groups and edge cases.

How poor quality appears in AI results

Each quality problem has a recognisable effect. Inaccurate labels teach the model wrong answers, so its errors look systematic rather than random. Missing data creates blind spots: if a region's sales are missing, its forecasts will be poor. Inconsistent definitions, such as two departments defining an "active customer" differently, produce contradictory results. Stale data teaches yesterday's patterns. Unrepresentative data produces a model that works well for the majority and poorly, or unfairly, for groups that were under-represented.

Generative AI is affected in the same way. A knowledge assistant that retrieves an outdated policy will confidently give an outdated answer; one that retrieves two contradictory versions may combine them. Content used for RAG therefore needs owners, version control and regular review.

Data before models

When an AI initiative underperforms, check the data before changing the model. Improving data quality is usually cheaper and more effective than adopting a more sophisticated algorithm.

The following diagram links each quality problem to the symptom it produces.

How each data quality problem shows up in AI results. Inaccurate labels cause systematic errors; missing data creates blind spots; inconsistent definitions produce contradictory results; stale data teaches yesterday's patterns; and unrepresentative data gives a model that works for the majority but poorly or unfairly for under-represented groups. Generative AI is affected in the same way by its knowledge sources.
Recognising the symptom is often the quickest way to find the underlying data problem.
Sort into groups

Which quality dimension failed?

Exam skills 1.1.4

Trace each symptom in AI results back to a data quality dimension.

Log in to try this activity Interactive activities are free with an account.

Measuring data quality

Data quality can only be managed if it is measured. Each dimension can be expressed as a metric with a threshold that the data must meet before it is used. The following table gives examples for a customer data set.

DimensionExample metricExample threshold
AccuracyShare of sampled records confirmed correct against the sourceAt least 98%
CompletenessShare of records with all required fields populatedAt least 95%
ConsistencyShare of customers whose status matches in the CRM and billing systemsAt least 99%
TimelinessDelay between an event and its availability for analysisLess than 24 hours
ValidityShare of records passing format and range rulesAt least 99%
RepresentativenessShare of each region or customer group compared with the population servedWithin 5 percentage points

A data quality assessment, sometimes called data profiling, should take place at the start of an AI initiative, before significant investment. It shows whether the data can support the use case and how much remediation is needed. Discovering after several months that a key field is missing for a third of customers is one of the most common reasons AI pilots overrun.

Label quality

For supervised learning, the labels are data too, and often the most important data. Labels created by people are subject to inconsistency: two claims handlers may classify the same claim differently, and a tired reviewer may make mistakes late in the day. A model trained on inconsistent labels cannot be more consistent than its teachers.

Good practice includes written labelling guidelines with examples of difficult cases, measuring agreement between labellers on a shared sample, review of a proportion of labels by an expert, and a process for resolving disagreements. Where labels come from business systems, such as a fraud flag, leaders should ask how the flag is set and whether it is applied consistently across teams and over time.

Select all that apply

Improving label quality

Exam skills 1.1.4 · 1.1.5

Choose the practices that improve labels for a claims classification model.

Log in to try this activity Interactive activities are free with an account.

Preparing a knowledge source for generative AI

When a generative AI assistant answers questions from company documents, those documents become its source of truth, and their quality determines the quality of its answers. The following practices prepare a knowledge source for this role.

  • One authoritative version of each document, with superseded versions archived rather than left alongside the current one.
  • A named owner and review date for each document, so that content is kept current.
  • Metadata, such as document type, region, effective date and audience, so that the assistant can retrieve the right version for the right person.
  • Removal of redundant, obsolete and trivial content, which otherwise competes with the relevant material.
  • Access permissions that are correct before the assistant is connected, because it will expose whatever its users can reach.
  • Coverage checks: if no document answers a common question, the assistant cannot answer it reliably either.
Troubleshooting scenario

An assistant with poor sources

Exam skills 1.1.4

Choose the fix that addresses the cause in each knowledge-source problem.

Log in to try this activity Interactive activities are free with an account.

Managing data quality as a business responsibility

Data quality is not only an IT task. Business owners know what correct data looks like and control the processes that create it. Effective organisations assign data owners for each data domain, define quality rules and thresholds, measure quality continuously and fix problems at the source rather than cleaning the same errors repeatedly downstream. The module on data and infrastructure foundations covers ownership and sharing frameworks in more depth.

Worked example

A chatbot that contradicts itself

A company launches an internal HR assistant that answers questions from the policy library. Employees report that it gives different answers about parental leave on different days. The model is working as designed. What is the likely cause and fix?

The likely cause is a consistency and timeliness problem in the source content: the library probably contains both an old and a new version of the parental leave policy, and the assistant retrieves whichever version matches the question best. The fix is a data quality action, not a model change: remove or archive superseded documents, assign an owner to each policy, and introduce a review process so that only current, approved content is available to the assistant.

Worked example

A forecast that fails for one region

A retailer's demand forecasting model performs well for most stores but consistently under-forecasts for 40 stores acquired last year. Those stores use a different point-of-sale system that records sales weekly rather than daily and uses its own product codes. Which data quality dimensions are involved, and what should be done?

The problem combines consistency (different product codes for the same items, so sales are not matched correctly), completeness (daily detail is missing) and representativeness (the acquired stores are under-represented in the training history). The fix is to map the product codes to the main catalogue, agree how weekly figures are treated, assign a data owner for the acquired stores' data, and retrain once enough consistent history exists. Until then, planners for those stores should review the forecasts rather than rely on them.

Check yourself

A speech recognition model works well for most customers but poorly for those with regional accents. Which data quality dimension is most likely at fault?

Show answer

Representativeness. The training data probably under-represented regional accents, so the model performs poorly for those groups.

Exam Tips

Remember for the exam

  • Data quality dimensions: accuracy, completeness, consistency, timeliness, validity, representativeness.
  • Unrepresentative data leads to poor and unfair results for under-represented groups.
  • Outdated or duplicate documents make RAG assistants give wrong or inconsistent answers.
  • Fix data quality at the source, with named business owners.
  • Assess data quality at the start of an initiative, with metrics and thresholds for each dimension.
  • Labels are data too: inconsistent labelling limits how good a supervised model can be.
  • A knowledge source for generative AI needs one current version, owners, metadata and correct permissions.