$$ \newcommand{X}{} \newcommand{Y}{} % A hex digit after # inside a macro body is eaten by build-time expansion, so digit-leading hexes spell # via .
$$
| j | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| w_j | \color{#F8766D}0 | \color{#F8766D}0 | \color{#F8766D}0 | \color{#F8766D}0 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#00BFC4}1 |
| y_j | \color{#F8766D}0 | \color{#F8766D}1 | \color{#F8766D}0 | \color{#F8766D}1 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#00BFC4}0 | \color{#00BFC4}1 | \color{#00BFC4}1 |
\Delta \;=\; \textcolor{#00BFC4}{\mu(1)}-\textcolor{#F8766D}{\mu(0)} \qwhere \begin{aligned} \textcolor{#00BFC4}{\mu(1)} &= \frac{1}{m_1}\sum_{j \,:\, w_j=1} y_j \\ \textcolor{#F8766D}{\mu(0)} &= \frac{1}{m_0}\sum_{j \,:\, w_j=0} y_j \end{aligned}
We will use stratified sampling:
We take numbered cards within our own subpopulation,
The difference in sample means is our estimator:
\hat\Delta=\textcolor{#00BFC4}{\hat\mu(1)}-\textcolor{#F8766D}{\hat\mu(0)}.
The two samples are drawn independently, so
\operatorname{Var}(\hat\Delta)=\operatorname{Var}\{\textcolor{#00BFC4}{\hat\mu(1)}\}+\operatorname{Var}\{\textcolor{#F8766D}{\hat\mu(0)}\}, \qquad \operatorname{Var}\{\hat\mu(w)\}=\frac{\sigma^2(w)}{n_w}\frac{m_w-n_w}{m_w-1}.
What does this tell us about choosing our sample sizes?
| p | \textcolor{#F8766D}{\hat\mu(0)} | \textcolor{#00BFC4}{\hat\mu(1)} | \hat\Delta |
|---|---|---|---|
| \textcolor{#073B4C}{\frac{3}{10}\cdot\frac{3}{5}=\frac{9}{50}} | \textcolor{#F8766D}{2/3} | \textcolor{#00BFC4}{2/3} | \textcolor{#073B4C}{0} |
| \textcolor{#EF476F}{\frac{6}{10}\cdot\frac{3}{5}=\frac{18}{50}} | \textcolor{#F8766D}{1/3} | \textcolor{#00BFC4}{2/3} | \textcolor{#EF476F}{1/3} |
| \textcolor{#EF476F}{\frac{3}{10}\cdot\frac{2}{5}=\frac{6}{50}} | \textcolor{#F8766D}{2/3} | \textcolor{#00BFC4}{1} | \textcolor{#EF476F}{1/3} |
| \textcolor{#118AB2}{\frac{1}{10}\cdot\frac{3}{5}=\frac{3}{50}} | \textcolor{#F8766D}{0} | \textcolor{#00BFC4}{2/3} | \textcolor{#118AB2}{2/3} |
| \textcolor{#118AB2}{\frac{6}{10}\cdot\frac{2}{5}=\frac{12}{50}} | \textcolor{#F8766D}{1/3} | \textcolor{#00BFC4}{1} | \textcolor{#118AB2}{2/3} |
| \textcolor{#06D6A0}{\frac{1}{10}\cdot\frac{2}{5}=\frac{2}{50}} | \textcolor{#F8766D}{0} | \textcolor{#00BFC4}{1} | \textcolor{#06D6A0}{1} |
We sample the subpopulations separately,
Adding the rows that share a difference gives the distribution exactly:
P(\hat\Delta=d)=\sum_{\textcolor{#00BFC4}{\hat\mu(1)}-\textcolor{#F8766D}{\hat\mu(0)} \,=\, d} p.
Again our estimate is the difference in the two sample means.
\hat\Delta=\textcolor{#00BFC4}{\hat\mu(1)}-\textcolor{#F8766D}{\hat\mu(0)}.
How do you calibrate a confidence interval? We simulate our study.
| j | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| w_j | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 |
| y_j | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#F8766D}1 | \color{#00BFC4}0 | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 | \color{#F8766D}0 | \color{#00BFC4}1 |
As always, we collect the population’s responses and simulate our study.
| j | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| y_j | ? | ? | \color{#00BFC4}1 | ? | ? | \color{#00BFC4}1 | \color{#F8766D}0 | ? | ? | \color{#00BFC4}1 |
| j | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| y_j(0) | \color{#F8766D}0 | \color{#F8766D}1 | \color{#F8766D}0 | \color{#F8766D}0 | ||||||
| y_j(1) | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#00BFC4}0 | \color{#00BFC4}1 | \color{#00BFC4}1 | \color{#00BFC4}1 |
| j | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| y_j(0) | 0 | \color{#F8766D}0 | 1 | \color{#F8766D}1 | 0 | 0 | \color{#F8766D}0 | 1 | \color{#F8766D}0 | 0 |
| y_j(1) | \color{#00BFC4}1 | 1 | \color{#00BFC4}1 | 1 | \color{#00BFC4}0 | \color{#00BFC4}1 | 0 | \color{#00BFC4}1 | 1 | \color{#00BFC4}1 |
We say that \textcolor{#F8766D}{y_j(0)} and \textcolor{#00BFC4}{y_j(1)} are person j’s preferences without and with the prime.
We observed y_j(w_j), one of the two. A new assignment asks for the other.
We define the average treatment effect as the mean individual difference:
\Delta=\frac{1}{m}\sum_{j=1}^m \{\textcolor{#00BFC4}{y_j(1)}-\textcolor{#F8766D}{y_j(0)}\}.
That’s not saying we can’t get an interval estimate.
So: can we do this using our observations? Yes and no.
Our estimate is going to stay unbiased.
\begin{aligned} \mathbb E(\hat\Delta)&=\mathbb E\{\textcolor{#00BFC4}{\hat\mu(1)}\}-\mathbb E\{\textcolor{#F8766D}{\hat\mu(0)}\}\\ &=\frac{1}{m}\sum_{j=1}^m \textcolor{#00BFC4}{y_j(1)}-\frac{1}{m}\sum_{j=1}^m \textcolor{#F8766D}{y_j(0)}=\Delta. \end{aligned}
So the question boils down to whether we can do spread.