Document Data Limitations
Data often still has problems when the work is due. Say what they are, measure what you can, and show how they limit the conclusion.
Eight made-up chart songs with a missing genre, unmatched songs and one artist spelled two ways. Run this in an empty practice database.
DROP TABLE IF EXISTS chart_songs;
DROP TABLE IF EXISTS song_info;
CREATE TABLE chart_songs (
song_id INTEGER, artist_name TEXT, chart_year INTEGER, genre TEXT
);
CREATE TABLE song_info (song_id INTEGER);
INSERT INTO chart_songs VALUES
(1, 'Copper Lantern Club', 1984, 'pop'),
(2, 'COPPER LANTERN CLUB', 1986, NULL),
(3, 'Nia Vale', 1987, 'soul'),
(4, 'Rosa & Finch', 1989, 'folk'),
(5, 'Nia Vale', 1994, 'soul'),
(6, 'Rosa & Finch', 1996, 'folk'),
(7, 'Glass Harbor', 2001, 'rock'),
(8, 'Glass Harbor', 2003, 'rock');
INSERT INTO song_info VALUES (1), (3), (4), (5), (7), (8);The steps
Ask what the data is forFitness for use
Can one table be good for one job and poor for another? Yes. A customer list may count customers well and still be unfit for mailing them if the addresses are old.
This idea is called fitness for use: data quality depends on what the user needs it for. Wang and Strong built their 1996 study of data quality around it (Beyond Accuracy).
| Ask | Example |
|---|---|
| What decision does this feed? | Which regions to staff |
| Which fields does it depend on? | Region and order date |
| What is wrong in those fields? | Some rows have no region |
| Can the conclusion still stand? | State the size, then decide |
A list has old addresses. For which job is that the bigger problem?
Write the limitations sectionWhat the reader needs to know
Put a short section in the deliverable that says what the work cannot show, and why. Names vary: Limitations, Scope and assumptions, Caveats.
| Include | Meaning |
|---|---|
| Tradeoffs | Rules you chose that have a cost |
| Known problems | Faults you could not fix |
| Boundaries | Questions the data cannot answer |
| Coverage | Who or what is missing |
Examples from my projects: Steam Hidden Gems and Streaming Hidden Gems have a Scope & Assumptions section. Music Hidden Gems lists its limitations.
One from the music project: names joined with "&" are not split, because splitting would break band names such as Hall & Oates. The cost is that a duo member's solo work is not combined with the duo.
Your data ends in June. Which line belongs in the section?
Keep a data-quality logThe working record
The section is the summary. Behind it, keep a log of each issue as you find it, so later questions have an answer.
| Part | From the music project |
|---|---|
| Clue | A top list showed "Elvis Presley With The Jordanaires" as its own artist |
| Check | Group the matching credit text: 7 different strings |
| Decision | Normalize joiner words by rule, and preview the results |
| Lesson | One real artist can appear under many names |
Add the date, the query you ran and who agreed to the decision. Some regulated work has formal rules for this, so ask what yours requires. For the matching problem itself, see entity resolution.
When is the best time to write a log entry?
Measure each limitationOne more query
A number tells the reader how large the problem is. Run these on the practice data.
How many songs matched the second source?
SELECT
COUNT(*) AS songs,
COUNT(i.song_id) AS matched,
ROUND(100.0 * COUNT(i.song_id) / COUNT(*), 1) AS match_pct
FROM chart_songs AS c
LEFT JOIN song_info AS i ON i.song_id = c.song_id;| songs | matched | match_pct |
|---|---|---|
| 8 | 6 | 75.0 |
Is the missing genre spread evenly?
SELECT
CASE WHEN chart_year < 1990 THEN 'before 1990'
ELSE '1990 on' END AS period,
COUNT(*) AS songs,
COUNT(*) - COUNT(genre) AS missing_genre,
ROUND(100.0 * (COUNT(*) - COUNT(genre)) / COUNT(*), 1)
AS missing_pct
FROM chart_songs
GROUP BY period
ORDER BY period DESC;| period | songs | missing_genre | missing_pct |
|---|---|---|---|
| before 1990 | 4 | 1 | 25.0 |
| 1990 on | 4 | 0 | 0.0 |
Which artists differ only by capitals?
SELECT
LOWER(artist_name) AS artist_key,
COUNT(DISTINCT artist_name) AS spellings
FROM chart_songs
GROUP BY LOWER(artist_name)
HAVING COUNT(DISTINCT artist_name) > 1;| artist_key | spellings |
|---|---|
| copper lantern club | 2 |
LOWER() finds capital letter differences only. It does not find typos, and in SQLite the built-in function changes only ASCII letters. See also GROUP BY and HAVING.
6 of 8 songs matched. What do you report?
Turn numbers into sentencesSpecific beats vague
| Vague | Specific, from the practice data |
|---|---|
| Some songs may not match. | 6 of 8 songs (75%) matched the second source. |
| Older data may be weaker. | Genre is missing for 1 of 4 songs before 1990, and 0 of 4 from 1990. |
| There may be duplicates. | 1 artist appears under 2 capitalizations. |
Then say what it means: "Genre comparisons before 1990 leave out one of four songs." With this few rows, do not claim a wider pattern.
A real example: the music project found 3 artists split by capital letters, 6 roster rows out of 1,570 (data quality log).
Starter template
## Limitations and assumptions
1. Tradeoff: We did [X] instead of [Y] because [reason].
Cost: [what it affects], measured as [N rows, M%].
2. Known problem: The source cannot [what].
Effect on the conclusion: [effect].
3. Boundary: Data covers [dates, group, place].
It does not answer [question].
4. Match rate: [step] matched [N of M records, P%].
Unmatched records: [what they have in common, or unknown].Which caveat helps a reader most?
Present it with the findingNext to the result it affects
- State the finding.
- State the limitation that could change it, with its size.
- Say what you did about it.
- Say what would settle it, such as more data or a check by the data owner.
| Part | Example |
|---|---|
| Finding | Rock songs appear only from 2001 on. |
| Limitation | The sample has 8 songs, and 1 has no genre. |
| Action | Kept the blank genre as unknown. |
| Next | Fill the genre from the source and check the full file. |
Listing problems does not excuse weak work. If a limitation could reverse the conclusion, say so, and fix it or narrow the claim. In an interview, describe both what you found and what the data could not tell you. More on finding issues: exploratory data analysis.
A limitation could reverse your conclusion. What do you do?
Cheat sheetFour things to write down
| Item | Write |
|---|---|
| Tradeoff | Rule, reason, cost |
| Known problem | What, size, effect |
| Boundary | Dates, group, place |
| Match rate | Count, total, percent |
| Log entry | Clue, check, decision, lesson |
Write one now
Pick work you have shown someone. Finish this sentence: "This analysis cannot tell you ___."
Portfolio Projects
Turn a dataset into a project with a limitations section. The SQL Kit covers the queries.
Thinking Like an Analyst
Defining a metric, exploring data before you trust it, and saying what the data cannot tell you.
The Data Analyst OS
Claude Code commands for readouts and handoffs that include what the data cannot support.
Related guidesQuality, metrics and SQL
- Analyst Prep Kit
- GROUP BY and HAVING
- SQL CTEs
- Window Functions
- Tableau Relationships
- Tableau Sets
- What Is Data Analysis?
- Commenting SQL
- Exploratory Data Analysis
- Data-Driven Thresholds
- Defining Metrics
- Entity Resolution
- Technical Tenacity
- Set Up a SQL Database
- Handle Large Datasets
- Git for Analysts
- SQL CASE Expression
- SQL + Python
- SQL JOINs
- COUNT in SQL
- SQL Aliases
- SQL Kit
- Portfolio Projects
Analyst Prep Kit · Open Portfolio Projects
Version 2.0