Suppose a feature X has mean μ and variance σ2, and each entry is missing independently with probability p (MCAR). If missing entries are replaced by μ, what are the mean and variance of the imputed feature Ximp, how does this affect Corr⁡(Ximp,Y) with a target Y, 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 p of entries with constants shrinks the variance to (1−p)σ2 and attenuates correlations by 1−p; adding a missingness indicator lets models learn a separate offset when missingness is informative.

Steps

  1. Write the imputed variable using the observation indicator R∈{0,1} with P(R=1)=1−p independent of (X,Y): Ximp=RX+(1−R)μ,Ximp−μ=R(X−μ).
  2. Compute the mean and variance: E[Ximp−μ]=E[R]E[X−μ]=0, so E[Ximp]=μ. Using R2=R and independence, Var⁡(Ximp)=E[R2(X−μ)2]=E[R]Var⁡(X)=(1−p)σ2. On a finite dataset with 20% missingness, for example, observed [2,4,6,8] has mean 5 and population variance 5, whereas the imputed [2,4,6,8,5] has variance (1−0.2)×5=4.
  3. Compute the correlation with Y: Cov⁡(Ximp,Y)=E[R(X−μ)(Y−E[Y])]=(1−p)Cov⁡(X,Y), so Corr⁡(Ximp,Y)=(1−p)Cov⁡(X,Y)(1−p)σ2 σY=1−p Corr⁡(X,Y). Correlations are shrunk towards zero, and standard errors computed as if all n points were real are too narrow.
  4. 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 M=1−R allows linear or neural models to learn a dedicated shift γM for missing cases (while tree models can route missing values directly to a learned default child).

Common mistakes

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 K categories, why does keeping all K 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 X,Z∼N(0,Id) be two independent d-dimensional standard Gaussian vectors. Compute E[∥X−Z∥22] and SD⁡(∥X−Z∥22) as functions of d. Why does the ratio SD⁡(∥X−Z∥22)/E[∥X−Z∥22] tend to 0 as d→∞, and how does this break distance-based methods like k-NN?