Typical leaky variables

ModelLeaky variableWhy it leaks
Credit originationDays past due, collections flagThey only exist after the loan is granted and goes bad
Credit originationCharge-off amount, account closing dateThey describe the outcome itself
ChurnCancellation request date, retention offer acceptedThey are recorded during the exit
FraudChargeback flagIt is the confirmation of the fraud

Warning signs

Worked example (illustrative figures)

Gini in testGini in production
With a leaky variable (collections flag)0.920.41
Without it0.480.46

The leaky model looked far better in testing and was worse in production. The clean model kept almost all its power once deployed.

How to prevent it

How Thorcast.AI helps

Frequently asked questions

What is the difference between target leakage and overfitting?

Overfitting means the model memorizes noise in the training data. Target leakage means it uses information it will not have at decision time. Both inflate test results, but leakage can survive a correct train–test split.

Can target leakage happen with external data?

Yes, if the external data is taken as it is today instead of as it was at the moment of each decision.

How do I check a model for leakage?

Look at the most important variables and ask, for each one, whether you would know its value at the moment of the decision. Then compare test and recent out-of-time results.

Related terms and guides