Skip to content
The Econometric
Argument
Ian Helfrich PhD ↗

Identify · Chapter 6 of 12

Measurement error, missing data, and selection

Objective: Trace measurement, missingness, and conditioning decisions into the estimand and its identification.

What changes when training hours are self-reported and some output records disappear?

Measurement error · Missingness · Selection · DAGs

Before you begin: Conditional expectation (chapter 2), regression (chapter 3), and potential outcomes (chapter 5).
About 30 minutes, plus the exercises.

Variable definitions

The firm’s records contain a column called training hours. One employee reports hours scheduled, another reports hours attended, and a third includes time practicing afterward. Output is recorded only for employees still present at the next performance review.

Those details change the problem. They define the measured exposure, determine whose outcomes enter the dataset, and may create associations that would be absent in the full workforce.

An estimator operates on the variables supplied to it. A careful measurement model explains how those variables relate to the quantities in the question.

Classical measurement error

Suppose true, centered training intensity is DD, but the recorded value is

D∗=D+η.D^*=D+\eta.

Assume the outcome obeys Y=βD+εY=\beta D+\varepsilon. Require finite second moments, Var⁡(D)>0\operatorname{Var}(D)>0, and

Cov⁡(D,ε)=0,Cov⁡(D,η)=0,Cov⁡(η,ε)=0.\begin{gathered} \operatorname{Cov}(D,\varepsilon)=0,\qquad \operatorname{Cov}(D,\eta)=0,\\ \operatorname{Cov}(\eta,\varepsilon)=0. \end{gathered}

These are classical-error restrictions relevant to this single-regressor linear calculation. The population regression slope using the recorded variable is

b∗=Cov⁡(D∗,Y)Var⁡(D∗)=βVar⁡(D)Var⁡(D)+Var⁡(η)=λβ,\begin{aligned} b^* &=\frac{\operatorname{Cov}(D^*,Y)}{\operatorname{Var}(D^*)}\\ &=\frac{\beta\operatorname{Var}(D)} {\operatorname{Var}(D)+\operatorname{Var}(\eta)} =\lambda\beta, \end{aligned}

where λ\lambda is the reliability ratio. Under these assumptions, 0<λ≤10<\lambda\le1, so the coefficient is attenuated toward zero.

If the true effect is 2 output units per training hour, true-hour variance is 9 hours squared, and error variance is 3 hours squared, then λ=9/12=0.75\lambda=9/12=0.75 and the recorded-hours slope is 1.5.

The units help catch mistakes: the reliability ratio is dimensionless; the resulting coefficient retains output units per hour.

This result has boundaries. Correlated reporting errors can move a coefficient in either direction. With several regressors, error in one variable can distort several coefficients without a simple attenuation pattern. Independent additive noise in the outcome leaves this simple population slope unchanged, although it generally increases sampling variance. A validation sample, repeat measurements with justified error assumptions, or a defensible instrument may supply information about measurement quality.

Missing outcomes change the population

Let S=1S=1 indicate that output is observed, and let XX contain fully observed baseline information. With one potentially missing outcome, useful distinctions are:

  • Missing completely at random: SS is independent of the pair (Y,X)(Y,X). Independence from YY and from XX taken one at a time is weaker, because it still allows response to depend on how the two combine.
  • Missing at random given XX: SS is independent of YY conditional on XX.
  • Missing not at random: response still depends on the missing outcome after conditioning on the observed information in the model.

“At random” in the second phrase does not mean every employee has the same response probability. Experience may predict response strongly. The restriction is that, within the observed information, response does not further select on the outcome.

Suppose experienced and new employees each constitute half the workforce, with target-attainment rates 0.8 and 0.2. If response rates are 0.8 and 0.2 respectively, and response is independent of attainment within experience groups, respondents are 80% experienced. Their attainment rate is 0.68; the workforce rate is 0.5.

Why inverse response weighting can recover the mean

Define π(X)=P(S=1∣X)\pi(X)=P(S=1\mid X). Assume S⊥Y∣XS\perp Y\mid X, positive response probability wherever the target population has support, and integrability. Then

E[SYπ(X)]=E[E[SY∣X]π(X)]=E[π(X)E[Y∣X]π(X)]=E[Y].\begin{aligned} E\left[\frac{SY}{\pi(X)}\right] &=E\left[\frac{E[SY\mid X]}{\pi(X)}\right]\\ &=E\left[\frac{\pi(X)E[Y\mid X]}{\pi(X)}\right]\\ &=E[Y]. \end{aligned}

The recorded product SYSY contributes zero for nonrespondents, so their unobserved outcomes do not need to be filled in to implement the sample counterpart. In practice π\pi is often estimated, adding estimation error and model dependence. Very small response probabilities produce unstable weights.

If response depends on unobserved output within XX, the factorization in the second line fails. Missing-at-random assumptions generally cannot be verified from observed outcomes alone. Sensitivity analysis should vary the unresolved outcome distribution, not simply run another imputation package.

Three reasons a variable might matter

A causal graph is an explicit proposal about how variables arise. An arrow denotes a possible direct causal relationship in the proposed model; absence of an arrow is a substantive restriction. Graphs help expose the assumptions behind a control list.

Common cause: X→DX\to D and X→YX\to Y. Prior experience might influence both participation and output. Adjustment can close this confounding path, provided the selected variables are sufficient and treatment has overlap within their values.

Mediator: D→M→YD\to M\to Y. Training may improve skill, which raises output. Controlling for post-training skill removes part of the pathway included in a total-effect question. The remaining coefficient does not automatically identify a direct effect; mediator–outcome confounding introduces further requirements.

Collider: D→S←U→YD\to S\leftarrow U\to Y, with SS the inclusion indicator defined above. Inclusion in a performance review, and therefore in the outcome data, may depend on training and latent readiness. Conditioning on review inclusion can associate randomized training with readiness.

Here is an exact collider example. Let DD and UU be independent fair zero-one variables, let Y=UY=U, and include employees if S=1S=1 whenever D=1D=1 or U=1U=1. Training has no effect on output. Among included employees with D=0D=0, everyone has U=1U=1, so their mean output is 1. Among included employees with D=1D=1, half have U=1U=1, so their mean is 0.5. The selected-sample difference is −0.5-0.5.

from itertools import product

# Four equally likely types; D has no causal role in Y.
rows = [{"d": d, "y": u}
        for d, u in product((0, 1), repeat=2)
        if d == 1 or u == 1]

means = {d: sum(r["y"] for r in rows if r["d"] == d)
            / sum(r["d"] == d for r in rows)
         for d in (0, 1)}
print(means[1] - means[0])  # -0.5

Documenting variable construction

For each analysis variable, record its substantive definition, units, measurement window, source system, transformations, missing-value codes, and whether it precedes assignment. For each exclusion, record the rule and the number removed by treatment group. Retain raw values separately from derived fields.

Then ask a harder question: could the outcome or treatment have affected the variable used to select these rows? A clean-looking dataset can represent a badly selected comparison.

Exercises

1. True-hour variance remains 9, but measurement-error variance rises from 3 to 9. Under the classical assumptions above, what happens to the slope when β=2\beta=2?

Work through the solution

Reliability becomes 9/(9+9)=0.59/(9+9)=0.5, so the slope becomes 1. The calculation applies to the stipulated classical-error model. It is not evidence that an observed coefficient should be doubled without external information about reliability.

2. Should a total-effect analysis of training control for an employee’s post-training certification score?

Work through the solution

Usually that requires changing the question or giving a specific causal argument. If training affects certification and certification affects output, the score is a mediator. Adjusting for it blocks part of the total effect. If unobserved motivation affects both certification and output, conditioning on certification can also introduce selection along a collider path. A baseline certification score has a different temporal and causal role.

Further reading

The measurement investigation asks an earlier question: what makes an observation a measure of the thing we care about? Enter through a narrative essay, work the undergraduate examples, or examine the doctoral companion’s proofs and research proposals. Its two browser experiments separate ordinal recoding, empirical uncertainty, and disagreement about values.

Rubin’s Inference and Missing Data established the missingness framework. Cunningham’s Directed Acyclic Graphs and Hernán and Robins’s Causal Inference: What If develop graphical reasoning about selection and adjustment.

Write the claim and the assumption doing the most work. Saved only in this browser on this device; avoid sensitive information. Private browsing or clearing site data can erase it.

Notes are optional.

“Explored” records your choice, not a score or a claim of mastery.