COMP9321 · 02 Data quality · Lists & facts

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

15 Terms

1
New cards
Name the five data quality dimensions.
Accuracy, Completeness, Uniqueness, Timeliness, Consistency.
2
New cards
Problem vs dimension: what's the difference?
A problem is what you see in the data (blank cell, age 450, a row twice). A dimension is the yardstick it fails. Car inspection: "flat tyre" is the problem, "safety" the heading it fails.
3
New cards
Map each problem to the dimension it breaks: missing values · outlier (error) · duplicate · format problem · typo/logic error · old data.
Missing values → Completeness; Outlier (an error) → Accuracy; Duplicate → Uniqueness; Format problem → Consistency; Typo / logic error → Accuracy; Old data → Timeliness
4
New cards
The three parts of a full answer to "identify the data quality issue".
Problem + dimension + fix, naming the cell. "C001 appears twice (duplicate record) → violates uniqueness → drop the duplicate, keeping the most recent."
5
New cards
In what order should you clean: missing values, duplicates, formats? Why?
Duplicates → standardise formats → missing values. Duplicates and bad formats distort the statistics (median, mean) you would impute with.
6
New cards
How to pick the imputation value for: a skewed number · a symmetric number · a category?
Skewed → median (robust to extremes). Symmetric → mean. Category → mode or "Unknown". Add a "was missing" flag if missingness may mean something.
7
New cards
Which pandas call spots each: missing values · invalid ranges · category spellings · duplicates · wrong types · outliers?
isnull().sum() · describe() · value_counts() · duplicated() · dtypes · box plot / IQR / z-score.
8
New cards
What does df.describe() give, and what does it do with NaN?
count, mean, std, min, 25/50/75% quartiles, max. It ignores NaN (count shows how many are not missing).
9
New cards
What is the first step of data exploration?
Understand the data: what it is, the schema, the domain, the questions to answer. Only then look at it (head, info, describe).
10
New cards
Danger of removing all outliers automatically?
You can delete real, important cases (fraud, rare events). Investigate first; remove or cap only errors.
11
New cards
Danger of blindly filling missing values?
It hides the problem, distorts the distribution and invents information.
12
New cards
Why does data integration create new quality problems?
Merging sources brings duplicates (same entity in both), broken keys (IDs in one source only) and unit/format clashes (AUD vs USD, date formats).
13
New cards
Where do data quality problems come from? (tutor's four causes)
The source (entry errors), ETL/transformation mistakes, integration of several sources, and ageing (data goes stale, "bit rot").
14
New cards
df.dropna(axis=X, how='all') should drop rows. What is X, and what does how='all' mean?
X = 0 (axis 0 = rows, 1 = columns). how='all' drops a row only if every value in it is NaN ('any' = at least one).
15
New cards
Which problems CAN an RDBMS prevent, and with what? Which can it NOT prevent?
Can: duplicate IDs (PRIMARY KEY/UNIQUE), missing required values (NOT NULL), wrong type (column type), orders for non-existent customers (FOREIGN KEY), impossible values (CHECK). Cannot: wrong categorical data (France + NSW) or a valid-but-untrue value ("Jack" for John): instance-level.