KJHUDJFV LLCResearch & Development

Educational reading · Data leakage

Keep tomorrow out of the inputs

Was the information available at prediction time?

General educational information; not a description of company activities.

An invisible shortcut

In predictive modeling, leakage occurs when development uses information that would be unavailable when a prediction is needed. An assessment can then appear more convincing than the intended application warrants. The issue concerns the timing and movement of information, not simply whether a column looks relevant.

Hypothetical example

Imagine predicting whether equipment will need attention tomorrow. A field containing the next day’s completed repair record could make the prediction seem easy. That record would not exist when the forecast was issued. Its usefulness in the historical table does not make it a valid forecasting input.

Inspect the preparation too

Information can cross boundaries through preprocessing as well as through obvious input fields. Settings estimated from assessment records can influence the fitted model indirectly. Keep learning steps within the appropriate training portion, then apply those learned settings to the records reserved for assessment.

Draw the information boundary

For every input, ask when it becomes available and how it was produced. For every transformation, ask which records shaped its settings. Writing down those answers provides a practical way to examine an impressive score before interpreting it as evidence about future performance.

Further reading: IBM: Data leakage.