The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Graduate Econometrics

Graduate · Module 11 of 15

Potential outcomes and selection on observables

The potential outcomes framework, randomized experiments and randomization inference, unconfoundedness and overlap, regression adjustment, matching, propensity scores, inverse probability weighting, and doubly robust estimation.

By Maximus S. Waldbauer · About 6 hours, including the problem set and quiz.

The crash course’s last unit introduced the potential outcomes framework. Modules 11 to 13 build it into a full toolkit for causal inference. The framework, associated with Neyman and Rubin, defines a causal effect by comparing what would happen to the same unit with and without a treatment, and turns every causal question into a missing-data problem: we only ever see one of the two outcomes.

This module starts with the cleanest case, the randomized experiment, including how to analyze it efficiently and how to do exact randomization inference. It then studies what can be done without randomization when treatment is as good as random after conditioning on observed characteristics: regression adjustment, matching, the propensity score, inverse probability weighting and doubly robust estimation. It ends with the uncomfortable question every such study faces: what if something important was not observed?

By the end of this module you will be able to

What this module covers

  1. Potential outcomes and causal estimands
  2. Randomized experiments
  3. Selection on observables
  4. Weighting and doubly robust estimation
  5. Can we trust unconfoundedness?
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 11.1 Free lesson

Potential outcomes and causal estimands

For each unit i and a binary treatment Di, define two potential outcomes: Yi(1), the outcome if treated, and Yi(0), the outcome if not. The unit’s causal effect is τi = Yi(1) − Yi(0). We observe only Yi = DiYi(1) + (1 − Di)Yi(0). This is the fundamental problem of causal inference: for every unit, one potential outcome is missing.

Because individual effects are unobservable, we target averages:

EstimandDefinitionAnswers
ATEE[Y(1) − Y(0)]What if everyone were treated rather than no one?
ATTE[Y(1) − Y(0) | D = 1]What did treatment do for those who got it?
ATUE[Y(1) − Y(0) | D = 0]What would it do for those who did not?
CATEE[Y(1) − Y(0) | X = x]How does the effect vary with characteristics?

The notation assumes the stable unit treatment value assumption (SUTVA): a unit’s outcome depends only on its own treatment (no spillovers or interference), and there is only one version of the treatment. A discount offered to some café customers may affect others through queues, which violates SUTVA unless the design accounts for it.

Selection bias

The naive comparison of treated and untreated means decomposes as

E[Y | D = 1] − E[Y | D = 0] = ATT + { E[Y(0) | D = 1] − E[Y(0) | D = 0] }

The second term is selection bias: how the treated would have differed from the untreated even without treatment. Adding and subtracting E[Y(0) | D = 1] is the whole proof.

Worked example: Personal trainers at a gym

Members who hire a personal trainer average 9 visits a month; others average 6. The naive difference is 3.

Suppose the trainer’s true effect for those who hire one (ATT) is 1 visit. Then the selection bias is 2: trainer clients would have visited 8 times a month anyway, because motivated members are the ones who hire trainers.

No amount of data on visits alone separates the 1 from the 2. That requires a design (randomization) or assumptions (this module, Modules 12 and 13).

Key ideas

  • Causal effects compare potential outcomes Y(1) and Y(0); only one is ever observed.
  • ATE, ATT, ATU and CATE answer different questions and differ when effects vary.
  • Naive difference = ATT + selection bias; SUTVA rules out spillovers and multiple versions of treatment.

Practice questions: Potential outcomes and selection on observables

Try these, then open each answer to check your work.

  1. 1.The difference in means between treated and untreated units equals
    1. the ATE plus noise
    2. the ATT plus selection bias
    3. the ATU minus selection bias
    4. always zero in large samples
    Show answer

    Answer: B. E[Y | D = 1] − E[Y | D = 0] = ATT + {E[Y(0) | D = 1] − E[Y(0) | D = 0]}.

  2. 2.The average treatment effect on the treated is
    1. E[Y(1) − Y(0)]
    2. E[Y | D = 1] − E[Y | D = 0]
    3. E[Y(1) − Y(0) | X]
    4. E[Y(1) − Y(0) | D = 1]
    Show answer

    Answer: D. ATT averages unit effects over those who were treated.

  3. 3.Why does randomization identify the ATE?
    1. It makes treatment independent of potential outcomes
    2. It makes effects the same for everyone
    3. It removes noise from outcomes
    4. It ensures overlap only
    Show answer

    Answer: A. With D ⊥ (Y(0), Y(1)), the untreated mean is an unbiased estimate of E[Y(0)] for everyone.

Problems with step-by-step solutions

  1. 4.Gym members who use a fitness app average 12 visits a month; others average 8. If those app users would have averaged 10 without the app, find the ATT and the selection bias.
    Show step-by-step solution
    1. ATT = E[Y(1) | D = 1] − E[Y(0) | D = 1] = 12 − 10 = 2.
    2. Selection bias = E[Y(0) | D = 1] − E[Y(0) | D = 0] = 10 − 8 = 2. Naive difference 4 = 2 + 2.
  2. 5.Prove the decomposition E[Y | D = 1] − E[Y | D = 0] = ATT + selection bias.
    Show step-by-step solution
    1. E[Y | D = 1] = E[Y(1) | D = 1] and E[Y | D = 0] = E[Y(0) | D = 0].
    2. Add and subtract E[Y(0) | D = 1]: the difference = {E[Y(1) | D = 1] − E[Y(0) | D = 1]} + {E[Y(0) | D = 1] − E[Y(0) | D = 0]}.

Get the full module

The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).

Join the waitlist Try a full module free

More practice: free practice questions for this course.