← Economics
Universityeconometrics

Causal Inference: From Correlation to Credible Comparisons

Use potential outcomes to define causal effects, diagnose selection bias in observational comparisons, and see how random assignment can create a credible counterfactual—within clear limits.

Before this, you should know:

Two job seekers apply for the same training program. One enrolls and later earns more; the other does not enroll and earns less. Did the training raise the first person's earnings? We cannot answer by looking only at those two outcomes. Perhaps training helped. Or perhaps the person who enrolled already had stronger networks, more time, or greater confidence—and would have earned more without the course.

This is the gap between a relationship and a cause. A regression can summarize how outcomes differ with participation. Causal inference asks a harder question: compared with what would have happened to the same people, at the same time, without the intervention? That unobserved alternative is the counterfactual.

Define the causal question before estimating it

Imagine a specific intervention: access to a six-month job-training program. For each person ii, define two potential outcomes:

The individual's causal effect would be

τi=Yi(1)−Yi(0).\tau_i = Y_i(1)-Y_i(0).

But for a given person, we observe only one of these outcomes. If they enroll, we see Yi(1)Y_i(1) and not Yi(0)Y_i(0). If they do not enroll, we see Yi(0)Y_i(0) and not Yi(1)Y_i(1). This is the fundamental problem of causal inference: the same unit cannot be observed in both states at once. It is not missing data that we can recover by measuring the person more carefully; it is a comparison that cannot coexist in the same realized world.

Since individual effects cannot be directly observed, researchers often ask for an average. The average treatment effect (ATE) in a target population is

ATE=E[Yi(1)−Yi(0)].ATE = E[Y_i(1)-Y_i(0)].

This definition forces us to be precise. What counts as the program? Which earnings measure and time horizon matter? Which people make up the population? “Does training work?” is not one fully specified causal question until we answer those questions.

Why a treated-versus-untreated gap can mislead

Suppose people choose whether to enroll. Let Di=1D_i=1 if person ii receives the program and Di=0D_i=0 otherwise. The observed outcome is

Yi=DiYi(1)+(1−Di)Yi(0).Y_i = D_iY_i(1)+(1-D_i)Y_i(0).

The average outcome difference between participants and nonparticipants is

E[Yi∣Di=1]−E[Yi∣Di=0].E[Y_i\mid D_i=1]-E[Y_i\mid D_i=0].

This comparison does not automatically equal a treatment effect. Add and subtract the participants' average untreated potential outcome, E[Yi(0)∣Di=1]E[Y_i(0)\mid D_i=1]:

E[Yi∣Di=1]−E[Yi∣Di=0]=E[Yi(1)−Yi(0)∣Di=1]+(E[Yi(0)∣Di=1]−E[Yi(0)∣Di=0]).\begin{aligned} E[Y_i\mid D_i=1]-E[Y_i\mid D_i=0] ={}&E[Y_i(1)-Y_i(0)\mid D_i=1]\\ &+\left(E[Y_i(0)\mid D_i=1]-E[Y_i(0)\mid D_i=0]\right). \end{aligned}

The first term is the average treatment effect on participants (ATT). The second is a selection difference: how participants and nonparticipants would have differed even if neither group had received the program. We cannot observe that term directly, because it compares potential outcomes that are missing for one group. If people who enroll were already more likely to find high-paying work, the raw wage gap can overstate the program's effect. If people with especially severe barriers are more likely to enroll, it could understate it.

This is one way to describe confounding: a prior factor, such as motivation or previous skills, helps determine both who receives treatment and what outcome they experience. Adding variables to a regression can address some observed differences, but it does not guarantee that every relevant confounder was measured or handled correctly. A regression coefficient is not a counterfactual just because it has several controls.

A design that creates a comparison: random assignment

Suppose instead that eligible applicants are assigned to the program by a fair lottery. Assignment is now independent of their potential earnings, in expectation. With full compliance—everyone assigned to training receives it, and nobody assigned to the comparison group does—the difference in average outcomes between the assigned groups estimates the ATE for the study population:

E[Yi∣Di=1]−E[Yi∣Di=0]=E[Yi(1)]−E[Yi(0)]=ATE.E[Y_i\mid D_i=1]-E[Y_i\mid D_i=0] = E[Y_i(1)]-E[Y_i(0)] = ATE.

Why does this help? Before the lottery, a participant and a nonparticipant may differ systematically. After random assignment, the two groups are formed by chance rather than by each person's expected earnings. Across repeated assignments, their potential outcomes balance on average, including characteristics the researcher did not measure. In any one finite study, chance imbalances can remain; the uncertainty tools from the previous lesson help quantify how much the estimate may vary.

Two causal diagrams compare self-selected training, where prior motivation affects both program participation and earnings, with random assignment, where a lottery determines training and prior motivation no longer determines assignment. A note reminds the reader that each person has two potential earnings outcomes but only one is observed.

In observational data, a prior factor can create a backdoor association between treatment and outcome. Random assignment breaks that selection link in expectation, but does not make every other study limitation disappear.

Two kinds of “random” that answer different questions

Random sampling concerns who is selected from a population to participate in a study. A probability sample can help the results describe that population. Random assignment concerns which condition each study participant receives. It can make the treatment and comparison groups credible counterfactuals for one another.

One does not imply the other. Researchers might randomly assign volunteers to a program but have a sample that is not representative of all workers. That can support a causal conclusion for the volunteers while leaving open whether the same effect applies elsewhere. Conversely, a random survey of workers can describe who enrolled and what their wages are, but if enrollment was self-selected, the survey alone does not identify the program's causal effect.

Random assignment also has limits. It may be infeasible or unethical. People may not take the treatment they were assigned, control participants may obtain it elsewhere, outcomes may be missing, or one person's treatment may affect another person's outcome. Those complications change what effect is identified and what assumptions are needed. A randomized study can be internally credible without being precise, representative of every population, or perfectly implemented.

When researchers cannot run an experiment, they need a defensible source of comparison and explicit assumptions. The next lesson will develop natural experiments and applied research designs—including difference-in-differences, instrumental variables, and regression discontinuity—as ways to reason about such comparisons. These methods do not magically remove confounding; each relies on a different argument for why its comparison is credible.

Worked example

A city has 200 eligible job-training applicants. A lottery assigns 100 to a six-month certification program and 100 to a comparison group. Assume everyone follows their assignment, nobody in the comparison group receives the program, and earnings are measured for everyone six months later. Average monthly earnings are $3,200 in the program group and $3,000 in the comparison group. What is the estimated effect, and what can we conclude?

Step 1 — define the intervention and outcome. The treatment is receiving the specified six-month certification program. The outcome is monthly earnings measured six months after assignment. The study population is the 200 eligible applicants—not automatically every worker in the city.

Step 2 — calculate the difference in group means. The program group's mean is $3,200 per month; the comparison group's mean is $3,000. The estimated effect is

ATE^=3,200−3,000=200 dollars per month.\widehat{ATE} = 3{,}200-3{,}000 = 200 \text{ dollars per month}.

In this randomized study, the estimate says that assignment to and receipt of the program raised average monthly earnings by $200 for the study group, subject to the assumptions stated in the problem. The lottery makes the comparison group's average outcome a credible estimate of what the program group would have earned without the program, on average.

Step 3 — do not overstate the result. The estimate does not mean every participant gained $200; some may gain more, some less, and some may not benefit. It is a sample estimate with uncertainty, not an exact law. It also does not establish that the same program would produce the same average effect for workers who did not apply, in a different city, or under a different labor market. And if assignment did not match actual receipt, this simple difference would estimate the effect of assignment, not automatically the effect of completing the training.

Where this leads

The causal question is a comparison between two potential outcomes, only one of which we observe for each person. Self-selection makes a simple treatment-control gap mix the effect with differences the groups already had. Random assignment can remove that selection in expectation for the study population, while leaving precision, implementation, and generalization as separate questions. Next we will study how economists make credible comparisons when treatment was not assigned by a researcher—and what assumptions those designs require.

Check yourself

4 questions

  1. For a particular job seeker, what is the fundamental problem of causal inference?

  2. People who choose a job-training program earn more afterward than people who do not enroll. Why is the difference not automatically the program's causal effect?

  3. Which statement correctly distinguishes random sampling from random assignment?

  4. A randomized job-training study estimates a positive average effect for its applicants. Which conclusion needs additional evidence or assumptions?