Suppose a feature has mean and variance , and each entry is missing independently with probability (MCAR). If missing entries are replaced by , what are the mean and variance of the imputed feature , how does this affect with a target , and why is adding a binary missingness indicator often better?
Foundations, Missing data
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can quantify the distributional distortion caused by mean imputation and explain why a missingness indicator helps.
Key idea
Mean imputation preserves the mean under MCAR, but replacing a fraction of entries with constants shrinks the variance to and attenuates correlations by ; adding a missingness indicator lets models learn a separate offset when missingness is informative.
Steps
- Write the imputed variable using the observation indicator with independent of :
- Compute the mean and variance: , so . Using and independence, On a finite dataset with missingness, for example, observed has mean and population variance , whereas the imputed has variance .
- Compute the correlation with : , so Correlations are shrunk towards zero, and standard errors computed as if all points were real are too narrow.
- Explain the missingness indicator: if data are MAR or MNAR rather than MCAR (for instance, missing lab tests signal healthier or sicker patients), mean imputation forces missing rows to behave like average observed rows. Adding a binary column allows linear or neural models to learn a dedicated shift for missing cases (while tree models can route missing values directly to a learned default child).
Common mistakes
- Imputing with the mean of the *entire* dataset (train + test) instead of fitting the mean strictly on the training fold.
- Claiming the univariate OLS slope shrinks under MCAR: the factors cancel in the univariate slope, though multivariate regression slopes and correlations still distort and MAR/MNAR breaks it completely.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Foundations: For a categorical variable with categories, why does keeping all one-hot indicator columns together with an intercept make unregularised linear regression singular, why does ridge regression remove this singularity, and what precaution is required when using target encoding instead?
Next in Foundations: Let be two independent -dimensional standard Gaussian vectors. Compute and as functions of . Why does the ratio tend to as , and how does this break distance-based methods like -NN?