When data are missing at random (MAR), suppose an outcome is observed only when , where the observation probability depends only on fully observed covariates . Why is the unweighted complete-case sample mean biased for , and how do you prove that the inverse-probability-weighted (IPW) estimator is unbiased?
Foundations, Missing data
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can prove unbiasedness of inverse-probability weighting via iterated expectation and recognise its positivity and variance caveats.
Key idea
The complete-case mean estimates , which differs from whenever predicts both and ; weighting each observed point by cancels the sampling probability inside .
Steps
- Show why complete-case analysis is biased: the unweighted average over observed rows converges to . Whenever varies with and correlates with , , so .
- Prove unbiasedness of by linearity of expectation and the law of total expectation, conditioning first on :
- Substitute the MAR condition : Averaging over gives .
- State the practical limitations: positivity () is required — if some subgroup is never observed, IPW cannot recover it — and when is very small for some observed rows, blows up the variance of (often motivating stabilised weights or doubly robust estimators).
Common mistakes
- Using IPW when data are MNAR ( still depends on ): then and the cancellation fails.
- Forgetting that in practice is unknown and must be estimated (e.g., via logistic regression), and failing to check for extreme weights near .
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Foundations: A colleague standardises all features using the mean and standard deviation of the entire dataset, selects the 20 features most correlated with the label , and then runs 5-fold cross-validation to tune and report the accuracy of a classifier. Is the resulting CV accuracy unbiased, how do you fix the pipeline, and how badly can full-dataset feature screening distort pure random noise?
Next in Foundations: Suppose the fold errors in cross-validation each have variance and every pair has correlation . Derive the variance of their average. Evaluate it for and with , and explain why this is used to argue that leave-one-out has high variance?