<p>Let us explain this in a backdrop of simple model used by <a href="https://www.aeaweb.org/articles?id=10.1257/app.5.3.27" rel="noreferrer">Burde and Linden (2013)</a> who looked at an effect of building new village schools (as opposed to have children commuting) on students academic outcomes. They estimated the following model:</p>
<p><span class="math-container">$$Y_{ijk} = β_0 + β_1T_k + e_{ijk}$$</span></p>
<p>Where <span class="math-container">$Y_{ijk}$</span> is an academic outcome of child <span class="math-container">$i$</span> in household <span class="math-container">$j$</span> in a village <span class="math-container">$k$</span>.</p>
<p>Here the <span class="math-container">$T_k$</span> is a dummy that signifies whether the village got a school in
the first year or not, that can take only two values 1 or 0 .</p>
<p>In this setting we will have 2 possible conditional outcomes</p>
<p><span class="math-container">$$T_k =
\begin{cases}
Y_{ij1}|  T_k = 1\implies Y_{ij1} = β_0 + β_{1}1 + e_{ijk} \\
Y_{ij0}| T_k = 0 \implies Y_{ij0} = β_0 + β_10 + e_{ijk} \end{cases}$$</span></p>
<p>Now finally we can turn our attention to explanation of ATE vs ATT.</p>
<p><strong>Average Treatment Effect</strong></p>
<p>In this setting the average treatment effect is simply:</p>
<p><span class="math-container">$$\text{ATE}= E[Y_{ij1} - Y_{ij0}]$$</span></p>
<p>So it it is the difference between potential outcomes, in this case academic achievement between children who got access to village schools and children who did not get access to village schools.</p>
<p><strong>Average Treatment Effect on Treated</strong></p>
<p>Now when it comes to average treatment effect <em>on treated</em> this is defined as:</p>
<p><span class="math-container">$$E[Y_{ij1} − Y_{ij0}|T_k = 1]$$</span></p>
<p>So in plain English and applied to the case above this is the difference in academic potential outcomes between children that got access to village schools, and children that did not get access to village schools <em>conditionally on the fact that they both are assigned to village schools</em>.</p>
<p>The outcome  <span class="math-container">$Y_{ij0}|T_k = 1$</span> is essentially a counterfactual for <span class="math-container">$Y_{ij1}$</span>  in a 'parallel universe' where exactly the same people who where assigned the treatment in this universe would not get the treatment. That is with ATE you are comparing children who got schools with <em>other</em> children who did not get schools, whereas in ATT you are comparing children who got schools, with the same children who got schools from a 'parallel universe' where they did not get schools.</p>

CC BY-SA 4.0
2021-11-22T20:05:46.553Z
In order to estimate the ATT, my understanding is that you include all the subjects in the treatment group and compare them to subjects in the control group who most closely resemble the treatment group members. This can be done via a number of methods, like exact matching subjects on characteristics (age, sex, etc.) or by upweighting members in the control group based on their probability of belonging in the treatment group (inverse propensity score weighting).
RobertF
CC BY-SA 4.0
2021-06-05T12:41:17.877Z
2021-06-06T17:28:09.917Z
2021-06-06T17:28:09.917Z
1muflon1
<p>In RCT, <span class="math-container">$ ATE = ATT = ATU$</span>.</p>
<p>In observational study, <span class="math-container">$ATT\neq ATE$</span>, since
<span class="math-container">$$
ATE = E\{Y(1)-Y(0)\} = E_X\{E(Y|X,A=1)-E(Y|X,A=0)\}= E_X\{E(Y|X,A=1)\}- E_X\{ E(Y|X,A=0)\}\},
$$</span>
<span class="math-container">$$
ATT = E\{Y(1)-Y(0)|A=1\} = E(Y|A=1) - E_X\{E(Y|X,A=0)\}.
$$</span></p>

CC BY-SA 4.0
2022-12-15T14:43:20.620Z
That's incorrect - ATE = ATT = ATU only when treatment is "forced", aka no one can opt to not take the treatment. In many circumstances (e.g. clinical trials), there's non-compliance - you're in the treatment group, but you don't take the treatment.
goblin-esque
CC BY-SA 4.0
2022-10-04T09:13:48.057Z
2022-10-04T09:19:53.940Z
2022-10-04T09:19:53.940Z
wenli liu
<p>I'm a social science researcher, so my example will come from observational studies.  Consider for example, a university offers calculus tutoring to all students taking the course, but only some choose to use this service. You want to estimate the effects of tutoring, so you can do it two ways:</p>
<ol>
<li><p>ATE (Average Treatment Effect). This one would measure the effect that participating in tutoring would have on the entire population of students (those who used tutoring (1) and those who did not use tutoring (0)). If you see a positive effect then you can generalize to say that all students who take calculus should use tutoring services.</p>
</li>
<li><p>ATT (Average Treatment Effect of Treated). This one would measure the effect that participating in tutoring would have on the students that used the service (the treated) or (those who used tutoring (1)). You can still compare it to those who did not use tutoring (0), but the treatment effect will tell you how students who used tutoring would have faired had they not used tutoring.</p>
</li>
</ol>

CC BY-SA 4.0
2024-01-13T14:32:02.783Z
2024-01-13T19:21:08.293Z
2024-01-13T19:21:08.293Z
user46064
<p><em>Treatment effects</em> are causal effects of a binary treatment. Because the treatment is binary, individuals are either treated or they are not treated. For the sake of example assume that the treatment is participation in a money making course - the course is claimed to make you better at making money.</p>
<p>Obviously, the causal effect of such a course could very well be differ from person to person (this is referred to as treatment <em>heterogeneity</em>). Some people may learn a lot from the course and actually improve at making money while others will be bored by the content of the course and experience a zero effect. As usual when important quantitative measures vary across observational units a canonical summary statistic is <em>the average</em>. The <em>Average Treatment Effect</em> (ATE) is simply that: The average of the individual treatment effects of the population under consideration. And the <em>Average Treatment Effect of the Treated</em> (ATT) is simply the average of the individual treatment effects of those treated (hence not the entire population).</p>
<p>To make it formally more clear what the causal effect of treatment is, it is often assumed that for each individual <span class="math-container">$i$</span> there exists an amount of money <span class="math-container">$Y_i^0$</span> individual <span class="math-container">$i$</span> will make without taking the training course. And there also exists an amount of money <span class="math-container">$Y^1_i$</span> that individual <span class="math-container">$i$</span> will make if she takes course. The causal effect for individual <span class="math-container">$i$</span> of participation in the course is then defined as</p>
<p><span class="math-container">$$\tau_i := Y_i^1- Y^0_i,$$</span></p>
<p>the difference in outcome with and without treatment.</p>
<p>For the sake of example consider the following table for 6 individuals:</p>
<p><a href="https://i.sstatic.net/s8REK.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/s8REK.jpg" alt="enter image description here" /></a></p>
<p>It is clear from the table that individual <span class="math-container">$i=1,2,3$</span> are treated <span class="math-container">$D_i=1$</span> while <span class="math-container">$i=4,5,6$</span> are not treated. For those who are treated the observed amount of money made by the individual <span class="math-container">$Y_i$</span> is equal to <span class="math-container">$Y_i^1$</span>. For those not treated the observed amount of money made <span class="math-container">$Y_i$</span> is equal to <span class="math-container">$Y_i^0$</span>. In general this is written as</p>
<p><span class="math-container">$$Y_i = D_i Y_i^1 + (1-D_i)Y_i^0.$$</span></p>
<p>An important part of the setup is therefore that while <span class="math-container">$Y_i^1$</span> and <span class="math-container">$Y_i^0$</span> are assumed to exist they are not assumed to be observed.</p>
<p>However, getting back to ATT and ATE. In the above example the ATE can be calculated as</p>
<p><span class="math-container">$$ATE := \frac{1}{N} \sum_i \tau_i =  \frac{1}{N} \sum_i (Y_i^1 - Y_i^0) = \frac{1+1+1+0+1-1}{6} = 0.5,$$</span></p>
<p>and the average treatment effect of those treated is calculated as</p>
<p><span class="math-container">$$ATT := \frac{1}{N_1} \sum_i \tau_i =  \frac{1}{N_1} \sum_i (Y_i^1 - Y_i^0) = \frac{1+1+1}{3} = 1.0,$$</span></p>
<p>where <span class="math-container">$N_1 = \sum_i D_i = 3$</span>.</p>
<p>In this example ATE and ATT are numerically the same but as you can see they are averages of different sets of individual causal effects. As such they are not necessarily expected to be the same. Try to construct an example yourself where they are different simply by changing the group of treated individuals.</p>
<p>The average treatment effect (ATE) is used when we are interested in the average treatment of the entire population, whereas the average treatment effect of the treated (ATT) is used when we are only interested in the average treatment effect of those treated.</p>

CC BY-SA 4.0
2021-06-05T20:59:03.707Z
I do not think the last paragraph is correct. At least it contradicts MHE (see pp 14), we are almost always interested in ATT because ATE is simply ATT + selection bias. I  I can't imagine a situation where one would be interested in having that selection bias there.  In fact the whole point of randomized assignment is to make ATT=ATE. In addition, IRL we also cannot see both $Y_i^0$ and $Y_i^1$ so it is not like IRL we can choose which to calculate, we always get ATE so all we can do is try to make ATE equal ATT
1muflon1
CC BY-SA 4.0
2021-06-06T06:16:43.570Z
What is MHE?...
Jesper Hybel
CC BY-SA 4.0
2021-06-06T08:30:53.737Z
oh sorry, mostly harmless econometrics I thought you would know because in applied econometrics and field research it’s as well known as MWG in micro
1muflon1
CC BY-SA 4.0
2021-06-06T09:34:45.360Z
I'm familiar with "mostly harmless econometrics" just not by acronym. But I must admit I cannot really find the contradiction. Maybe it is because I only have the webversion (https://jonnyphillips.github.io/FLS6415/Class_3/Angrist%20&%20Pischke.pdf) available atm.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T09:45:04.557Z
this says pretty much the same thing on page 11 although worded bit differently, and I mean it’s not as much contradiction as matter of interpretation. 1. Since ATE=ATT+bias I think it’s not appropriate to say we are interested in ATE at all, because the whole point of going via randomized assignment and all the other stuff we do is to get bias to zero to make ATE=ATT. 2. It’s not appropriate to say we can choose to calculate ATE when we are interested in population and ATT when only at treated. We cannot observe both $Y_i^1$ and $Y_i^0$ at the same time IRL
1muflon1
CC BY-SA 4.0
2021-06-06T09:51:46.333Z
So we can’t really choose whether to calculate ATE or ATT, we are interested in virtually all applications in ATT but what we always get is ATE, so most applied econometrics revolves around what can we do to make ATT=ATE, it’s not like we choose which of the two we want to calculate based on our interest (aside I guess corner situations where you don’t care about bias for whatever reason
1muflon1
CC BY-SA 4.0
2021-06-06T11:13:10.540Z
Ok, well first of all the text does not say  'ATE = ATT + selection bias' it says $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0] = ATT + selection bias$ with $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0]$ being referred to as 'observed average difference' not to be confused with the $ATE:=\mathbb E[Y^1-Y^0]$.  It is only in the randomized experiment that $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0] = ATE$ and as you say in this case it is also equal to $ATT$. Under less strict terms than randomization it is possible to have $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0] = ATT$
Jesper Hybel
CC BY-SA 4.0
2021-06-06T11:23:33.690Z
but difference in means is ATE, $E[Y|D=1] \equiv E[Y_i^1]$ and $E[Y|D=0] \equiv [Y_i^0]$ so that $E[Y|D=1] - E[Y|D=0]  \equiv E[Y_i^1] - E[Y_i^0] = E[Y_i^1-Y_i^0]$ . Also the MEH never uses the word "average treatment effect" at least not the pdf version you linked to, but the observed difference in means is precisely the ATE following their mathematical definitions. Also, I agree that randomization is not the only case when ATT=ATE<- fully agree on that , thats why I said always randomization and *other stuff*.
1muflon1
CC BY-SA 4.0
2021-06-06T11:28:46.867Z
It is not the case that $\mathbb E[Y \lvert D=1] :=\mathbb E[ Y^1]$ and $\mathbb E[Y\lvert D=0] = \mathbb E[Y^0]$ if that was the case you could always estimate ATE - ATE is a causal estimand defined in terms of unobservable counterfactual states. True, MHE do not say 'observed average difference' they say 'observed difference in average health' - I was abstracting from the 'health' context.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T11:36:15.523Z
The  $\mathbb E[Y \lvert D=1] = \mathbb E[Y^1\lvert D= 1]$ by the consistency requirement but to take the extra step and say $=\mathbb E[Y^1]$ obviously requires mean independence of $Y^1$ from $D$ which is implied by independence (which is assumed for radomized setting). But in the non-randomized setting you are not assuming this mean indepencence for $Y^1$. And in any case they are not true by definition.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T11:37:53.547Z
No you are misunderstanding, MHE never says the word: "average treatment effect" - they do not use that terminology at all in the whole pdf document, they use substitute for that which is difference between observed means, but observed means are just $E[Y_i^1]$ and $E[Y_i^0]$.... unless I am misunderstanding your notation, but $E[Y|D=1]$ literally means expectation of Y (mean) conditional on being assigned treatment so if we would use notation $Y_{iD}$ with $i$ for individual and $D$ for treatment assignment $E[Y_i|D=1] \equiv E[Y_{i1}]$ I assume that you just pushed $D$ to superscript
1muflon1
CC BY-SA 4.0
2021-06-06T11:39:18.093Z
also please do not get too hung up on the randomization, I agree you can get ATE=ATT in non-experimental setting as well
1muflon1
CC BY-SA 4.0
2021-06-06T14:28:33.310Z
The terminology I am using on treatment effects is laid out in for example Imbens and Rubin "Causal inference ...", grown up Wooldridge chapter on treatment effects, Morgan Winship "counterfactual and causal inference" .... It is not the case that $\mathbb E[Y \lvert D=1] := \mathbb E[Y^1]$ nor that $\mathbb E[Y \lvert D=0] := \mathbb E[Y^0]$. And $ \mathbb E[Y^1]$ and $ \mathbb E[Y^0]$ are not observed means in my example.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T14:47:46.080Z
Also the way MHE is using the notation on page 11-12 is quite consistent with Imbens-Rubin. So I really do not know from where you get the idea that $\mathbb E [Y_i \lvert D=1] := \mathbb E[Y^1]$ and $\mathbb E [Y_i \lvert D=0] := \mathbb E[Y^0]$ - I have never said it and MHE does not say it. So from my point of view you are simply reading the text incorrectly.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T15:06:13.827Z
But I am also basing what I am saying on Rubin, I might be wrong but I think you might actually be misreading it or I do not understand the notation you are using. I mean let us take an concrete simple example, with sample of 4 people, let us suppose 2 people are given treatment and 2 people are controls (e.g. you give deworming pill to 2 kids and other 2 are left as controls). These people will have outcomes $Y$, and people are denoted by $i$ and whether they are treated or not by $D={1,0}$.  So what we have is following sample
1muflon1
CC BY-SA 4.0
2021-06-06T15:06:16.660Z
$[Y_{10}, Y_{20}, Y_{31}, Y_{41}]$, ATE is $E[Y_{i1}-Y_{i0}] = E[Y_{i1}]-E[Y_{i0}]=\bar{Y_{i1}}- \bar{Y_{i0}} = \frac{Y_{10} +  Y_{20}}{2} - \frac{Y_{31} +  Y_{41}}{2}    $
1muflon1
CC BY-SA 4.0
2021-06-06T16:53:56.390Z
You are gonna have to back those identities up with a reference for me - I don't buy them.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T16:57:37.310Z
but I mean that is my understanding based on what is written in MHE, so that is the reference for me. I mean Rubin directly does not use ATE terminology either (you would not find that word printed in his seminal article). What is wrong with the example I given? And also I am willing to accept that I might be wrong here to be honest you made me unsure of if I understand it correctly, but I cant see a outright mistake in the example I given you
1muflon1
CC BY-SA 4.0
2021-06-06T17:02:13.417Z
Left hand side of identity I buy $ATE := \mathbb E[Y_1-Y_0] = \mathbb E[Y_1] - \mathbb E[Y_0]$ but then it stops because $\bar Y_{i1} - \bar Y_{i0} = ...$ is a difference between sample averages that at best can be a consistent estimator for some poplation moments.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T17:02:47.277Z
Obviously, what these sample moments consistently estimate - their difference - is $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D= 0]$ but exactly because this difference is not necessarily equal to $ \mathbb E[Y_1] - \mathbb E[Y_0] = ATE$ and not necessarily equal to $\mathbb E[Y_1\lvert D=1] - \mathbb E[Y_0 \lvert D= 1]:=ATT$ we have an estimation problem.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T17:05:35.470Z
ok but in the sample $E[Y|D=1] = E[Y_1]$ as in the example above, or wait do you by $E[Y_1]$ mean expectationof all *potential* outcomes as opposed to those that are observed?
1muflon1
CC BY-SA 4.0
2021-06-06T17:06:11.393Z
The 6 people in my table are the population .... and yes $\mathbb E[Y_1]$ is expectation of all potential outcomes under treatment $\mathbb E[Y_0]$ under non-treatment.
Jesper Hybel
CC BY-SA 4.0
2021-06-06T17:11:56.467Z
Oh ok, then I agree that $E[Y|D=1] \neq E[Y_1]$ I always thought that $E[Y_1]$ is based on sample. Ok, then my bad thanks for being so patient with me
1muflon1
CC BY-SA 4.0
2021-06-06T17:17:58.177Z
Hehe no worries :)
Jesper Hybel
CC BY-SA 4.0
2021-06-05T20:15:55.890Z
2024-01-25T12:53:26.913Z
2024-01-25T12:53:26.913Z
Jesper Hybel
<p>I saw <strong>ATE</strong> and <strong>ATT</strong> in some discussions regarding DID settings recently.
<strong>ATE</strong> is the <strong>Average Treatment Effect</strong>
while
<strong>ATT</strong> is <strong>Average Treatment Effects on Treated</strong>.</p>
<p>I am wondering the difference between these two terms and is there any example to clarify such a difference?</p>

<econometrics><nonexpert>
What is the difference between ATE and ATT?
Phil Nguyen
# What is the difference between ATE and ATT?

(Asked by: username_0 on 2021-06-05)

I saw **ATE** and **ATT** in some discussions regarding DID settings recently.
**ATE** is the **Average Treatment Effect**
while
**ATT** is **Average Treatment Effects on Treated**.

I am wondering the difference between these two terms and is there any example to clarify such a difference?

**Tags:** econometrics, nonexpert


---

## 4 answers

### Answer by username_6 on 2021-06-05. Score: 13 | Accepted answer

*Treatment effects* are causal effects of a binary treatment. Because the treatment is binary, individuals are either treated or they are not treated. For the sake of example assume that the treatment is participation in a money making course - the course is claimed to make you better at making money.

Obviously, the causal effect of such a course could very well be differ from person to person (this is referred to as treatment *heterogeneity*). Some people may learn a lot from the course and actually improve at making money while others will be bored by the content of the course and experience a zero effect. As usual when important quantitative measures vary across observational units a canonical summary statistic is *the average*. The *Average Treatment Effect* (ATE) is simply that: The average of the individual treatment effects of the population under consideration. And the *Average Treatment Effect of the Treated* (ATT) is simply the average of the individual treatment effects of those treated (hence not the entire population).

To make it formally more clear what the causal effect of treatment is, it is often assumed that for each individual $i$ there exists an amount of money $Y\_i^0$ individual $i$ will make without taking the training course. And there also exists an amount of money $Y^1\_i$ that individual $i$ will make if she takes course. The causal effect for individual $i$ of participation in the course is then defined as

$$\tau\_i := Y\_i^1- Y^0\_i,$$

the difference in outcome with and without treatment.

For the sake of example consider the following table for 6 individuals:

[![enter image description here](https://i.sstatic.net/s8REK.jpg)](https://i.sstatic.net/s8REK.jpg)

It is clear from the table that individual $i=1,2,3$ are treated $D\_i=1$ while $i=4,5,6$ are not treated. For those who are treated the observed amount of money made by the individual $Y\_i$ is equal to $Y\_i^1$. For those not treated the observed amount of money made $Y\_i$ is equal to $Y\_i^0$. In general this is written as

$$Y\_i = D\_i Y\_i^1 + (1-D\_i)Y\_i^0.$$

An important part of the setup is therefore that while $Y\_i^1$ and $Y\_i^0$ are assumed to exist they are not assumed to be observed.

However, getting back to ATT and ATE. In the above example the ATE can be calculated as

$$ATE := \frac{1}{N} \sum\_i \tau\_i = \frac{1}{N} \sum\_i (Y\_i^1 - Y\_i^0) = \frac{1+1+1+0+1-1}{6} = 0.5,$$

and the average treatment effect of those treated is calculated as

$$ATT := \frac{1}{N\_1} \sum\_i \tau\_i = \frac{1}{N\_1} \sum\_i (Y\_i^1 - Y\_i^0) = \frac{1+1+1}{3} = 1.0,$$

where $N\_1 = \sum\_i D\_i = 3$.

In this example ATE and ATT are numerically the same but as you can see they are averages of different sets of individual causal effects. As such they are not necessarily expected to be the same. Try to construct an example yourself where they are different simply by changing the group of treated individuals.

The average treatment effect (ATE) is used when we are interested in the average treatment of the entire population, whereas the average treatment effect of the treated (ATT) is used when we are only interested in the average treatment effect of those treated.

> **Comments:**
> **username_1**: I do not think the last paragraph is correct. At least it contradicts MHE (see pp 14), we are almost always interested in ATT because ATE is simply ATT + selection bias. I  I can't imagine a situation where one would be interested in having that selection bias there.  In fact the whole point of randomized assignment is to make ATT=ATE. In addition, IRL we also cannot see both $Y_i^0$ and $Y_i^1$ so it is not like IRL we can choose which to calculate, we always get ATE so all we can do is try to make ATE equal ATT  
> **username_6**: What is MHE?...  
> **username_1**: oh sorry, mostly harmless econometrics I thought you would know because in applied econometrics and field research it’s as well known as MWG in micro  
> **username_6**: I'm familiar with "mostly harmless econometrics" just not by acronym. But I must admit I cannot really find the contradiction. Maybe it is because I only have the webversion (https://jonnyphillips.github.io/FLS6415/Class_3/Angrist%20&%20Pischke.pdf) available atm.  
> **username_1**: this says pretty much the same thing on page 11 although worded bit differently, and I mean it’s not as much contradiction as matter of interpretation. 1. Since ATE=ATT+bias I think it’s not appropriate to say we are interested in ATE at all, because the whole point of going via randomized assignment and all the other stuff we do is to get bias to zero to make ATE=ATT. 2. It’s not appropriate to say we can choose to calculate ATE when we are interested in population and ATT when only at treated. We cannot observe both $Y_i^1$ and $Y_i^0$ at the same time IRL  
> **username_1**: So we can’t really choose whether to calculate ATE or ATT, we are interested in virtually all applications in ATT but what we always get is ATE, so most applied econometrics revolves around what can we do to make ATT=ATE, it’s not like we choose which of the two we want to calculate based on our interest (aside I guess corner situations where you don’t care about bias for whatever reason  
> **username_6**: Ok, well first of all the text does not say  'ATE = ATT + selection bias' it says $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0] = ATT + selection bias$ with $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0]$ being referred to as 'observed average difference' not to be confused with the $ATE:=\mathbb E[Y^1-Y^0]$.  It is only in the randomized experiment that $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0] = ATE$ and as you say in this case it is also equal to $ATT$. Under less strict terms than randomization it is possible to have $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D=0] = ATT$  
> **username_1**: but difference in means is ATE, $E[Y|D=1] \equiv E[Y_i^1]$ and $E[Y|D=0] \equiv [Y_i^0]$ so that $E[Y|D=1] - E[Y|D=0]  \equiv E[Y_i^1] - E[Y_i^0] = E[Y_i^1-Y_i^0]$ . Also the MEH never uses the word "average treatment effect" at least not the pdf version you linked to, but the observed difference in means is precisely the ATE following their mathematical definitions. Also, I agree that randomization is not the only case when ATT=ATE<- fully agree on that , thats why I said always randomization and *other stuff*.  
> **username_6**: It is not the case that $\mathbb E[Y \lvert D=1] :=\mathbb E[ Y^1]$ and $\mathbb E[Y\lvert D=0] = \mathbb E[Y^0]$ if that was the case you could always estimate ATE - ATE is a causal estimand defined in terms of unobservable counterfactual states. True, MHE do not say 'observed average difference' they say 'observed difference in average health' - I was abstracting from the 'health' context.  
> **username_6**: The  $\mathbb E[Y \lvert D=1] = \mathbb E[Y^1\lvert D= 1]$ by the consistency requirement but to take the extra step and say $=\mathbb E[Y^1]$ obviously requires mean independence of $Y^1$ from $D$ which is implied by independence (which is assumed for radomized setting). But in the non-randomized setting you are not assuming this mean indepencence for $Y^1$. And in any case they are not true by definition.  
> **username_1**: No you are misunderstanding, MHE never says the word: "average treatment effect" - they do not use that terminology at all in the whole pdf document, they use substitute for that which is difference between observed means, but observed means are just $E[Y_i^1]$ and $E[Y_i^0]$.... unless I am misunderstanding your notation, but $E[Y|D=1]$ literally means expectation of Y (mean) conditional on being assigned treatment so if we would use notation $Y_{iD}$ with $i$ for individual and $D$ for treatment assignment $E[Y_i|D=1] \equiv E[Y_{i1}]$ I assume that you just pushed $D$ to superscript  
> **username_1**: also please do not get too hung up on the randomization, I agree you can get ATE=ATT in non-experimental setting as well  
> **username_6**: The terminology I am using on treatment effects is laid out in for example Imbens and Rubin "Causal inference ...", grown up Wooldridge chapter on treatment effects, Morgan Winship "counterfactual and causal inference" .... It is not the case that $\mathbb E[Y \lvert D=1] := \mathbb E[Y^1]$ nor that $\mathbb E[Y \lvert D=0] := \mathbb E[Y^0]$. And $ \mathbb E[Y^1]$ and $ \mathbb E[Y^0]$ are not observed means in my example.  
> **username_6**: Also the way MHE is using the notation on page 11-12 is quite consistent with Imbens-Rubin. So I really do not know from where you get the idea that $\mathbb E [Y_i \lvert D=1] := \mathbb E[Y^1]$ and $\mathbb E [Y_i \lvert D=0] := \mathbb E[Y^0]$ - I have never said it and MHE does not say it. So from my point of view you are simply reading the text incorrectly.  
> **username_1**: But I am also basing what I am saying on Rubin, I might be wrong but I think you might actually be misreading it or I do not understand the notation you are using. I mean let us take an concrete simple example, with sample of 4 people, let us suppose 2 people are given treatment and 2 people are controls (e.g. you give deworming pill to 2 kids and other 2 are left as controls). These people will have outcomes $Y$, and people are denoted by $i$ and whether they are treated or not by $D={1,0}$.  So what we have is following sample  
> **username_1**: $[Y_{10}, Y_{20}, Y_{31}, Y_{41}]$, ATE is $E[Y_{i1}-Y_{i0}] = E[Y_{i1}]-E[Y_{i0}]=\bar{Y_{i1}}- \bar{Y_{i0}} = \frac{Y_{10} +  Y_{20}}{2} - \frac{Y_{31} +  Y_{41}}{2}    $  
> **username_6**: You are gonna have to back those identities up with a reference for me - I don't buy them.  
> **username_1**: but I mean that is my understanding based on what is written in MHE, so that is the reference for me. I mean Rubin directly does not use ATE terminology either (you would not find that word printed in his seminal article). What is wrong with the example I given? And also I am willing to accept that I might be wrong here to be honest you made me unsure of if I understand it correctly, but I cant see a outright mistake in the example I given you  
> **username_6**: Left hand side of identity I buy $ATE := \mathbb E[Y_1-Y_0] = \mathbb E[Y_1] - \mathbb E[Y_0]$ but then it stops because $\bar Y_{i1} - \bar Y_{i0} = ...$ is a difference between sample averages that at best can be a consistent estimator for some poplation moments.  
> **username_6**: Obviously, what these sample moments consistently estimate - their difference - is $\mathbb E[Y\lvert D=1] - \mathbb E[Y \lvert D= 0]$ but exactly because this difference is not necessarily equal to $ \mathbb E[Y_1] - \mathbb E[Y_0] = ATE$ and not necessarily equal to $\mathbb E[Y_1\lvert D=1] - \mathbb E[Y_0 \lvert D= 1]:=ATT$ we have an estimation problem.  
> **username_1**: ok but in the sample $E[Y|D=1] = E[Y_1]$ as in the example above, or wait do you by $E[Y_1]$ mean expectationof all *potential* outcomes as opposed to those that are observed?  
> **username_6**: The 6 people in my table are the population .... and yes $\mathbb E[Y_1]$ is expectation of all potential outcomes under treatment $\mathbb E[Y_0]$ under non-treatment.  
> **username_1**: Oh ok, then I agree that $E[Y|D=1] \neq E[Y_1]$ I always thought that $E[Y_1]$ is based on sample. Ok, then my bad thanks for being so patient with me  
> **username_6**: Hehe no worries :)  

---

### Answer by username_1 on 2021-06-05. Score: 11

Let us explain this in a backdrop of simple model used by [Burde and Linden (2013)](https://www.aeaweb.org/articles?id=10.1257/app.5.3.27) who looked at an effect of building new village schools (as opposed to have children commuting) on students academic outcomes. They estimated the following model:

$$Y\_{ijk} = β\_0 + β\_1T\_k + e\_{ijk}$$

Where $Y\_{ijk}$ is an academic outcome of child $i$ in household $j$ in a village $k$.

Here the $T\_k$ is a dummy that signifies whether the village got a school in
the first year or not, that can take only two values 1 or 0 .

In this setting we will have 2 possible conditional outcomes

$$T\_k =
\begin{cases}
Y\_{ij1}| T\_k = 1\implies Y\_{ij1} = β\_0 + β\_{1}1 + e\_{ijk} \\
Y\_{ij0}| T\_k = 0 \implies Y\_{ij0} = β\_0 + β\_10 + e\_{ijk} \end{cases}$$

Now finally we can turn our attention to explanation of ATE vs ATT.

**Average Treatment Effect**

In this setting the average treatment effect is simply:

$$\text{ATE}= E[Y\_{ij1} - Y\_{ij0}]$$

So it it is the difference between potential outcomes, in this case academic achievement between children who got access to village schools and children who did not get access to village schools.

**Average Treatment Effect on Treated**

Now when it comes to average treatment effect *on treated* this is defined as:

$$E[Y\_{ij1} − Y\_{ij0}|T\_k = 1]$$

So in plain English and applied to the case above this is the difference in academic potential outcomes between children that got access to village schools, and children that did not get access to village schools *conditionally on the fact that they both are assigned to village schools*.

The outcome $Y\_{ij0}|T\_k = 1$ is essentially a counterfactual for $Y\_{ij1}$ in a 'parallel universe' where exactly the same people who where assigned the treatment in this universe would not get the treatment. That is with ATE you are comparing children who got schools with *other* children who did not get schools, whereas in ATT you are comparing children who got schools, with the same children who got schools from a 'parallel universe' where they did not get schools.

> **Comments:**
> **username_2**: In order to estimate the ATT, my understanding is that you include all the subjects in the treatment group and compare them to subjects in the control group who most closely resemble the treatment group members. This can be done via a number of methods, like exact matching subjects on characteristics (age, sex, etc.) or by upweighting members in the control group based on their probability of belonging in the treatment group (inverse propensity score weighting).  

---

### Answer by username_3 on 2022-10-04. Score: 1

In RCT, $ ATE = ATT = ATU$.

In observational study, $ATT\neq ATE$, since
$$
ATE = E\{Y(1)-Y(0)\} = E\_X\{E(Y|X,A=1)-E(Y|X,A=0)\}= E\_X\{E(Y|X,A=1)\}- E\_X\{ E(Y|X,A=0)\}\},
$$
$$
ATT = E\{Y(1)-Y(0)|A=1\} = E(Y|A=1) - E\_X\{E(Y|X,A=0)\}.
$$

> **Comments:**
> **username_4**: That's incorrect - ATE = ATT = ATU only when treatment is "forced", aka no one can opt to not take the treatment. In many circumstances (e.g. clinical trials), there's non-compliance - you're in the treatment group, but you don't take the treatment.  

---

### Answer by username_5 on 2024-01-13. Score: 1

I'm a social science researcher, so my example will come from observational studies. Consider for example, a university offers calculus tutoring to all students taking the course, but only some choose to use this service. You want to estimate the effects of tutoring, so you can do it two ways:

1. ATE (Average Treatment Effect). This one would measure the effect that participating in tutoring would have on the entire population of students (those who used tutoring (1) and those who did not use tutoring (0)). If you see a positive effect then you can generalize to say that all students who take calculus should use tutoring services.
2. ATT (Average Treatment Effect of Treated). This one would measure the effect that participating in tutoring would have on the students that used the service (the treated) or (those who used tutoring (1)). You can still compare it to those who did not use tutoring (0), but the treatment effect will tell you how students who used tutoring would have faired had they not used tutoring.


---

