Checking Data Before It Enters a Decision
8 min read
Lesson objectives
- Choose and apply a data quality test for a specified use.
- Record the evidence for a correction and its effect in an audit trail.
- Distinguish missing rows from missing values within a row.
Please sign in to use all the tools
Once you sign in, the reading tools are yours: larger or smaller text, typeface, line spacing, focus mode, highlighting and bold, and notes saved to your account and gathered in My study.
Quality depends on what you need to do
A bus log may contain the route number and the time the bus departed. You can use it to count recorded trips if all of them are present. To measure how late each departure was, you also need its scheduled time. Before you judge the quality of a table, find out what the decision requires. Quality is fitness for a given purpose, and each aspect of quality matters in proportion to its effect on that purpose.
- Completeness
Completeness tells you how much of what you expected is present. One check looks for missing fields, such as start times for requests. Another asks whether all the rows arrived. The custodian can compare the branches expected in the file with the branches that sent it. You can receive an entire file of populated rows and still be missing a batch from one branch. The two kinds of absence have different consequences, and each needs its own check.
Uniqueness calls for one row per key where that is what the table is designed to hold. Two similar rows may be a duplicate entry. They could also be two people requesting the same service. Revisit the key and grain before removing a record. When two rows for the same key disagree, check whether the system keeps revisions. If so, the effective version tells you which value was current on the reporting date.
Consistency asks whether values agree where they ought to. A request should not close before it was created once the timestamps share the same time basis. Validity asks whether the value follows the accepted format or permitted set of values. A timestamp of two in the afternoon may be valid and still inaccurate if the worker clicked a button long after finishing. Test accuracy against a separate record that reflects what happened, such as a device log or a trustworthy original form.
Timeliness concerns whether the records are recent enough for their use. The person responsible for the refresh checks this at an agreed reporting cutoff. A branch dashboard covering requests up to ten a.m. may work for a review at ten if all events arrived. At noon, a supervisor assigning the next shift may need a newer version. The pace of work determines whether the delay matters.
Specify the check before fixing anything
Give the table, fields, and acceptance rule so someone else can run the check. Say how you will count failures and inspect examples. For one service log, the rule may be that the processing start is at or after arrival once both are on the same time basis. You can repeat the check after a change. The person responsible for the data can relate a failure to the way a timestamp was created.
Investigate negative waits using time-zone settings and a separate record. Convert timestamps on different time bases. A wrong recorded date requires evidence for a correction.
Keep the original file and a cleaning register with the working copy. Record the field, old and new values, key, rationale, evidence and time. Recompute the metric to assess the effect and leave unresolved discrepancies visible.
Keep the meaning of a missing value as you received it. A zero-minute wait can occur if a worker starts immediately. A blank tells you that this extract has no recorded time. If the team estimates missing values during an exploratory analysis, name the assumption and keep those estimates distinct from observations. Show how a plausible range would affect the finding. Whether estimation helps depends on the decision and what produced the missingness. When a whole group is absent, an average of everyone else can misrepresent that group entirely.
Check an afternoon service file
| Dimension | Check |
|---|---|
| Batch completeness | Compare expected and received branches |
| Time accuracy | Check the recorded start against the original form |
Decide when to stop repairing
Prioritize faults that affect the decision. A time conversion that misclassifies late cases takes precedence over a branch spelling correction.
If action depends on falling below 70 percent, a possible range of 63–83 leaves the decision unresolved. A range of 72–76 establishes that the rate exceeds the threshold. Disclose missingness and seek more precision for later trend analysis if needed.
For repeated missing batches, identify the first affected period and send examples to the custodian. Compare received and expected IDs on every extract. Give the custodian responsibility for the alert.
Check your understanding
Lesson summary
Data quality is fitness for the question you are answering. Check completeness of rows and fields, uniqueness at the required grain, agreement across fields, validity, accuracy, and timeliness. Investigate exceptions against the process that produced them. Retain the original extract, document repairs, and calculate their effect. Treat a missing observation as unknown unless you have evidence for a value. The next module uses these checks when comparing waits and service rates across periods and branches. Validity concerns conformance to rules, while accuracy concerns agreement with reality. Prioritize corrections according to their effect on the measure and action. The reviewer compares the expected and observed distinct-key counts before release.