Research and evidence × Data engineering
Business lens: Research and evidence · Technology lens: Data engineering
Reading scope: Original fictional teaching. Selected documentation and same-author checks are not independent editorial validation.
The pipeline constructs the study dataset
A fictional researcher combines weekly sales extracts to examine how a promotion affects repeat purchasing. The data arrives in several formats, and a pipeline converts it into one analytical table. Research and data engineering meet at the relationship between raw events, canonical records and the population studied. Define a transaction, a customer reference and a week boundary before aggregation. A fast pipeline can reproduce a systematically wrong dataset if duplicates, late events or unit changes are misunderstood. Treat ingestion rules as part of the research method. Preserve enough provenance to explain how a reported count was produced and which inputs were excluded.
Make quality states explicit
Finance understands posted transactions, Marketing defines promotion exposure and the data engineer manages transformations. A missing customer reference may prevent repeat-purchase analysis without making the sale itself nonexistent. Keep rejected, quarantined and accepted records distinct. Do not replace every missing amount with zero, which creates a monetary observation absent from the source. Declare how corrections and replayed events are handled. Reprocessing a week should not append the same canonical sales again. The research dataset should have a version and an eligibility rule, while the raw event history retains the evidence needed to investigate an exception.
Worked ingestion and recovery counts
The invented weekly input contains 120 event rows. Ninety have usable values and distinct transaction identifiers, fifteen have missing customer references, ten have invalid amount formats and five repeat already represented transaction events. After separating the five repeats, there are 115 distinct candidate transactions. Initially usable coverage is 90/115 ≈ 78.26%, compared with 90/120 = 75% of raw events. A documented correction recovers ten customer references and six amount values, bringing usable transactions to 106. Coverage becomes 106/115 ≈ 92.17%; nine candidates remain unresolved. A replay of the corrected input should reproduce 106 canonical transactions rather than append another 106.
Investigate the missing population
The unresolved candidates may cluster in a particular payment channel or store. If those channels experienced the promotion differently, the usable dataset can bias the research comparison. Describe quality by relevant groups where the data permits, without guessing absent values. Keep corrections tied to verifiable source evidence, not inferred from a desired analytical result. A contribution might explain how a specific recording practice limits repeat-purchase evaluation. The pipeline’s structural checks help make that limitation visible. They do not prove that corrected customer references are substantively right or that a before-and-after sales difference isolates the promotion’s effect.
Practice a research pipeline ledger
Extend the existing data-quality-checks lesson with the 120-event partition and a canonical transaction specification. Show how five repeated events differ from twenty-five unresolved candidates. Record sixteen legitimate recoveries, reproduce both initial coverage figures and the later 92.17%, and state the nine remaining exceptions. Your portfolio should include a replay check and a group-level missingness question. This extends an existing bounded exercise; it adds no newly executed pipeline fixture or real sales analysis. Any future implementation should compare actual canonical counts with the declared expected values and preserve disagreements rather than editing the input to make a test appear successful.
Enquiry and level-specific tasks
Who corrects a reference, and Whom should the researcher consult about formats? Whose transactions are excluded? What is canonical, Where is raw evidence retained, and When can late data enter? Why distinguish events from candidates? Which missingness pattern threatens the comparison? How is replay checked? Foundation learners separate a repeat event from a new sale. Undergraduate learners calculate coverage and design state checks. Postgraduate learners critique selection, late arrivals and unsupported corrections. DBA/research learners specify a reproducible pipeline method and investigate a bounded organisational recording mechanism. For revision, explain why 106 usable transactions still leave nine distinct candidates unresolved and why replay should preserve the canonical count without erasing the original event history.
Study questions and answers
How many distinct candidate transactions exist?
120−5 repeat events = 115 distinct candidates; initially 90 are usable.
Marking guide: Credit 115 distinct candidates after five repeated events; ninety initially usable.
What is coverage after sixteen recoveries?
106/115 ≈ 92.17%, leaving nine unresolved candidates.
Marking guide: Credit 106/115=92.17%, nine unresolved after sixteen recoveries.
What should a corrected-input replay produce?
The same 106 canonical transactions under the stated rules, not an appended total of 212.
Marking guide: Unchanged-rule replay must preserve 106 canonical transactions, not append to 212.
Practice task
Design a provenance-preserving research ingestion ledger with quality states and replay checks.
Practice bridge
- Design a provenance-preserving research ingestion ledger with quality states and replay checks.
- Reproduce the worked arithmetic, change one assumption and label invented evidence separately from actual practice observations.
Boundary: Original fictional exercise connected to an existing bounded or guided lesson. No new executable fixture, external platform execution or catalogue lab claimed.
Sources and further reading
- W3C PROV Model Primer
Scope: Selected entity, activity and agent explanations checked; not a complete provenance implementation review.
Access: Free public primary documentation