Unit 6 of 8 · about 4 hours · explain

Missingness and selection mechanisms

A carefully analyzed observed sample can still answer the wrong population question. Missingness and selection determine whose outcomes enter the analysis and what assumptions are needed to recover the estimand.

You'll be able to

  • Define MCAR, MAR and MNAR relative to observed and missing variables, without assuming MAR is testable from incomplete data.
  • Derive why complete-case means can be biased under MAR and when standardization or inverse-observation weighting identifies the population mean.
  • Explain selection as conditioning on a collider and demonstrate a misleading association in a small table and a simulation.

Covers

Missingness and selection mechanisms
1

Read

In this order, only the parts listed

0 of 2 done

  1. What If: missingness as an exchangeability questionCausal Inference: What If

    August 19, 2026 edition: Section 2.2, p. 18, margin definitions of MCAR, MAR and MNAR; Sections 2.3 and 2.4, pp. 19 to 25, standardization and weighting

    Translate missing counterfactuals to an observation indicator for a missing outcome with fully observed . Reuse the conditioning logic, not the book's treatment notation without adaptation.

  2. What If: selection and censoringCausal Inference: What If

    Sections 8.1 to 8.3, pp. 109 to 115; Section 8.5, pp. 117 to 120, identification conditions for selection adjustment

    Skip Technical Point 8.1 on hazard ratios. Keep the collider examples and exchangeability, positivity and consistency requirements; leave longitudinal censoring models for later.

2

Focus on

  • With when is observed and fully observed, MCAR means is independent of . MAR means is independent of conditional on . MNAR allows observation probability to depend on unobserved even given . These labels depend on what is actually observed.
  • Under MAR, , but need not equal . Standardize conditional observed means using the population distribution of , not the distribution among complete cases.
  • If and MAR holds, . Integrability and the correct observation probabilities give an unbiased Horvitz-Thompson mean; normalized weights are a different finite-sample estimator. Small probabilities can create large variance.
  • Selection on a common effect can associate otherwise independent variables. Randomization before selection does not guarantee exchangeability after treatment-dependent attrition. MAR and adequate adjustment require substantive assumptions, not just a successful regression fit.
Common mistakes · 3
  • Equating MAR with an unbiased complete-case marginal mean. Observed covariates can influence both missingness and outcomes.
  • Claiming missingness mechanisms are identifiable just from the observed outcomes. Different unobserved-outcome laws can produce the same incomplete data.
  • Fixing MNAR by weighting only on X. The assumed observation model omits dependence on missing Y, so the MAR proof no longer applies.
3

Try it yourself

Closed-book, before checking anything

By hand let , and observation probability . Derive and under MAR. If instead observation probability is , the MNAR complete-case mean is 0.2. Check in NumPy float64: rng = numpy.random.default_rng(46); N = 100000; first X = (rng.random(N) < 0.5).astype(numpy.float64), next Y = (rng.random(N) < 0.2 + 0.6*X).astype(numpy.float64), then U = rng.random((3, N)). Define R0 = U[0] < 0.5, R1 = U[1] < 0.8 - 0.6*X, R2 = U[2] < 0.8 - 0.6*Y. Full, MCAR, MAR and MNAR means are 0.4983, 0.4977, 0.3171 and 0.1971. The MAR weighted mean numpy.mean(R1*Y/(0.8 - 0.6*X)) is 0.4922. Require maximum absolute deviation below 0.01 from [0.5, 0.5, 0.32, 0.2, 0.5]. Finally enumerate independent fair bits and with and selection : among selected cases the mean is 1/2 and the mean is 1, despite zero causal effect. No random draw is needed for this four-row counterexample. Seeded values came from NumPy 2.5.4.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Derive the MAR complete-case mean in the toy model.Answer

    . MAR makes and conditionally independent given , so . Dividing by 0.5 gives 0.32, not the population mean 0.5.

  2. 2.Where are MAR and positivity used in the weighting proof?Answer

    Positivity makes defined on every population stratum. MAR gives . Therefore . Averaging over the population distribution identifies , provided the terms are integrable.

  3. 3.Why does the selected four-row table show a spurious treatment association?Answer

    Selection excludes . Among selected cases, must be 1; among selected cases, remains equally likely 0 or 1. The path opens when conditioning on . Changing does not change , so the causal effect is still zero.

You're done when

You derive the two biased complete-case means, pass the five simulation checks, and identify the collider and the exact failed assumption in a new missingness scenario.

Only when you can do this without notes.

Leads to

Notes

Resources · 1 for this unit, 7 more in the section
  • Causal Inference: What IfHernán & Robins · required

    Read Chapters 1-3 and 6-8 for causal effects, DAGs, confounding, selection bias and identification reasoning.

Also in this section

  • MIT 14.310x - Data Analysis for Social ScientistsMIT OpenCourseWare · primary

    Follow lectures 11-15, 17-20 and 22 with matching slides and problem sets for inference, regression, causality and experiment design.

  • MIT 18.05 - Inference practiceMIT OpenCourseWare · required

    Use classes 17-20, 22-24 and 26 with their problem sets for tests, intervals, bootstrap and regression.

  • Patterns of trustworthy experimentationMicrosoft ExP · required

    Read after the course to connect health checks, guardrails and statistical interpretation to production launch decisions.

  • Always Valid InferenceJohari, Pekelis & Walsh · depth

    Use the introduction and worked motivation to understand optional-stopping failure. Reproducing the theory is outside this gate.

  • Probabilistic Machine Learning: An IntroductionKevin P. Murphy · reference

    Use the April 18, 2025 online edition: Sections 4.2.3 to 4.2.5, 4.5.1 and 4.6.4.1 for Bernoulli and Gaussian MLE/MAP; the definition and central intervals in 4.6.6; 2.1.2 and 11.7.4 for predictive uncertainty. Exercises 4.1 and 4.2 supply derivation practice.

  • Permutation nulls and false discovery controlSciPy · reference

    Read permutation_test Notes, Unpaired statistics, for exchangeability and exact partitions; false_discovery_control Notes and the named thrombolysis example for Bonferroni and Benjamini-Hochberg. Use as an independent implementation oracle, not as a substitute for stating assumptions.

  • Probability calibration: the statistical propertyscikit-learn · reference

    Read the opening calibration definition, the proper-scoring-rule note, and Section 1.16.1, Calibration curves. Stop before recalibration methods; the later Classical ML unit implements them.