CI-HW2

Problem 1 (Neyman’s approach & Regression approach)

a.

This design breaks SUTVA because students in the same classroom can influence each other.

b.

τ^dif=65.38333−50.88333=14.5\hat{\tau}^{\mathrm{dif}}=65.38333-50.88333=14.5

V^neyman=60.597\hat{\mathbb{V}}^{\mathrm{neyman}}=60.597.

95% CI: 14.5±z0.975V^neyman=(−0.76,29.76)14.5\pm z_{0.975}\sqrt{\hat{\mathbb{V}}^{\mathrm{neyman}}}=(-0.76,29.76)

There is no enough evidence to reject the null hypothesis of no treatment effect.

c.

I believe that they were randomly selected because the p-value of the paired t-test is 0.8.

d.

τ^dif=15.28333\hat{\tau}^{\mathrm{dif}}=15.28333

V^neyman=28.97072\hat{\mathbb{V}}^{\mathrm{neyman}}=28.97072.

95% CI: 15.28±z0.975V^neyman=(4.73,25.82)15.28\pm z_{0.975}\sqrt{\hat{\mathbb{V}}^{\mathrm{neyman}}}=(4.73,25.82)

There is enough evidence to reject the null hypothesis of no treatment effect.

e.

The results are the same as (b) because I used V^neyman\hat{\mathbb{V}}^{\mathrm{neyman}} as the variance estimator.

f.

g.

p.s.

st26+sc26=60.59722110(5st2+5sc2)(16+16)=60.59722\begin{aligned} \frac{s_{t}^{2}}{6}+\frac{s_{c}^{2}}{6} & =60.59722 \\ \frac{1}{10}(5s_{t}^{2}+5s_{c}^{2})\left( \frac{1}{6}+\frac{1}{6} \right) & = 60.59722 \end{aligned}

That's why the CI is the same as that in (f).

h.

(b) and (e) are the same. (f) is different because it uses t-distribution to construct the CI. Replacing z0.975z_{0.975} in (b) with t0.975,10t_{0.975,10} yields the same CI as (f).

Problem 2 (Theory for Neyman's approach)

(1)

a.

τ^dif=∑Yi(1)Wi∑Wi−∑Yi(0)(1−Wi)∑(1−Wi)\hat{\tau}^{\mathrm{dif}}=\frac{\sum Y_{i}(1)W_i}{\sum W_i}- \frac{\sum Y_{i}(0)(1-W_i)}{\sum(1-W_i)}

b.

Under complete randomization, WiW_i's satisfy

E[Wi]=NtN∑Wi=Nt\mathbb{E}[W_i]=\frac{N_t}{N}\quad \sum W_i=N_t

therefore

E[τ^dif]=∑Yi(1)NtNNt−∑Yi(0)NcNNc=τfs\mathbb{E}[\hat{\tau}^{\mathrm{dif}}]=\frac{\sum Y_{i}(1) \frac{N_t}{N}}{N_t}-\frac{\sum Y_{i}(0) \frac{N_c}{N}}{N_c}=\tau_{fs}

c.

τ^dif=1Nt∑i:Wi=1(Yiobs−Xi)−1Nc∑i:Wi=0(Yiobs−Xi)=∑(Yi(1)−Xi)Wi∑Wi−∑(Yi(0)−Xi)(1−Wi)∑(1−Wi)\begin{aligned} \hat{\tau}^{\mathrm{dif}} & = \frac{1}{N_t}\sum_{i:W_i=1}(Y_i^{obs}-X_{i})-\frac{1}{N_c}\sum_{i:W_i=0}(Y_i^{obs}-X_{i}) \\ & = \frac{\sum(Y_{i}(1)-X_{i})W_{i}}{\sum W_{i}}-\frac{\sum(Y_{i}(0)-X_{i})(1-W_{i})}{\sum (1-W_{i})} \end{aligned}

d.

Similar to (b)

E[τ^dif]=1N∑(Yi(1)−Xi)−1N∑(Yi(0)−Xi)=τfs\mathbb{E}[\hat{\tau}^{\mathrm{dif}}]=\frac{1}{N}\sum(Y_{i}(1)-X_i)-\frac{1}{N}\sum(Y_{i}(0)-X_i)=\tau_{fs}

e.

They have different variances.

(2)

E[Yiobs(Xi−μX)]=E{[Yi(1)Wi+Yi(0)(1−Wi)]Xi}−μXE[Yi(1)Wi+Yi(0)(1−Wi)]\mathbb{E}[Y_{i}^{obs}(X_i-\mu_X)]=\mathbb{E}\left\{ [Y_{i}(1)W_i+Y_i(0)(1-W_i)]X_{i} \right\}-\mu_{X}\mathbb{E}[Y_{i}(1)W_i+Y_i(0)(1-W_i)]

The former part:

…=E[XiYi(1)NtN+XiYi(0)NcN]=NtN(Cov(Xi,Yi(1))+μXμt)+NcN(Cov(Xi,Yi(0))+μXμc)\begin{aligned} \dots & = \mathbb{E}\left[ X_iY_i(1) \frac{N_{t}}{N}+X_iY_i(0) \frac{N_c}{N} \right] \\ & = \frac{N_{t}}{N}(\mathrm{Cov}(X_{i},Y_{i}(1))+\mu_{X}\mu_{t})+\frac{N_c}{N}(\mathrm{Cov}(X_{i},Y_{i}(0))+\mu_{X}\mu_{c}) \end{aligned}

The later part:

…=μX(μtNtN+μcNcN)\begin{aligned} \dots & = \mu_{X}\left( \mu_{t} \frac{N_t}{N}+\mu_{c} \frac{N_c}{N} \right) \end{aligned}

thus

E[Yiobs(Xi−μX)]=NtNCov(Xi,Y(1))+NcNCov(Xi,Yi(0))\mathbb{E}[Y_{i}^{obs}(X_i-\mu_X)]=\frac{N_t}{N}\mathrm{Cov}(X_i,Y(1))+ \frac{N_c}{N}\mathrm{Cov}(X_i,Y_i(0))

Problem 3 (Theory for Regression approach)

a.

1N∑i=1Nτ^i=1N[∑i:Wi=1(Yi(1)−Yˉc)+∑i:Wi=0(Yˉt−Yi(0))]=1N(NtYˉt−NtYˉc+NcYˉt−NcYˉc)=Yˉt−Yˉc=τ^dif\begin{aligned} \frac{1}{N}\sum_{i=1}^{N} \hat{\tau}_{i} & = \frac{1}{N}\left[ \sum _{i:W_i=1}(Y_{i}(1)-\bar{Y}_{c})+\sum _{i:W_i=0}(\bar{Y}_{t}-Y_{i}(0)) \right] \\ & = \frac{1}{N}(N_{t}\bar{Y}_{t}-N_{t}\bar{Y}_{c}+N_{c}\bar{Y}_{t}-N_{c}\bar{Y}_{c}) \\ & = \bar{Y}_{t}-\bar{Y}_{c} \\ & = \hat{\tau}^{\mathrm{dif}} \end{aligned}

b.

Let τi=Yi(1)−Yi(0),E[Y1(1)]=μt,E[Yi(0)]=μc,E[τi]=τsp,E[Wi]=p\tau_{i}=Y_i(1)-Y_i(0),\mathbb{E}[Y_1(1)]=\mu_{t},\mathbb{E}[Y_i(0)]=\mu_{c},\mathbb{E}[\tau_{i}]=\tau_{sp},\mathbb{E}[W_i]=p.

E[(Yiobs−α−τWi)2]=E[((τi−τ)Wi+Yi(0)−α)2]=p[E(τi−τsp)2+(τsp−τ)2]+E[(Yi(0)−μc)2]+(μc−α)2+2pE(τi−τ)(Yi(0)−α)=…=pτ2+α2+2pτα−2pμtτ−2(μc+pτsp)α+…\begin{aligned} \mathbb{E}[(Y_{i}^{obs}-\alpha-\tau W_{i})^{2}] & = \mathbb{E}[((\tau_{i}-\tau)W_i+Y_i(0)-\alpha)^{2}] \\ & = p[\mathbb{E}(\tau_{i}-\tau_{sp})^{2}+(\tau_{sp}-\tau)^{2}] \\ & +\mathbb{E}[(Y_i(0)-\mu_{c})^{2}]+ (\mu_{c}-\alpha)^{2} \\ & +2p\mathbb{E}(\tau_{i}-\tau)(Y_{i}(0)-\alpha) \\ & = \dots \\ & = p\tau^{2}+\alpha^{2}+2p\tau \alpha-2p\mu_{t}\tau-2(\mu_{c}+p\tau_{sp})\alpha+\dots \end{aligned}

the "..." in the last line has nothing to do with (α,τ)(\alpha,\tau), to minimize it, we only need to focus on pτ2+α2+2pτα−2pμtτ−2(μc+pτsp)αp\tau^{2}+\alpha^{2}+2p\tau \alpha-2p\mu_{t}\tau-2(\mu_{c}+p\tau_{sp})\alpha.

Apparently it has minimum. Find its first order conditions:

τ+α=μtα−μc=p(τsp−τ)\begin{aligned} \tau+\alpha & =\mu_{t} \\ \alpha-\mu_{c} & =p(\tau_{sp}-\tau) \end{aligned}

The solution is

α=μcτ=τsp\begin{aligned} \alpha & = \mu_{c} \\ \tau & =\tau_{sp} \end{aligned}


There is a more elegant way:

E[(Yiobs−α−τWi)2]=pE[(Yi(1)−α−τ)2]+(1−p)E[(Yi(0)−α)2]=pE[(Yi(1)−μt+μt−α−τ)2]+(1−p)E[(Yi(0)−μc+μc−α)2]=p[σt2+(μt−α−τ)2]+(1−p)[σc2+(μc−α2)]\begin{aligned} \mathbb{E}[(Y_{i}^{obs}-\alpha-\tau W_{i})^{2}] & = p\mathbb{E}[(Y_{i}(1)-\alpha-\tau)^{2}]+(1-p)\mathbb{E}[(Y_{i}(0)-\alpha)^{2}] \\ & = p\mathbb{E}[(Y_{i}(1)-\mu_{t}+\mu_{t}-\alpha-\tau)^{2}]+(1-p)\mathbb{E}[(Y_{i}(0)-\mu_{c}+\mu_{c}-\alpha)^{2}] \\ & = p[\sigma_{t}^{2}+(\mu_{t}-\alpha-\tau)^{2}]+(1-p)[\sigma_{c}^{2}+(\mu_{c}-\alpha^{2})] \end{aligned}

The first line uses

  1. Law of total expectation
  2. Wi⊥(Yi(1),Yi(0))W_i\perp (Y_i(1),Y_i(0))

The second line means to get the variances.


CI-HW2
https://wtx17.github.io/2026/10/03/CI-HW2/
作者
wtx
发布于
2026年10月3日
更新于
2026年11月6日
许可协议