Explore Library
Quiz

Preventing Data Leakage in Imputation

Learn why imputation statistics must be computed from training data only to avoid leakage.

You are filling missing values in a numeric feature using the mean. To avoid data leakage in a train/test split, how should the mean be computed and applied?