Growth and prospecting × Data engineering
Business lens: Growth and prospecting · Technology lens: Data engineering
Reading scope: Original synthetic teaching. Primary links support selected background, not invented business outcomes or implemented organisational systems.
Prospecting features need a time boundary
A business wants to prioritise enquiries using historical records. Data engineering should preserve which information was available at the moment a decision could have been made. Begin with the decision time, the source event and the outcome the organisation later observed. Computers can build feature tables, but a table can accidentally include knowledge from after the decision. That produces an apparently useful predictor which could not have operated honestly in the real workflow. The learner should connect data preparation to business chronology so a model or dashboard assists prospective decisions rather than retrospectively explain outcomes using information that was unavailable when action was required.
Define eligibility before evaluating the model
A feature record should identify enquiry, decision time, source time, transformation version and availability rule. Data recorded after the declared decision point is not eligible merely because it is now in the database. Evaluation documentation supports separating development and evaluation evidence; it does not verify the current feature table. Local SQL background provides a practice route, not a deployed data pipeline. Preserve excluded rows and reasons. Consultation with sales should clarify when a note or stage transition became known. A join to a final outcome table can create leakage even if every key and type is technically valid. Structural correctness and decision-time legitimacy are different checks.
Calculate eligible feature coverage
The invented feature ledger contains twenty-four records. Eighteen have source evidence available by the stipulated decision time, four are known only afterward and two have unknown timing. Eligible coverage is 18/24 = 75%; known-later share is 4/24 ≈ 16.67%; unknown share is 2/24 ≈ 8.33%. Six records are excluded from the declared decision-time table. These counts concern eligibility, not predictive accuracy or sales value. The later four should not be silently used to improve apparent evaluation, while the unknown two require context before admission. A clean eighteen-record table still needs suitable labels, model evaluation and business review before it can support a prospecting decision.
Coordinate historical interpretation and feature use
Sales explains the timing of the original enquiry and subsequent notes. Source owners confirm when information was available. Data engineers implement selection and versioning. Analysts design evaluation under the relevant decision boundary, while management decides the permitted use of the resulting aid. Consultation should distinguish a stored timestamp from actual availability if the two differ. A handoff should carry the feature's origin, eligibility rule and excluded population rather than just a prepared CSV. The organisation needs a correction path when late data is mistakenly treated as earlier evidence. Neither an accurate join nor a high retrospective score can substitute for that chronology check.
Practice a leakage-aware ledger
Use the data-quality lesson to build the twenty-four-record table with source and decision times. Select one known-later feature and explain why it is excluded even if it strongly correlates with the outcome. Select an unknown-timing record and identify the missing evidence. An optional local SQL specification can express the eligibility rule without accessing real customers. Keep the six excluded records in a separate review view. The supplemental worksheet computes the stated shares only; it trains no model and executes no production pipeline. The exercise teaches how data engineering supports honest forward-looking growth decisions by retaining time context and the limits of any prepared feature set.
Levels and chronology questions
Who defines decision time? Whom does leaked evaluation mislead? Whose source event supplies the feature? What was actually available? Where is exclusion recorded? When did the note become known? Why is a valid join insufficient? Which record lacks timing? How is eligibility reproduced? Foundation study distinguishes retrospective and prospective information. Undergraduate study computes the three shares and exclusion count. Postgraduate study critiques timestamps, joins and evaluation boundaries. Research study proposes a bounded historical-feature investigation with explicit chronology. The portfolio should connect source engineering to defensible business assistance, keeping later knowledge and unresolved timing outside a decision-time dataset until the required evidence is supplied.
Study questions and answers
Compute eligible, known-later and unknown shares.
75%, approximately 16.67% and 8.33% respectively.
Marking guide: Credit eligible 75%, known-later 16.67%, unknown 8.33%, preserving timing states.
How many records are excluded under the declared rule?
Six: four later and two unknown.
Marking guide: Credit six exclusions: four later and two unknown under the stated rule.
Does a valid join prove decision-time eligibility?
No. Source availability and the declared decision boundary require separate checks.
Marking guide: Valid relational join is not evidence that information was available at decision time; require timing checks.
Practice task
Create a decision-time feature ledger with excluded records, provenance and a timing-correction route.
Practice bridge
- Extend data quality with source availability and explicit decision-time eligibility.
- Preserve later and unknown records outside the feature view; optional SQL uses invented data.
Boundary: No model training, real-customer data access or production feature pipeline is executed.
Sources and further reading
- Python — sqlite3
Scope: Selected local database background; the worksheet does not implement a prospect or learning database.
Access: Selected public reading without an account; certificates, paid service entitlements and hosted execution not checked. - scikit-learn — Cross-validation
Scope: Selected validation and leakage background; no trained model or performance benefit is claimed.
Access: Selected public reading without an account; certificates, paid service entitlements and hosted execution not checked.