COMP9321 · 02 Data quality · Terms

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

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

32 Terms

1
New cards
Accuracy
A data quality dimension: the data was recorded correctly and matches reality. ✎ Exam: C003 Age = −30 is an ___ problem: no customer can have a negative age, so set it to NaN and treat it as missing.
2
New cards
Completeness
A data quality dimension: all the relevant data was recorded; nothing is missing. ✎ Exam: Total Amount = N/A for order 1042 is a ___ problem; impute with the median because amounts are skewed.
3
New cards
Uniqueness
A data quality dimension: each real-world entity is recorded only once. ✎ Exam: Customer C001 appears twice, which breaks ___; drop the duplicate and keep the most recent row.
4
New cards
Timeliness
A data quality dimension: the data is up to date enough for the task. ✎ Exam: Loyalty status last updated in 2019 fails ___ for a 2026 campaign; refresh it from the source system.
5
New cards
Consistency
A data quality dimension: the data agrees with itself and across sources (same formats, matching references). ✎ Exam: Dates appear as 2023-01-15 and 15/01/2023, a ___ problem; convert all dates to ISO format (YYYY-MM-DD).
6
New cards
Validity
A value follows the allowed format, type and range rules (e.g. month 1–12). On the tutor's slide; the course's own list has five dimensions without it. ✎ Exam: Month = 13 is not ___; treat it as missing unless the true month can be recovered.
7
New cards
Missing value
A field with no ___: NaN, "N/A", None or empty. Spot with df.isnull().sum(). ✎ Exam: Contract Type = None for C004 is a ___; fill it with "Unknown" so the row is kept.
8
New cards
Imputation
Filling missing values with an estimate instead of deleting the row: median for skewed numbers, mean for symmetric ones, mode or "Unknown" for categories. ✎ Exam: Income is right-skewed, so I use median ___; the median is robust to the few very high incomes.
9
New cards
Outlier
A value far from the rest. It may be an error (fix or remove) or a real extreme (keep: it carries information). Spot with a box plot, IQR or z-score. ✎ Exam: Age = 450 is an ___ caused by an entry error, so I set it to NaN; a genuine $50,000 purchase would be kept.
10
New cards
Duplicate record
The same entity stored more than once. Spot with df.___(), fix with drop_duplicates() on the entity key, deciding which copy to keep. ✎ Exam: Student 1234 appears twice (___), breaking uniqueness; keep one row.
11
New cards
Invalid value
A ___ that breaks a domain rule: age −30, month 13, a negative price. Set it to NaN, then handle it like a missing ___ (or correct it if the true ___ is known). ✎ Exam: Date of birth 2999-01-01 is an ___; set it to NaN and impute or drop.
12
New cards
Inconsistent format
The same kind of value written different ways: dates, units, case, spelling variants ("postgrad" vs "PGRD"). Fix by standardising to one ___. ✎ Exam: Program is "postgrad" in one row and "PGRD" in another, an ___; map both to one label.
13
New cards
Dirty data
Data with any quality problem: missing, wrong, duplicate, inconsistent or out of date. (Past MCQ: the answer was "all of the above".) ✎ Exam: The two device datasets contain ___ (impossible dates, duplicates, mixed formats), so they need cleaning before the merge.
14
New cards
Schema-level problem
A quality ___ the database design allows, which a constraint could have prevented (e.g. duplicate IDs because there is no UNIQUE or PRIMARY KEY). ✎ Exam: Two customers share ID C001, a ___: a PRIMARY KEY constraint would have blocked it.
15
New cards
Instance-level problem
A wrong value in one record that no schema rule can catch, because the value is allowed but untrue (a typo, a wrong but valid category). ✎ Exam: Gender stored as "F" for a male customer is an ___: "F" is a valid value, so no constraint stops it.
16
New cards
Integrity constraint
A rule in the database schema that rejects bad data: PRIMARY KEY, UNIQUE, NOT NULL, FOREIGN KEY, CHECK (e.g. age ≥ 0), DEFAULT. ✎ Exam: Adding ___s (NOT NULL on email, CHECK age ≥ 0) stops these schema-level problems at entry.
17
New cards
Referential integrity
Every foreign key points to a row that exists (every order's customer is in Customers). Enforced with a FOREIGN KEY constraint. ✎ Exam: An order for C003, who is not in Customers, breaks ___; flag it before the join.
18
New cards
Syntactic accuracy
Is the value a valid word of the domain at all? "Jhn" is ___ wrong (not a real name). Compare semantic ___. ✎ Exam: "Jhn" fails ___; correct it to "John".
19
New cards
Semantic accuracy
Is the value the true one for this record? "Jack" stored for John is a real name, so syntactically fine, but ___ wrong. ✎ Exam: Storing "Jack" for John passes syntax checks but fails ___, so only checking against the source catches it.
20
New cards
Accuracy
Scenario: A customer's city is stored as "Sydny" and their age as −30. Which quality dimension do both break? Why: ___: the values don't match reality (a misspelt city, an impossible age).
21
New cards
Completeness
Scenario: 12% of orders have Total Amount = N/A. Why: ___: relevant values were not recorded.
22
New cards
Uniqueness
Scenario: Customer C001 appears in two rows with the same details. Why: ___: one entity is stored twice (a duplicate record).
23
New cards
Timeliness
Scenario: A 2026 marketing campaign uses loyalty tiers last updated in 2019. Why: ___: the data is out of date for the task.
24
New cards
Consistency
Scenario: One table stores dates as 2023-01-15, another as 15/01/2023, and an order refers to customer C003 who is not in Customers. Why: ___: formats disagree, and the data disagrees across tables.
25
New cards
Validity
Scenario: A date field contains month 13 and a phone field contains letters. Why: ___: the values break the allowed format/range rules (in the course's five, call it accuracy).
26
New cards
Imputation
Scenario: 8% of the Income column is missing and incomes are heavily right-skewed. Delete the rows or fill them, and with what? Why: ___ with the median: keeps the rows, and the median isn't pulled up by the few very high incomes.
27
New cards
Outlier
Scenario: An employee table has ages mostly 25–60 and one age of 450. The mean is 58.5 but the median is 37. Why: ___ (an entry error): investigate, then fix or remove it. It drags the mean up; the median is robust.
28
New cards
Inconsistent format
Scenario: Prices in one source are in AUD, in another in USD; names are "Smith, John" and "John Smith". Why: ___: standardise (one currency, one name ___) before combining.
29
New cards
Schema-level problem
Scenario: Two different customers were saved with the same Customer ID. Why: ___: the design lacked a PRIMARY KEY / UNIQUE constraint, which would have prevented it.
30
New cards
Instance-level problem
Scenario: Which data quality ___ can a relational database (RDBMS) NOT prevent? (past MCQ) Why: Wrong categorical data, an ___: the value is valid for the column, just untrue for that record.
31
New cards
Referential integrity
Scenario: After merging, 40 orders refer to customer IDs that don't exist in the Customers table. Why: Broken ___: the foreign keys point nowhere. Find them with an anti-join, then drop or keep with a missing profile, and report how many.
32
New cards
Semantic accuracy
Scenario: A customer named John is stored as "Jack". Every name check passes. Why: ___ fails: a valid value, but not the true one for this record (an instance-level problem).