Hanqing Li Hanqing Li 李汉青


Matching and stratification use the design stage to construct treated and control groups with comparable measured covariates. Their causal validity comes from exchangeability and overlap; their statistical behavior also depends on the geometry of the matching variables and on how uncertainty from reuse and imperfect matches is handled.

Exact matching and subclassification

Definition. Exact matching compares treated and control units only within identical covariate strata. If \(S(X)\) indexes strata, a standardized stratified estimator is \[ \widehat\tau= \sum_s\widehat P(S=s) \{\overline Y_{1s}-\overline Y_{0s}\}. \]

Theorem. If treatment is exchangeable within \(S\), consistency holds, and both treatment arms occur in every target stratum, then the population analogue \[ \sum_sP(S=s) \{\mathbb E(Y\mid A=1,S=s)- \mathbb E(Y\mid A=0,S=s)\} \] equals the ATE.

Proof. Conditional exchangeability and consistency identify each stratum's potential-outcome means. Average the stratum-specific effect over the target stratum distribution.

Nearest-neighbor matching

Definition. Given a distance \(d\), one-to-one nearest-neighbor matching assigns to treated unit \(i\) \[ j(i)\in\operatorname*{argmin}_{j:A_j=0}d(X_i,X_j). \] The matching estimator for the ATT is \[ \widehat\tau_{\mathrm{M}}= \frac1{n_1}\sum_{i:A_i=1}\{Y_i-Y_{j(i)}\}. \]

Matching with replacement can reuse a close control and reduce bias, but creates dependence and concentrates weight. Matching without replacement spreads weight but can force poor late matches; greedy order then matters.

The dimensionality of matching bias

Proposition. Suppose \(X\in[0,1]^d\) has a density bounded away from zero and infinity. The distance from a point to its nearest neighbor among \(m\) independent controls is typically of order \(m^{-1/d}\). If \(m_0(x)=\mathbb E(Y(0)\mid X=x)\) is Lipschitz, nearest-neighbor matching bias is therefore of order \(m^{-1/d}\).

Proof outline. A ball of radius \(r\) has probability of order \(r^d\). The probability that none of \(m\) controls lies in it is approximately \((1-cr^d)^m\approx e^{-cmr^d}\), which changes scale at \(r\asymp m^{-1/d}\). Lipschitz continuity converts covariate distance to outcome-regression difference.

This curse of dimensionality motivates matching on a scalar balancing score or low-dimensional prognostic representation. Such compression reduces geometric bias only if its balancing assumptions are credible.

Calipers and common support

Definition. A caliper \(\delta\) permits a match only if \(d(X_i,X_j)\le\delta\). Units without admissible matches are discarded.

A caliper bounds local extrapolation but changes the target population when units are discarded. The report should describe who was excluded and define whether the resulting effect targets matched treated units, an overlap population, or a trimmed ATE.

Mahalanobis and propensity distances

Definition. Mahalanobis distance is \[ d_M(x,x')= \{(x-x')^\top\widehat\Sigma^{-1}(x-x')\}^{1/2}. \] Propensity-score matching often uses \(|\operatorname{logit}\widehat e(x)- \operatorname{logit}\widehat e(x')|\).

Mahalanobis matching balances the specified covariate geometry, while propensity matching targets treatment-assignment balance. A common hybrid imposes a propensity caliper and minimizes Mahalanobis distance within it.

Bias correction after matching

Proposition. For ATT matching, let \(\widehat m_0(x)\) estimate the control outcome regression. The bias-corrected contrast \[ \widehat\tau_{\mathrm{BC}}= \frac1{n_1}\sum_{i:A_i=1} \left[ Y_i-Y_{j(i)}- \{\widehat m_0(X_i)-\widehat m_0(X_{j(i)})\} \right] \] removes the first-order mismatch bias when \(\widehat m_0\) is sufficiently accurate.

Proof. Conditional on covariates, the expected untreated-outcome difference between a treated unit and its matched control is \(m_0(X_i)-m_0(X_{j(i)})\). Subtracting a consistent estimate of this term centers the matched control contrast at the desired counterfactual mean.

Full matching as weighting

Full matching partitions observations into matched sets containing at least one unit from each arm. A treated unit in a set with \(n_{1s}\) treated and \(n_{0s}\) controls receives a different analysis weight from a control. In this way, matching induces balancing weights; it is useful to inspect those weights, their effective sample size, and the covariate balance they achieve rather than treating the matching algorithm as a black box.

Balance diagnostics

Definition. The standardized mean difference for covariate \(X_j\) is \[ \operatorname{SMD}_j= \frac{\overline X_{1j}-\overline X_{0j}} {\{(s_{1j}^2+s_{0j}^2)/2\}^{1/2}}, \] computed with the analysis weights after matching.

Balance assessment should include nonlinear terms and interactions that matter for treatment or outcome, not only raw means. A nonsignificant two-sample test is not evidence of balance: its \(p\)-value depends strongly on sample size, whereas standardized imbalance measures the design discrepancy directly.

Why ordinary bootstrap can fail for nearest-neighbor matching

Remark. Fixed-neighbor matching is a nonsmooth functional of the empirical distribution: tiny perturbations can change match identities discretely. The ordinary nonparametric bootstrap can therefore fail to reproduce its first-order law. Analytic variance formulas, subsampling, or smooth matching/weighting estimators may be preferable, depending on the precise design.

Design before outcomes

Matching specifications should be chosen without using post-treatment outcomes whenever possible. This mirrors randomized-experiment design and prevents outcome-guided choices from silently selecting a favorable estimate. Outcome modeling can then improve precision within the fixed matched design.