The University of Sydney · FACULTY OF DATA SCIENCE

DATA1002 Chap.5 Data Cleaning, Provenance and Quality

- one subject, every graph, every model, every mark
5 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 5 of 12 · DATA1002

Data Cleaning, Provenance and Quality

Define data provenance

The course material gives this chapter a concrete anchor: The lifecycle, lab and project materials require students to document source, metadata, cleaning and ingestion before reporting summaries.

That data provenance anchor controls how missing-value convention is explained and how data-quality rule is tested in changed practice.

Data Cleaning, Provenance and Quality turns data provenance, missing-value convention and data-quality rule into executable reasoning.

The chapter's practical target is to build a cleaning pipeline whose assumptions and row-level effects can be audited, so every explanation should connect syntax to program state, control flow and observable output.

Treat data provenance as a precise program object, not a loose label. Identify the value or responsibility of data provenance before execution, then trace what can read it, change it or depend on it.

This makes state changes visible before they become debugging guesses.

Use missing-value convention to explain the program's next move. Work through one representative missing-value convention input by hand and name the branch, iteration or call that follows.

If the missing-value convention trace cannot be stated, the code may run by accident rather than by understood design.

Bring in data-quality rule as the test of structure.

Compare normal, boundary and invalid inputs for data-quality rule; state the expected behaviour first; then use the mismatch between expectation and result to localise the defect.

For the application — build a cleaning pipeline whose assumptions and row-level effects can be audited — write the smallest complete example that exposes the rule.

Explain why the data-quality rule result works, what would break it and how the program should signal or recover from that failure.

Formula checkpoint

Missingness rate
rmiss=nmissingnrowsr_{miss}=\frac{n_{missing}}{n_{rows}}

The rate quantifies recorded missingness for a field but does not explain why values are absent.

Trace missing-value convention

Before running an data provenance example, make a trace table with the important state before and after each operation.

Include the value associated with data provenance, the control decision governed by missing-value convention and the output or object affected by data-quality rule. The data provenance table turns an unexplained result into a sequence that can be tested one transition at a time.

Test three inputs: an ordinary case, a boundary case and an invalid case.

State the expected data-quality rule result for each before execution, then compare it with what the program actually does. A useful test of missing-value convention isolates one rule; changing several conditions at once cannot reveal which condition caused the failure.

Practise explaining the solution without reading the code.

For DATA1002, name the data representation, the control flow, the responsibility of each function or class and the reason the chosen design supports build a cleaning pipeline whose assumptions and row-level effects can be audited.

This data-quality rule rehearsal matters when a written test or interview asks why the program works rather than whether it produces one correct output.

A complete response should make the task visible before the detail: identify what must be decided, define the relevant terms, connect the evidence to missing-value convention, and use data-quality rule to test the result.

The final sentence about data-quality rule should answer the question actually asked rather than merely repeat the topic.

The controlling limit is specific: Clean-looking data are not necessarily representative, correctly labelled or fit for the intended decision.

Keep that data-quality rule limit beside the worked example, because it separates a careful DATA1002 answer from one that sounds confident but claims more than the task or evidence supports.

For revision, retrieve data provenance, missing-value convention and data-quality rule without notes, explain their relationship aloud, then complete a changed version of the application: build a cleaning pipeline whose assumptions and row-level effects can be audited.

Record the first failed missing-value convention reasoning move and repair it before attempting another case.

In this chapter

What this chapter covers

  • 01

    data provenance

  • 02

    missing-value convention

  • 03

    data-quality rule

  • 04

    Applying data provenance

  • 05

    Limits of missing-value convention and data-quality rule

Worked example · free

AskSia practice: apply Data Cleaning, Provenance and Quality

Q [4 marks]. AskSia-authored four-point reasoning drill: how should a student build a cleaning pipeline whose assumptions and row-level effects can be audited? This is not a University question or marking scheme.
  • 1Define data provenance in the scenario.
  • 1Explain the mechanism using missing-value convention.
  • 1Test the conclusion with data-quality rule.
  • 1State a qualified decision and review signal.
A strong response identifies the relevant evidence, uses missing-value convention as the explanatory link and tests the recommendation through data-quality rule. It ends by stating that clean-looking data are not necessarily representative, correctly labelled or fit for the intended decision.
Sia tip — The four points are AskSia-authored practice weighting only.
Glossary

Key terms

data provenance
Recorded information about where data came from and how they were collected, transformed and used. Use this definition when the task is to build a cleaning pipeline whose assumptions and row-level effects can be audited.
missing-value convention
An explicit encoding and interpretation of absent, unknown, inapplicable or withheld data. Use this definition when the task is to build a cleaning pipeline whose assumptions and row-level effects can be audited.
data-quality rule
A testable expectation about validity, consistency, completeness, uniqueness or timeliness of data. Use this definition when the task is to build a cleaning pipeline whose assumptions and row-level effects can be audited.
FAQ

Data Cleaning, Provenance and Quality FAQ

What is the main task in Data Cleaning, Provenance and Quality?

Build a cleaning pipeline whose assumptions and row-level effects can be audited.

How do data provenance and missing-value convention work together?

Use data provenance to establish the object or condition, then use missing-value convention to explain how it changes the outcome being analysed.

What must a DATA1002 answer qualify here?

Clean-looking data are not necessarily representative, correctly labelled or fit for the intended decision.

How should I revise Data Cleaning, Provenance and Quality?

Retrieve data provenance, missing-value convention and data-quality rule, apply them to a changed case, and correct the first point where the evidence no longer supports the conclusion.

Study strategy

Exam move

Reconstruct the relationship among data provenance, missing-value convention and data-quality rule; complete the chapter application without notes; then test the result against this limit: Clean-looking data are not necessarily representative, correctly labelled or fit for the intended decision.

Working through Data Cleaning, Provenance and Quality in DATA1002? Sia is AskSia’s AI Data Science tutor — ask any DATA1002 Data Cleaning, Provenance and Quality question and get a clear, step-by-step explanation grounded in how DATA1002 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 16 of your The University of Sydney subjects - and 1,000+ Bibles across every Australian university.
Sia - your DATA1002 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works
Unlock the full DATA1002 Bible + 16 The University of Sydney subjects
$0.99 Trial