Level 2 · Module 5 · 10 minutes
Data quality: missing, messy and misleading
- Name three common data quality problems.
- Explain why a blank value is not the same as zero.
- Describe a practical check to run before using a dataset.
Models learn from the data they are given, including its mistakes. A table can look tidy on the screen and still contain blank fields, duplicates, impossible values and answers entered by tired people. The model has no way to know that a record is nonsense. It will treat it as evidence.
Common problems
- Missing values: a blank price, an unknown age, an empty category.
- Duplicates: the same sale entered twice, or the same customer under two spellings.
- Inconsistent formats: dates written two ways, categories spelled differently.
- Outliers: a quantity far outside the normal range, such as a thousand units where orders usually have a handful.
- Wrong labels: a record marked returned when it was not.
- Stale records: details that were correct last year and are not now.
None of these are rare, and most come from ordinary work: a form filled in a hurry, a system change, a supplier sending a different layout.
Why blanks are tricky
Many tools will fill a missing number with zero if asked. That is a decision, not a neutral fix. A blank price and a price of zero mean different things, and a model told the price was zero learns something false. Sometimes the honest answer is to exclude the record, sometimes to mark the blank as its own category, and sometimes to find the missing value. The choice needs a person who understands the business.
Checks worth doing early
- Count the blank cells in each important column.
- Look for repeated rows and repeated identifying codes.
- Check the range of each number: negative quantities, future dates, impossible totals.
- Compare category spellings and formats.
- Read a sample of raw records by hand, including the odd ones.
These checks are unglamorous, and they save the most time. A model trained on dirty data produces confident nonsense, and debugging it later is far harder than cleaning first.
Quality is a process, not a one-off
Data keeps arriving. Today's clean table will drift as systems change and habits shift. The checks above are worth repeating, and the results are worth writing down so the next person knows what was fixed and why.
In a course, cleaning a small practice table teaches the moves: spot the blank, decide, record the decision. The exercise is a simulation on a toy dataset. The messy production data it prepares you for is bigger, arrives continuously, and needs the same care.
Common misconception
If a table loads without errors, the data inside it can be trusted. A table can load perfectly and still contain blanks, duplicates, impossible values and wrong labels. Software accepts nonsense without complaint, so quality has to be checked by looking at the records.
Guided practice
Find a small table you are allowed to inspect, such as a stock sheet, a class list or a simple register. Look for blanks, duplicates, inconsistent spellings and impossible values. Write down each problem and what you would do about it, then keep the notes as a checklist. Do not include private details.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem