7 routes42 sections324 units

Unit 4.6 · about 4 h

77 / 324

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.

  • explain

You can now

  • 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

Study, in this order

2 steps

  1. What If: missingness as an exchangeability question
    Causal 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

    Depth · Translate missing counterfactuals to an observation indicator \(R\) for a missing outcome \(Y\) with fully observed \(X\). Reuse the conditioning logic, not the book's treatment notation without adaptation.

  2. What If: selection and censoring
    Causal 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

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

Focus on

  • With \(R = 1\) when \(Y\) is observed and \(X\) fully observed, MCAR means \(R\) is independent of \((X, Y)\). MAR means \(R\) is independent of \(Y\) conditional on \(X\). MNAR allows observation probability to depend on unobserved \(Y\) even given \(X\). These labels depend on what is actually observed.
  • Under MAR, \(\mathbb{E}[Y \mid X, R = 1] = \mathbb{E}[Y \mid X]\), but \(\mathbb{E}[Y \mid R = 1]\) need not equal \(\mathbb{E}[Y]\). Standardize conditional observed means using the population distribution of \(X\), not the distribution among complete cases.
  • If \(p(X) = P(R = 1 \mid X) > 0\) and MAR holds, \(\mathbb{E}[RY/p(X) \mid X] = \mathbb{E}[Y \mid X]\). 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.

Reproduce closed-book

By hand let \(X \sim \operatorname{Bernoulli}(0.5)\), \(P(Y = 1 \mid X) = 0.2 + 0.6X\) and observation probability \(p(X) = 0.8 - 0.6X\). Derive \(\mathbb{E}[Y] = 0.5\) and \(\mathbb{E}[Y \mid R = 1] = 0.32\) under MAR. If instead observation probability is \(0.8 - 0.6Y\), 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 \(A\) and \(U\) with \(Y = U\) and selection \(S = (A \text{ or } U)\): among selected cases the \(A = 1\) mean is 1/2 and the \(A = 0\) 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.

Traps

  • 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.

Practice

The section mini-project covers this: compare complete-case, standardized and inverse-observation-weighted means under MCAR, MAR and MNAR; include a zero-overlap failure and a treatment-dependent selection DAG, with a stated sensitivity analysis rather than claiming MNAR is solved.

Self-test

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

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

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

Completion criterion

Stop 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.

Mark passed, then open 4.7 Only mark this when you can do it without notes.

Leads to

Resources for this unit

  • Causal Inference: What If
    Hernán & Robinsrequiredtheory
    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 Scientists
    MIT OpenCourseWareprimarycourse
    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 practice
    MIT OpenCourseWarerequiredpractice
    Use classes 17-20, 22-24 and 26 with their problem sets for tests, intervals, bootstrap and regression.
  • Patterns of trustworthy experimentation
    Microsoft ExPrequiredapplication
    Read after the course to connect health checks, guardrails and statistical interpretation to production launch decisions.
  • Always Valid Inference
    Johari, Pekelis & Walshdepthdepth
    Use the introduction and worked motivation to understand optional-stopping failure. Reproducing the theory is outside this gate.
  • Probabilistic Machine Learning: An Introduction
    Kevin P. Murphyreferencetheory
    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 control
    SciPyreferencereference
    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 property
    scikit-learnreferencereference
    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.

Quick find

Search Michi

Type to search every route, section, unit, topic and resource.

Enter opens the first result Esc closes

Reference

Keyboard shortcuts

n
Continue to the first unit not passed
j / k
Next / previous unit
1 2 3
Toggle learned, practised, passed
/
Open search
?
Show this help
Esc
Close open panels