Tutorials › Propensity Score Matching and Instrumental Variables › Worked Example Comparing ATE, ATT, and ATC

Estimands: ATE, ATT, ATO and Estimand Shifts After Matching · Tutorial 73 of 699

Worked Example Comparing ATE, ATT, and ATC

Calculate ATE, ATT, and ATC from hypothetical potential outcomes, and identify how treatment-group composition changes the population each effect describes.

Intermediate 10 min read

What You'll Learn

  • Define ATE, ATT, and ATC using potential outcomes and specify the population each averages over.
  • Calculate each estimand from covariate-specific treatment effects and population counts.
  • Explain how treated and control covariate distributions change ATT and ATC.
  • Verify the relationship between ATE, ATT, and ATC using treatment prevalence.
  • Distinguish an estimand calculated from known potential outcomes from one estimated using observed data.
  • Identify common errors involving subgroup weights, units, and causal interpretation.

Why the Same Treatment Can Have Different Average Effects

A treatment can have different effects for different kinds of people. Even when two populations share the same covariate-specific effects, their average effects can differ if they contain different proportions of the covariate groups. This is why an average treatment effect is not fully described by its outcome scale alone: the population over which the effects are averaged matters.

This tutorial compares three summaries on an additive outcome scale: the average treatment effect (ATE) for the full population, the average treatment effect among treated units (ATT), and the average treatment effect among control units (ATC). The calculations use hypothetical data in which both potential outcomes are specified. In real observational data, only one potential outcome is observed for each unit; the examples isolate the estimand calculation from the separate problem of estimating it.

Definition: Let \(A_i=1\) indicate that unit \(i\) receives treatment and \(A_i=0\) indicate control. Let \(Y_i(1)\) and \(Y_i(0)\) be that unit's potential outcomes under treatment and control. Its individual treatment effect on the additive scale is \(\tau_i=Y_i(1)-Y_i(0)\). For a population of \(N\) units, the ATE is \(\frac{1}{N}\sum_{i=1}^{N}\tau_i\), the ATT is \(\frac{1}{N_1}\sum_{i:A_i=1}\tau_i\), and the ATC is \(\frac{1}{N_0}\sum_{i:A_i=0}\tau_i\), where \(N_1\) and \(N_0\) are the numbers treated and controlled, respectively.

These definitions refer to three different averaging populations. The ATE averages over everyone in the target population; the ATT averages over those who received treatment; and the ATC averages over those who received control. If the outcome is, for example, a score measured in points, all three effects are in points. A positive value means treatment increases the outcome on average for the specified population, while a negative value means it decreases the outcome on average.

For a covariate \(X\) with groups \(x\), write \(\tau(x)=E[Y(1)-Y(0)\mid X=x]\). In a finite dataset with \(n_x\) units in group \(x\), \(n_{1x}\) treated units, and \(n_{0x}\) control units, the corresponding group-weighted calculations are:

$$ \widehat{\mathrm{ATE}}=\sum_x \frac{n_x}{N}\widehat{\tau}(x),\qquad \widehat{\mathrm{ATT}}=\sum_x \frac{n_{1x}}{N_1}\widehat{\tau}(x),\qquad \widehat{\mathrm{ATC}}=\sum_x \frac{n_{0x}}{N_0}\widehat{\tau}(x). $$

Here \(\widehat{\tau}(x)\) is the stipulated or calculated average treatment effect in group \(x\). The hats in these finite-data calculations indicate quantities calculated from the displayed data; they do not by themselves imply that an effect has been estimated without bias from an observational study.

Worked Example: Covariate Composition Changes the Average

Worked Example: Covariate Composition Changes the Average

Consider a hypothetical population of 100 people. The covariate \(X\) identifies two age groups. The treatment effects below are assumed constant within each age group. The table gives the numbers of treated and control people as well as the effect for each group.

Age groupPopulation countTreated countControl countEffect (score points)
Younger6015452
Older403558
Total1005050

ATE. In the full population, younger people make up \(60/100\) and older people make up \(40/100\). Therefore,

$$ \widehat{\mathrm{ATE}}=\frac{60}{100}(2)+\frac{40}{100}(8)=1.2+3.2=4.4\text{ score points}. $$

ATT. Among treated people, the weights are \(15/50\) for younger people and \(35/50\) for older people. Thus,

$$ \widehat{\mathrm{ATT}}=\frac{15}{50}(2)+\frac{35}{50}(8)=0.6+5.6=6.2\text{ score points}. $$

ATC. Among controls, the weights are \(45/50\) for younger people and \(5/50\) for older people. Thus,

$$ \widehat{\mathrm{ATC}}=\frac{45}{50}(2)+\frac{5}{50}(8)=1.8+0.8=2.6\text{ score points}. $$

All three summaries use the same age-specific effects. Their difference comes from the weights: older people, who have the larger stipulated effect, are more common among the treated; younger people are more common among controls. The result does not mean treatment has a different effect merely because a person is treated or controlled. It means these particular groups average the effects over different covariate compositions.

Why the Weighting Formula Works

The covariate-group formula is a weighted average: each group effect is multiplied by that group's share of the target population, and the contributions are added. For the ATT, the relevant share is the group's share among treated people, not its share in the full population. The ATC uses the group's share among controls. This is a direct consequence of averaging individual effects within the chosen population.

For example, partition the treated people into covariate groups. Group \(x\) contributes \(n_{1x}\widehat{\tau}(x)\) to the sum of their effects. Dividing the sum across all treated people by their total count \(N_1=\sum_x n_{1x}\) gives:

$$ \frac{\sum_x n_{1x}\widehat{\tau}(x)}{N_1} =\sum_x \frac{n_{1x}}{N_1}\widehat{\tau}(x). $$

The same argument with \(n_x\) or \(n_{0x}\) in place of \(n_{1x}\) yields the ATE or ATC. The weights in each formula sum to one, so each quantity is an average rather than a total. If a group's weight is zero in the target population, that group's effect does not contribute to that target's average.

Worked Example: Calculating Directly From Individual Effects

Worked Example: Calculating Directly From Individual Effects

Suppose a hypothetical dataset contains six people. For illustration, both potential outcomes are listed, although ordinarily only one would be observed for each person. Outcomes are measured in days without symptoms.

PersonTreatment status \(A_i\)\(Y_i(1)\)\(Y_i(0)\)\(\tau_i\)
1112102
2115105
30981
4014104
511183
601385

First calculate each individual effect by subtracting the control potential outcome from the treatment potential outcome. For person 4, for example, \(\tau_4=14-10=4\) days. The six effects are \(2,5,1,4,3,5\) days.

The full-population average is

$$ \widehat{\mathrm{ATE}}=\frac{2+5+1+4+3+5}{6}=\frac{20}{6}=3.333\text{ days}. $$

The treated people are persons 1, 2, and 5, with effects \(2,5,3\). Therefore, \(\widehat{\mathrm{ATT}}=(2+5+3)/3=10/3=3.333\) days. The control people are persons 3, 4, and 6, with effects \(1,4,5\). Therefore, \(\widehat{\mathrm{ATC}}=(1+4+5)/3=10/3=3.333\) days. These three averages happen to be equal in this dataset. Equality is possible, but it is not guaranteed by the definitions.

A Useful Identity and a Composition Check

In a single finite population, the full set of units is the disjoint union of treated and control units. The sum of all individual effects is therefore the treated sum plus the control sum. Dividing by the full population size gives an identity linking the three averages:

$$ \widehat{\mathrm{ATE}} =\frac{N_1}{N}\widehat{\mathrm{ATT}} +\frac{N_0}{N}\widehat{\mathrm{ATC}}. $$

The weights are the treatment and control proportions in the population. They sum to one because \(N=N_1+N_0\). This identity is a useful arithmetic check, but it applies when the ATE, ATT, and ATC are all defined for the same population and use the same individual effects. It is not a claim that any two of these averages must be equal.

Worked Example: Checking the Averages With Unequal Group Sizes

Consider another hypothetical population of 100 people. There are 80 younger people with an effect of 3 score points and 20 older people with an effect of 9 points. Among the treated are 20 younger and 10 older people; among the controls are 60 younger and 10 older people. Thus, \(N_1=30\) and \(N_0=70\).

The full-population average is

$$ \widehat{\mathrm{ATE}}=\frac{80}{100}(3)+\frac{20}{100}(9)=2.4+1.8=4.2\text{ score points}. $$

The treated average is \(\widehat{\mathrm{ATT}}=(20/30)(3)+(10/30)(9)=2+3=5\) score points. The control average is \(\widehat{\mathrm{ATC}}=(60/70)(3)+(10/70)(9)=180/70+90/70=270/70=3.857\) score points.

Now check the identity using the treatment prevalence \(30/100=0.3\):

$$ 0.3(5)+0.7(3.8571)=1.5+2.7=4.2\text{ score points}. $$

The check recovers the ATE. Because the treated group has a larger share of older people than the full population does, its average is higher than the ATE. The control group has a smaller share of older people than the full population does, so its average is lower.

Assumptions, Diagnostics, and Limits

The examples above specify the treatment effects, so their calculations are arithmetic rather than causal estimates from observed outcomes. To interpret these quantities as effects of well-defined treatment strategies, the potential outcomes must correspond to those strategies, and each unit's observed outcome must equal the potential outcome under its received treatment. For estimation from observational data, additional assumptions are needed. In particular, conditional exchangeability requires that, given the measured covariates, treatment assignment carries no further information about the potential outcomes; positivity requires that each treatment option has positive probability at covariate values represented in the target population. These assumptions are not verified just because the weighted averages can be calculated.

A practical diagnostic for a hand calculation is to confirm that the covariate-group counts add correctly: \(n_x=n_{1x}+n_{0x}\), \(N=\sum_xn_x\), \(N_1=\sum_xn_{1x}\), and \(N_0=\sum_xn_{0x}\). Then check that the weights for each target sum to one. For a common finite population, the ATE identity provides an additional check. Disagreement often indicates a denominator error or the use of full-population weights in an ATT or ATC calculation.

A major limitation is that observed data do not reveal both potential outcomes for the same person. Consequently, individual effects generally cannot be directly computed from ordinary observational data. Matching and other adjustment approaches use observed covariates and design or modeling assumptions to estimate a target average; the target population still determines whether the intended summary is an ATE, ATT, ATC, or another effect. Matching does not make these estimands interchangeable.

Common Mistakes and Alternatives

  • Using the wrong weights. The ATT weights effects by the covariate distribution among treated people; the ATC uses the distribution among controls; the ATE uses the full target population's distribution.
  • Calling the three averages different effects for different people. They are summaries over different populations. If treatment effects vary by covariates, their values can differ because the averaging populations differ.
  • Inferring causation from a numerical average alone. Calculating an observed group difference or a weighted mean does not establish the assumptions needed for a causal interpretation.
  • Reporting an effect without its scale or units. State, for instance, that an average effect is 4.4 score points, and specify the population whose average is meant.

The direct individual-average calculation is appropriate when both potential outcomes are known in a theoretical example or simulation. The covariate-standardization calculation is useful when group-specific effects and target group proportions are supplied. Matching-based estimates instead depend on the matched design and its induced target population. These approaches answer related but not automatically identical questions; the choice should follow the scientific target, rather than whichever numerical result is easiest to compute.

Key takeaway: ATE, ATT, and ATC average the same kind of individual treatment effect over different populations. When effects vary across covariate groups, the group's share in each target population determines the average.

Check Your Understanding

Use the definitions and formulas above. The answers are included after the questions so you can check each calculation.

  1. A population has 30 people in group L with effect 2 points and 70 people in group H with effect 6 points. What is the ATE?
  2. Among treated people, there are 18 in group L and 12 in group H. Using the effects in Question 1, calculate the ATT.
  3. There are 12 controls in group L and 58 in group H. Calculate the ATC and check the ATE identity using the treatment and control counts.
  4. Why can ATT differ from ATC even when each covariate group's treatment effect is the same for treated and control people within that group?
  5. Does calculating a weighted average from observed outcomes alone establish that it is a causal effect? Explain briefly.

Solutions. (1) \((30/100)(2)+(70/100)(6)=0.6+4.2=4.8\) points. (2) The treated total is 30, so ATT \(=(18/30)(2)+(12/30)(6)=1.2+2.4=3.6\) points. (3) The control total is 70, so ATC \(=(12/70)(2)+(58/70)(6)=24/70+348/70=5.314\) points. The check is \((30/100)(3.6)+(70/100)(5.314)=1.08+3.72=4.8\) points, up to rounding. (4) The treated and control groups can have different proportions in the covariate groups, so they average the group-specific effects with different weights. (5) No. A causal interpretation requires appropriate treatment definitions and identification assumptions, including conditional exchangeability and positivity for observational estimation.

Clinical Biostats