Search

Search papers and lessons

Unconfoundedness

Level 3 · 14 min read

Unconfoundedness says that once measured traits are known, treatment is unrelated to the outcomes each person would have had, so comparisons within groups of similar people can estimate the effect.

On this page

  • Colour = topic mix
  • Probability
  • Discrete math
  • Calculus
  • Inference
  • Epidemiology
  • Methods
  • ReadReady to readNot yet

TL;DR

Unconfoundedness is the assumption that, once you know a set of traits measured before treatment, whether a unit is treated has nothing more to do with the outcomes it would have had. If it holds, a fair comparison is possible inside each group of similar units, and averaging those comparisons gives the Average Treatment Effect. The assumption concerns outcomes that are never observed, so data alone cannot prove it.

Builds on: Potential Outcomes, Conditional Independence, Confounding Bias · Leads to: Propensity Score, Heterogeneous Treatment Effects

Where it's used

Job-training evaluations. A city offers a training course to residents who apply. Its records hold each applicant's age, education and prior earnings, and later earnings. The records do not show motivation. If the recorded traits capture why people applied, unconfoundedness holds, and an analyst can compare trained and untrained residents who share those traits. If motivation also drove both applying and later earnings, the assumption fails and the comparison overstates the course. In 1986 Robert LaLonde compared an experimental estimate of a US job-training program with the estimates that nonexperimental methods gave, and found that many of the common methods landed far from the experimental answer.

Hospital registries. A registry records each patient's age, disease stage and other traits, and which of two treatments was given. Clinicians chose treatments partly on these traits. An analyst who believes the recorded traits are all that mattered can adjust for them, and the adjusted comparison estimates the treatment's effect for the patients in the registry. This is a statistical illustration only, and says nothing about which treatment a patient should choose.

Online platforms. A video service wants to know whether a new feature raises watch time. Users who open the feature were already heavy users. Logs record past activity, device, country and sign-up date, all measured before the feature was offered. If the team believes those logs capture what drives both feature use and watch time, adjusting for them is the natural analysis.

How it works

Take eight students in a tutoring study. Four have a low prior test score and four a high one. Call the prior score XX. Each student has two potential outcomes, a test score with tutoring Y(1)Y(1) and a score without it Y(0)Y(0). The numbers are invented for the walkthrough, and they are set so that the assumption holds: every student in a group has the same two numbers.

GroupStudentsY(1)Y(1) with tutoringY(0)Y(0) withoutEffect
Low prior score458508
High prior score482802

Tutoring is assigned by prior score: 1 of the 4 low-score students is tutored, and 3 of the 4 high-score students are tutored. Nothing else about a student changes the chance of being tutored in this example.

  1. Set up the two groups. There are four low-score and four high-score students, so each group is half the population. Every student has a score with tutoring and a score without it. Check: the table has 8 students in two equal groups.
  2. Assign tutoring. One low-score student and three high-score students are tutored. Four students are tutored in total. Check: 1+3=41 + 3 = 4 tutored students, and 4 untutored.
  3. Record the scores we see. The tutored students show 58 (one low-score student) and 82, 82, 82 (three high-score students). The untutored students show 50, 50, 50 (low) and 80 (high). Each student's other outcome is never seen. Check: each student shows exactly one score.
  4. Compare the two arms without adjusting. The tutored mean is (58+82+82+82)/4=304/4=76(58 + 82 + 82 + 82)/4 = 304/4 = 76. The untutored mean is (50+50+50+80)/4=230/4=57.5(50 + 50 + 50 + 80)/4 = 230/4 = 57.5. The difference is 76−57.5=18.576 - 57.5 = 18.5 points. Check: 18.5 is far above the true average effect, which step 6 shows is 5.
  5. Compare inside each group. Low-score students: tutored 58 minus untutored 50 is 8. High-score students: 82 minus 80 is 2. Here every student in a group has the same outcomes, so the within-group comparison is exact. In real data that fairness must come from the assumption. Check: 8 and 2 are the two group effects in the table.
  6. Average over the groups. Weight each group by its population share of one half: 0.5×8+0.5×2=50.5 \times 8 + 0.5 \times 2 = 5 points. Check: the average of the eight individual effects, (8+8+8+8+2+2+2+2)/8=40/8=5(8+8+8+8+2+2+2+2)/8 = 40/8 = 5, is the same.

The naive answer in step 4 went wrong because the tutored group was mostly high-score students, and high-score students would have scored well either way. The within-group comparisons in step 5 remove that mix.

flowchart LR
  X["Measured prior score X"] --> T["Tutoring T"]
  X --> Y["Test score Y"]
  T --> Y

The diagram shows the assumed world. The prior score is the only common cause of tutoring and the score, and no arrow from an unmeasured factor reaches both. Unconfoundedness is the statement that this picture is right.

The math

Setup and the assumption

Let T=1T = 1 if a unit is treated and T=0T = 0 if not. Let Y(1)Y(1) and Y(0)Y(0) be its potential outcomes, and let XX be a vector of covariates measured before treatment. The observed outcome is

Y=T Y(1)+(1−T) Y(0).Y = T\,Y(1) + (1 - T)\,Y(0).
Definition: Unconfoundedness

Treatment is unconfounded given XX when

(Y(1),Y(0))⊥T∣X.(Y(1), Y(0)) \perp T \mid X.

In words, once XX is known, treatment is independent of both potential outcomes. The condition is also called ignorability, or selection on observables. A companion condition, overlap, requires that every value of XX has a positive chance of both treatment and control: 0<P(T=1∣X=x)<10 \lt P(T = 1 \mid X = x) \lt 1 for every xx that occurs.

Step 5 in symbols: the arms match inside a stratum

Under unconfoundedness, for each value xx and each t∈{0,1}t \in \{0, 1\}, the treated and untreated units have the same average potential outcome:

E[Y(t)∣T=1,X=x]=E[Y(t)∣T=0,X=x]=E[Y(t)∣X=x].\mathbb{E}[Y(t) \mid T = 1, X = x] = \mathbb{E}[Y(t) \mid T = 0, X = x] = \mathbb{E}[Y(t) \mid X = x].

This is the conditional-independence statement applied to an average. It follows that the observed mean in each arm estimates the potential-outcome mean for that stratum: E[Y∣T=1,X=x]=E[Y(1)∣X=x]\mathbb{E}[Y \mid T = 1, X = x] = \mathbb{E}[Y(1) \mid X = x], and similarly for t=0t = 0. The effect in the stratum is

τ(x)=E[Y∣T=1,X=x]−E[Y∣T=0,X=x].\tau(x) = \mathbb{E}[Y \mid T = 1, X = x] - \mathbb{E}[Y \mid T = 0, X = x].

In the table, τ(low)=58−50=8\tau(\text{low}) = 58 - 50 = 8.

Step 6 in symbols: averaging over the population

By the law of total expectation, the average treatment effect is a weighted average of the stratum effects:

τ=E[Y(1)−Y(0)]=∑xP(X=x) τ(x).\tau = \mathbb{E}[Y(1) - Y(0)] = \sum_x P(X = x)\,\tau(x).

Substituting the observable form of τ(x)\tau(x) from the stratum formula above gives

τ=∑xP(X=x)(E[Y∣T=1,X=x]−E[Y∣T=0,X=x]).\tau = \sum_x P(X = x)\Bigl(\mathbb{E}[Y \mid T = 1, X = x] - \mathbb{E}[Y \mid T = 0, X = x]\Bigr).

Every term on the right is computed from observed data, so τ\tau is identified. With shares P(X=low)=P(X=high)=1/2P(X = \text{low}) = P(X = \text{high}) = 1/2, the formula gives 0.5×8+0.5×2=50.5 \times 8 + 0.5 \times 2 = 5, as in step 6 of the walkthrough.

Step 4 in symbols: why the naive comparison fails

The naive difference E[Y∣T=1]−E[Y∣T=0]\mathbb{E}[Y \mid T = 1] - \mathbb{E}[Y \mid T = 0] averages each arm over a different mix of XX:

E[Y∣T=t]=∑xP(X=x∣T=t) E[Y∣T=t,X=x].\mathbb{E}[Y \mid T = t] = \sum_x P(X = x \mid T = t)\,\mathbb{E}[Y \mid T = t, X = x].

The weights P(X=x∣T=t)P(X = x \mid T = t) differ between the arms when treatment depends on XX. In the table, P(low∣T=1)=1/4P(\text{low} \mid T = 1) = 1/4 and P(low∣T=0)=3/4P(\text{low} \mid T = 0) = 3/4. So E[Y∣T=1]=14×58+34×82=76\mathbb{E}[Y \mid T = 1] = \tfrac14 \times 58 + \tfrac34 \times 82 = 76 and E[Y∣T=0]=34×50+14×80=57.5\mathbb{E}[Y \mid T = 0] = \tfrac34 \times 50 + \tfrac14 \times 80 = 57.5. The naive difference is 18.518.5, and the tutoring effect is 5.

Overlap

The formula in step 6 needs, for every xx, both treated and untreated units to compare. Here P(T=1∣X=low)=1/4P(T = 1 \mid X = \text{low}) = 1/4 and P(T=1∣X=high)=3/4P(T = 1 \mid X = \text{high}) = 3/4, both strictly between 0 and 1. If one stratum had P(T=1∣X=x)=1P(T = 1 \mid X = x) = 1, its untreated mean would not exist, and the stratum could not be estimated from data.

Worked examples

Example
Example 1: one stratum, tiny

Take only the low-score students. Ana and Ben are tutored and score 58 and 60. Cara and Dan are not tutored and score 50 and 52. Assume unconfoundedness holds within this stratum.

  1. The tutored mean is (58+60)/2=59(58 + 60)/2 = 59.
  2. The untutored mean is (50+52)/2=51(50 + 52)/2 = 51.
  3. The difference is 59−51=859 - 51 = 8 points.

Interpretation: 8 points is an estimate for low-score students as a group. It is not Ana's effect, which needs her untutored score, and that is never seen. The estimate is fair only because the assumption says which students were tutored is unrelated to how they would have scored.

Example
Example 2: the eight students, with weights

Use the table from the walkthrough. Instead of comparing within groups, weight each observed student by the inverse of the chance of the arm they were in. Those chances are the propensity scores (see Propensity Score): e(low)=1/4e(\text{low}) = 1/4 and e(high)=3/4e(\text{high}) = 3/4.

  1. Treated weights are 1/e1/e: 4 for low-score students and 4/34/3 for high-score students.
  2. Untreated weights are 1/(1−e)1/(1 - e): 4/34/3 for low-score students and 4 for high-score students.
  3. Weighted tutored mean, using inverse probability weighting: 18 [ 4×58+3×43×82 ]=18(232+328)=70\frac{1}{8}\,[\,4 \times 58 + 3 \times \tfrac43 \times 82\,] = \frac{1}{8}(232 + 328) = 70.
  4. Weighted untutored mean: 18 [ 3×43×50+4×80 ]=18(200+320)=65\frac{1}{8}\,[\,3 \times \tfrac43 \times 50 + 4 \times 80\,] = \frac{1}{8}(200 + 320) = 65.
  5. The difference is 70−65=570 - 65 = 5 points.

Interpretation: the weights make the tutored students look like the whole group. The single tutored low-score student counts four times, which stands in for the four low-score students, and the weights of the tutored students sum to 8, the group size. The answer agrees with the stratified answer of 5.

Example
Example 3: when the assumption fails

Keep the eight students, but change one thing. The tutored low-score student, Pia, is more motivated than the others, and would have scored 54 without tutoring (and 62 with it). Motivation is not recorded. Her effect is still 8 points, and the other low-score students still have effect 8. The high-score group is unchanged. So the true average effect is still 0.5×8+0.5×2=50.5 \times 8 + 0.5 \times 2 = 5.

  1. Within the low-score group, the tutored mean is Pia's 62. The untutored students show 50, 50 and 50, with mean 50.
  2. The low-score comparison is 62−50=1262 - 50 = 12, which is 4 points above the true 8.
  3. The high-score comparison is 82 minus 80, which is 2, as before.
  4. The adjusted estimate is 0.5×12+0.5×2=70.5 \times 12 + 0.5 \times 2 = 7.
  5. The estimate is 2 points too high. The cause is Pia's higher untreated baseline, 54 against 50, which is the unrecorded motivation.

Interpretation: the recorded prior score is balanced in the sense that each group is defined by it, yet the answer is wrong. Unconfoundedness failed because a factor that was not measured affected both who was tutored and the score.

Try it: using this changed table, compute the naive difference in means, with the tutored group's mean taken over Pia's 62 and the three high-score students' 82.

Answer: the tutored mean is (62+82+82+82)/4=308/4=77(62 + 82 + 82 + 82)/4 = 308/4 = 77, and the untutored mean is still 57.557.5. The naive difference is 19.519.5 points, which is 14.5 points above the true 5.

Common mistakes and tradeoffs

It is tempting to think that unconfoundedness can be checked with the data. In fact it concerns the outcome each person would have had without treatment, and that outcome is never seen for the treated. One can check that measured traits balance between arms within each stratum, and that overlap holds. But in Example 3 the measured traits still balance, and a hidden factor still breaks the assumption. Passing those checks is necessary, not sufficient.

It is tempting to think that more controls always help. In fact a variable that the treatment itself affects, such as a score measured after tutoring starts, should not be used for adjustment. Adjusting for it can remove part of the effect or introduce bias. Only traits measured before treatment belong in XX.

It is tempting to think that once the assumption holds, any adjustment works. In fact the stratum comparison needs overlap. If no untreated students resemble some group of treated students, the comparison has nothing to match against, and the estimate rests on a model's extrapolation.

Use unconfoundedness when the traits that drive treatment are recorded before treatment, and when an analyst can argue that no important driver is missing. Avoid relying on it when a known factor, such as motivation, is not recorded and plausibly drives both treatment and outcome.

SituationBetter choice
Treatment can be randomisedA randomised trial, which balances unmeasured traits in expectation
Treatment depends on an unmeasured factor that changes over timeDifference-in-Differences, which compares changes before and after treatment
An instrument moves treatment for reasons unrelated to outcomesInstrumental Variables
Many measured traits, few units per stratumPropensity Score weighting or matching, or a doubly robust estimator
Doubt about whether the assumption holdsA sensitivity analysis, which asks how strong a hidden factor would need to be to change the answer

History

In 1923 Jerzy Neyman wrote down potential outcomes for the yield of each plot under each treatment, the notation this lesson uses. Donald Rubin's 1974 paper extended that framework to observational studies, where treatment is chosen rather than randomised, and the framework is now usually called the Rubin causal model. The condition that treatment depends only on measured traits came to be called ignorability, and it was the basis for the methods that followed.

In 1983 Paul Rosenbaum and Donald Rubin showed that when treatment is unconfounded given XX, conditioning on the Propensity Score, the probability of treatment given XX, is enough. That result made the assumption practical, because a single number could replace many covariates. The assumption spread through economics, epidemiology and political science, and it was tested against experiments. LaLonde's 1986 comparison of job-training estimates is a well-known case where nonexperimental adjustment was checked against a randomised benchmark.

Recap

  • Unconfoundedness says that once measured traits XX are known, treatment is unrelated to the potential outcomes.
  • Under it, the outcome means in each stratum of XX estimate the stratum effect, and weighting the stratum effects by population shares gives the average treatment effect.
  • The naive comparison fails when the mix of XX differs between treated and untreated, which is the usual case in observational data.
  • Overlap is needed, so that every stratum contains both treated and untreated units.
  • The assumption cannot be settled from outcome data. It has to be argued from knowledge of how treatment was chosen.
  • Read next: Propensity Score for summarising many covariates in one number, Inverse Probability Weighting for the weighting estimator, and Heterogeneous Treatment Effects for effects that differ across the groups of XX.

Check yourself

QuestionWrite the statement of unconfoundedness in symbols and in words.Show answer

In symbols, (Y(1),Y(0))⊥T∣X(Y(1), Y(0)) \perp T \mid X. In words: once the measured covariates XX are known, whether a unit is treated is independent of both of its potential outcomes. Knowing the traits, treatment tells you nothing more about what the unit's outcomes would have been.

QuestionA stratum holds 30 percent of the population. Its tutored mean is 70 and its untutored mean is 64. A second stratum holds the other 70 percent and has effect 4. What is the average treatment effect?Show answer

The first stratum's effect is 70−64=670 - 64 = 6. The average is 0.3×6+0.7×4=1.8+2.8=4.60.3 \times 6 + 0.7 \times 4 = 1.8 + 2.8 = 4.6 points.

QuestionWhy can a balance check on the measured covariates pass even when unconfoundedness is false?Show answer

Balance on XX compares treated and untreated units with the same recorded traits. It says nothing about an unrecorded factor, such as motivation, that also affects the outcome. Such a factor can differ between arms within every stratum of XX while the recorded traits look balanced, as in Example 3, so the check cannot detect it.

QuestionA school offers tutoring to students whose parents sign up. Its data include prior grades, household income, and attendance measured at the end of the term, after tutoring began. Which variables belong in the adjustment set, and why?Show answer

Prior grades and household income were measured before tutoring, and they plausibly affect both sign-up and test scores, so they belong in XX. End-of-term attendance was measured after tutoring began and may itself be affected by tutoring, so it should be left out. Parents' sign-up may also reflect unrecorded motivation, so the analyst should state that unconfoundedness is an assumption, and check it with a sensitivity analysis.

Sources