8 Observational Study (Regular Assignment Mechanism): Design & Analysis

Recap

RAMs have good properties, among which the following is the most important

Wi⊥(Yi(1),Yi(0))∣XiW_{i}\perp(Y_{i}(1),Y_{i}(0))\mid X_{i}

In order not to make strata too small, we group data by e(Xi)e(X_{i}). And e(Xi)e(X_{i}) satisfies

Wi⊥Xi∣e(Xi)W_{i}\perp X_{i}\mid e(X_{i})

This is saying that in each stratum, theoretically the distribution of the covariates are balanced among the treated and controlled group. But we don't know e(Xi)e(X_{i}) in RAMs, so estimation is needed.

Design

Full Process

  1. Estimating propensity score
  2. Assessing balance
  3. Improving balance
    1. Trimming
    2. Blocking
    3. Matching
  4. Repeat until balance is good

One may ask whether there's issue of overfitting if we repeat many times. The answer is no need to worry. Because we never see YiobsY_{i}^{\mathrm{obs}} during the whole process.

Assessing Covariate Balance

Assess Balance in Univariate Distributions

Can use KL, two sample t-test, etc. to assess.

Assess Balance in Multivariate Distributions

Can use Mahalanobis distance (refer here) to assess.
420

Assess Balance in Multivariate Distributions with PS

All above is not important. This section is important.

Define linearized propensity score ((0,1)→R(0,1)\to \mathbb{R})

ℓ(x)=ln⁡(e(x)1−e(x))\ell(x)=\ln \left( \frac{e(x)}{1-e(x)} \right)

ℓ(X)\ell(X) is closer to normal distribution than e(X)e(X).

ℓˉc=1Nc∑i:Wi=0ℓ(Xi),sℓ,c2=1Nc−1∑i:Wi=0(ℓ(Xi)−ℓˉc)2ℓˉt=1Nt∑i:Wi=1ℓ(Xi),sℓ,t2=1Nt−1∑i:Wi=1(ℓ(Xi)−ℓˉt)2Δ^ctℓ=ℓˉt−ℓˉc(sℓ,c2+sℓ,t2)/2\begin{aligned} \bar{\ell}_c &= \frac{1}{N_c} \sum_{i:W_i=0} \ell(X_i), & s_{\ell,c}^2 &= \frac{1}{N_c - 1} \sum_{i:W_i=0} (\ell(X_i) - \bar{\ell}_c)^2 \\ \bar{\ell}_t &= \frac{1}{N_t} \sum_{i:W_i=1} \ell(X_i), & s_{\ell,t}^2 &= \frac{1}{N_t - 1} \sum_{i:W_i=1} (\ell(X_i) - \bar{\ell}_t)^2 \\ \hat{\Delta}_{ct}^{\ell} &= \frac{\bar{\ell}_t - \bar{\ell}_c}{\sqrt{(s_{\ell,c}^2 + s_{\ell,t}^2) / 2}} \\ \end{aligned}

The intuition is

Δ^ctℓ≈0  ⟺  ℓ^c≈ℓ^t  ⟺  E[e(Xi)∣Wi=1]≈E[e(Xi)∣Wi=0]\hat{\Delta}_{ct}^{\ell}\approx 0 \iff \hat{\ell}_{c}\approx \hat{\ell}_{t}\iff \mathbb{E}[e(X_{i})\mid W_{i}=1] \approx \mathbb{E}[e(X_{i})\mid W_{i}=0]

The following theorem ensures that this univariate-like method can assess balance between multivariate distributions.

Theorem 14.1 (Propensity Score and Covariate Balance)
Suppose the assignment mechanism is unconfounded and individualistic. Then,

  1. the variance of the true propensity score satisfies

V(e(Xi))=E[(ft(Xi)−fc(Xi)ft(Xi)⋅p+fc(Xi)⋅(1−p))2]⋅p2⋅(1−p)2\mathbb{V}(e(X_i)) = \mathbb{E}\left[\left(\frac{f_t(X_i) - f_c(X_i)}{f_t(X_i) \cdot p + f_c(X_i) \cdot (1 - p)}\right)^2\right] \cdot p^2 \cdot (1 - p)^2

and
2. the expected difference in propensity scores by treatment status satisfies

E[e(Xi)∣Wi=1]−E[e(Xi)∣Wi=0]=V(e(Xi))p⋅(1−p).\mathbb{E}[e(X_i)\vert{}W_i = 1] - \mathbb{E}[e(X_i)\vert{}W_i = 0] = \frac{\mathbb{V}(e(X_i))}{p \cdot (1 - p)}.

e(Xi)=P(Wi=1∣Xi)=E[Wi∣Xi]  ⟹  E[e(Xi)]=E[Wi]=pe(X_{i})=P(W_{i}=1\mid X_{i})=\mathbb{E}[W_{i}\mid X_{i}]\implies \mathbb{E}[e(X_{i})]=\mathbb{E}[W_{i}]=p

Improving Covariate Balance

Improve by Trimming

纵轴:个体的 PS
横轴:处理或者对照组

PS 较高的个体都在处理组,PS 较低的个体都在处理组。这两块咱分析不了,咋搞都不平衡,那就不研究了。507
但是注意,我们的 estimand 变了,不再是超总体的 ATE 了,而是一个子群体的 ATE。

Improve by Blocking on PS

The Methodology

  • Break a block to two sub-blocks by the middle point recursively
  • Stop when a block is adequate or too small to split

418


Assessment

Assessing Balance within Strata for Each Covariate

The null hypothesis is

H0:μt,k(j)=μc,k(j)H_0:\mu_{t,k}(j)=\mu_{c,k}(j)

The test statistic for kk-th variable in jj-th block is

zjk=Xˉt,k(j)−Xˉc,k(j)sk2(j)(1Nc(j)+1Nt(j))z_{jk}=\frac{\bar{X}_{t,k}(j)-\bar{X}_{c,k}(j)}{\sqrt{s_{k}^{2}(j)\left( \frac{1}{N_{c}(j)}+\frac{1}{N_{t}(j)} \right)}}

where Xˉt,k(j)\bar{X}_{t,k}(j) is the sample mean of XkX_{k} of the treated units in jj-th stratum. sk2(j)s_{k}^{2}(j) is the pooled sample variance of XkX_{k} in jj-th stratum.

Under proper conditions we have

zjk∼app.N(0,1)z_{jk}\overset{app.}{\sim} N(0,1)


Assessing Global Balance for Each Covariate across Strata

The null hypothesis is

H0:∑j=1JN(j)N(μt,k(j)−μc,k(j))=0H_{0}: \sum_{j=1}^{J} \frac{N(j)}{N} \left(\mu_{t,k}(j)-\mu_{c,k}(j)\right)=0

Let

τ^kX(j)=Xˉt,k(j)−Xˉc,k(j),V^kX(j)=sk2(j)(1Nc(j)+1Nt(j))\hat\tau_k^X(j) = \bar X_{t,k}(j)-\bar X_{c,k}(j),\quad \hat{\mathbb{V}}_k^X(j) = s_k^2(j) \left( \frac{1}{N_c(j)}+\frac{1}{N_t(j)} \right)

further let

τ^kX=∑j=1JN(j)Nτ^kX(j),V^kX=∑j=1J(N(j)N)2V^kX(j)\hat\tau_k^X = \sum_{j=1}^J \frac{N(j)}{N} \hat\tau_k^X(j),\quad \hat{\mathbb{V}}_{k}^{X}=\sum_{j=1}^{J} \left( \frac{N(j)}{N} \right)^{2}\hat{\mathbb{V}}_k^X(j)

The test statistic is

zk=τ^kXV^kXz_{k}=\frac{\hat\tau_k^X}{\sqrt{\hat{\mathbb{V}}_{k}^{X}}}


Here is an example:

What about the issue of multiple testing?

A: We are not conducting hypothesis testing. We are assessing balance. Comparing the values in "No stratums" and "2nd" tells how blocking improves balance.

Improve by Matching

Analysis

Blocking

Neyman estimator without blocking, which is τ^dif=Yˉtobs−Yˉtobs\hat{\tau}^{\mathrm{dif}}=\bar{Y}^{\mathrm{obs}}_{t}-\bar{Y}^{\mathrm{obs}}_{t}, is biased.

Esp[τ^dif]−τsp=E[τ^dif]−τsp=E[τ^dif]−E[τfs]=E[τ^dif−τfs]=E[E[τ^dif−τfs∣W,X]]\begin{align} \mathbb{E}_{sp}[\hat{\tau}^{\mathrm{dif}}]-\tau_{sp} & = \mathbb{E}[\hat{\tau}^{\mathrm{dif}}]-\tau_{sp} \\ & = \mathbb{E}[\hat{\tau}^{\mathrm{dif}}]-\mathbb{E}[\tau_{fs}] \\ & = \mathbb{E}[\hat{\tau}^{\mathrm{dif}}-\tau_{fs}] \\ & = \mathbb{E}\big[\mathbb{E}[\hat{\tau}^{\mathrm{dif}}-\tau_{fs}\mid \boldsymbol{W},\boldsymbol{X}]\big] \end{align}

Assume the model below for potential outcomes:

E[Yi(w)∣Xi]=α+τspw+βTXi\mathbb{E}[Y_{i}(w)\mid X_{i}]=\alpha+\tau_{sp}w+\beta^TX_{i}

Then we have

E[τ^dif−τfs∣W,X]=βT(Xˉt−Xˉc)\mathbb{E}[\hat{\tau}^{\mathrm{dif}}-\tau_{fs}\mid \boldsymbol{W},\boldsymbol{X}]=\beta^T(\bar{X}_{t}-\bar{X}_{c})

TO BE DONE

So the bias of the estimator comes from the imbalance of the distribution of the covariates.

Similarly, can deduce the bias of Neyman estimator with blocking:

E[τ^strat−τfs∣W,X]=βT(∑j=1Jq(j)(Xˉt(j)−Xˉc(j)))\mathbb{E}[\hat{\tau}^{\mathrm{strat}}-\tau_{fs}\mid \boldsymbol{W},\boldsymbol{X}]=\beta^T\left( \sum_{j=1}^{J} q(j)(\bar{X}_{t}(j)-\bar{X}_{c}(j)) \right)

If within each stratum covariates have good balance, the bias will be much smaller.


We can further combine regression method. In each stratum jj, consider the following linear model

Yiobs=α(j)+τ(j)Wi+β(j)TXi+εiY_{i}^{\mathrm{obs}}=\alpha(j)+\tau(j)W_{i}+\beta(j)^TX_{i}+\varepsilon_{i}

Run OLS to get τ^adj(j)\hat{\tau}^{\mathrm{adj}}(j). Can show that

τ^adj(j)=Yˉt(j)−Yˉc(j)⏟τ^dif(j)−β^(j)T(Xˉt(j)−Xˉc(j))⏟adjust\hat\tau^{\mathrm{adj}}(j) = \underbrace{\bar Y_t(j)-\bar Y_c(j)}_{\hat{\tau}^{\mathrm{dif}}(j)} - \underbrace{ \hat{\beta}(j)^T(\bar X_t(j)-\bar X_c(j))}_{\text{adjust}}

In stratum jj, assume E[Yi(w)∣Xi]=α+τspw+βTXi\mathbb{E}[Y_{i}(w)\mid X_{i}]=\alpha+\tau_{sp}w+\beta^TX_{i}. We can see how regression adjust τ^dif(j)\hat{\tau}^{\mathrm{dif}}(j) in the image below.
520

And get the adjusted blocking estimator

τ^strat,adj=∑j=1Jq(j)τ^adj(j)\hat{\tau}^{\mathrm{strat,adj}}=\sum_{j=1}^{J} q(j)\hat{\tau}^{\mathrm{adj}}(j)

So if the linear model assumed above is true, then the adjusted estimator is unbiased.

Strata are divided by PS, and PS satisfies

Wi⊥Xi∣e(Xi)W_{i}\perp X_{i}\mid e(X_{i})

So in each stratum we can roughly say τ^adj(j)→pτ(j)\hat{\tau}^{\mathrm{adj}}(j)\overset{p}{\to}\tau(j) ("rough" because the PS is estimated and we do blocking on top of that) even if the model is wrong. However, be careful about the goodness of blocking.

So even if the assumed linear model above is wrong, using regression is indeed a local linear approximation and it doesn't cause major trouble as long as covariate balance is good.

Connection between Blocking & Weighting


The two in essence are both weighted estimators.

For basic subclassification estimator

  • Same weights within strata
  • Not require accurate estimate for PS

For weighting estimator

  • Each unit has its own weight
  • Require accurate estimate for PS

The basic subclassification estimator can be interpreted as a weighting estimator where the weights are based on the block-based coarsened propensity score.

Matching

TO BE DONE

The Double Robust Estimator

The weighting estimator often comes with the issue of high variance because 1e(Xi)\frac{1}{e(X_{i})} and 11−e(Xi)\frac{1}{1-e(X_{i})} can be very large, making WiYiobse(Xi)\frac{W_{i}Y_{i}^{\mathrm{obs}}}{e(X_{i})} and (1−Wi)Yiobs1−e(Xi)\frac{(1-W_{i})Y_{i}^{\mathrm{obs}}}{1-e(X_{i})} very large unless YiobsY_{i}^{\mathrm{obs}} itself is close to zero.

If we can find a good function m1m_{1} of the covariates XiX_{i} which can be used to predict Yi(1)Y_{i}(1) (The perfect one is E[Yi(1)∣X]\mathbb{E}[Y_{i}(1)\mid X], but it's hard to find), then we can rewrite Yi(1)Y_{i}(1) into

m1(Xi)+Yi(1)−m1(Xi)⏟=uim_{1}(X_{i})+\underbrace{Y_{i}(1)-m_{1}(X_{i})}_{=u_{i}}

where uiu_{i} tends to be close to zero and E[ui]=E[Wiuie(Xi)]\mathbb{E}[u_{i}]=\mathbb{E}\left[ \frac{W_{i}u_{i}}{e(X_{i})} \right]. So if we use weighting estimator to estimate E[ui]\mathbb{E}[u_{i}] we won't run into high variance trouble.

At the end,

E[Yi(1)]=E[m1(X)+Wi(Yiobs−m1(Xi))e(Xi)]\mathbb{E}[Y_{i}(1)]=\mathbb{E}\left[ m_{1}(X)+ \frac{W_{i}(Y_{i}^{\mathrm{obs}}-m_{1}(X_{i}))}{e(X_{i})} \right]

Note that WiYi(1)=WiYiobsW_{i}Y_{i}(1)=W_{i}Y_{i}^{\mathrm{obs}} and (1−Wi)Yi(0)=(1−Wi)Yiobs(1-W_{i})Y_{i}(0)=(1-W_{i})Y_{i}^{\mathrm{obs}}. Doing this transformation is for identifiability (can be observed).

Note that this hold because of e(Xi)e(X_{i}), we don't need m1(Xi)m_{1}(X_{i}) to be very good. On the other hand, if m1(X)m_{1}(X) is perfect, i.e., it equals to μ1(Xi)=E[Yi∣Xi]\mu_{1}(X_{i})=\mathbb{E}[Y_{i}\mid X_{i}], then we don't need e(Xi)e(X_{i}). Below we replace it with arbitrary function ff.

E[μ1(X)+Wi(Yiobs−μ1(Xi))f(Xi)]=E[Yi(1)]+E[Wi(Yiobs−μ1(Xi))f(Xi)∣Xi]=E[Yi(1)]+0\begin{align} \mathbb{E}\left[ \mu_{1}(X)+ \frac{W_{i}(Y_{i}^{\mathrm{obs}}-\mu_{1}(X_{i}))}{f(X_{i})} \right] & = \mathbb{E}[Y_{i}(1)]+\mathbb{E}\left[ \frac{W_{i}(Y_{i}^{\mathrm{obs}}-\mu_{1}(X_{i}))}{f(X_{i})}\mid X_{i}\right] \\ & = \mathbb{E}[Y_{i}(1)] +0 \end{align}

The two perspectives combines as the following theorem:

Theorem
Assume unconfoundedness and overlap. Then E[Yi(1)−Yi(0)]\mathbb{E}[Y_{i}(1)-Y_{i}(0)] can be correctly identified if either the PS model or the outcome model is correctly specified.

E[m1(X)+Wi(Yiobs−μ1(Xi))f(Xi)]−E[Yi(1)]=E[Wi−f(Xi)f(Xi)(Yi(1)−m1(Xi))]=E[E[Wi−f(Xi)f(Xi)(Yi(1)−m1(Xi))∣Xi]]=E[E[Wi−f(Xi)f(Xi)∣Xi]⋅E[Yi(1)−m1(Xi)∣Xi]]=E[e(Xi)−f(Xi)f(Xi)⋅(μ1(Xi)−m1(Xi))]\begin{align} \mathbb{E}\left[ m_{1}(X)+ \frac{W_{i}(Y_{i}^{\mathrm{obs}}-\mu_{1}(X_{i}))}{f(X_{i})} \right]-\mathbb{E}[Y_{i}(1)] & = \mathbb{E}\left[ \frac{W_{i}-f(X_{i})}{f(X_{i})}(Y_{i}(1)-m_{1}(X_{i})) \right] \\ & = \mathbb{E}\left[ \mathbb{E}\left[ \frac{W_{i}-f(X_{i})}{f(X_{i})}(Y_{i}(1)-m_{1}(X_{i})) \mid X_{i}\right] \right] \\ & = \mathbb{E}\left[ \mathbb{E}\left[ \frac{W_{i}-f(X_{i})}{f(X_{i})}\mid X_{i} \right]\cdot \mathbb{E}[Y_{i}(1)-m_{1}(X_{i}) \mid X_{i}] \right] \\ & = \mathbb{E}\left[ \frac{e(X_{i})-f(X_{i})}{f(X_{i})}\cdot (\mu_{1}(X_{i})-m_{1}(X_{i})) \right] \end{align}

With this intuition, we can estimate m1(X),m0(X),e(X)m_{1}(X),m_{0}(X),e(X) by m^1(X),m^0(X),e^(X)\hat{m}_{1}(X),\hat{m}_{0}(X),\hat{e}(X) and propose the following estimators for E[Yi(1)]\mathbb{E}[Y_{i}(1)] and E[Yi(0)]\mathbb{E}[Y_{i}(0)]:

μ^1DR=1N∑i=1N[m^1(Xi)+Wie^(Xi)(Yiobs−m^1(Xi))]μ^0DR=1N∑i=1N[m^0(Xi)+1−Wi1−e^(Xi)(Yiobs−m^0(Xi))]\hat\mu_1^{DR} =\frac1N\sum_{i=1}^N \left[ \hat m_1(X_i) +\frac{W_i}{\hat e(X_i)} (Y_i^{obs}-\hat m_1(X_i)) \right]\\ \hat\mu_0^{DR} =\frac1N\sum_{i=1}^N \left[ \hat m_0(X_i) +\frac{1-W_i}{1-\hat e(X_i)} (Y_i^{obs}-\hat m_0(X_i)) \right]

可识别性(包含的变量都可观测),和估计是两个层次概念。

无混杂假设和倾向得分

倾向得分的估计,在处理组倾向比较大


8 Observational Study (Regular Assignment Mechanism): Design & Analysis
https://wtx17.github.io/2026/11/18/8-RAM-Design-and-Analysis/
作者
wtx
发布于
2026年11月18日
更新于
2026年12月2日
许可协议