Tutorials › Econometrics (Graduate) › Influence-Function Inference for AIPW

Matching and Weighting Methods · Tutorial 650 of 952

Influence-Function Inference for AIPW

Learn how the AIPW influence function accounts for outcome and treatment models, and how to use it for standard errors and confidence intervals.

Advanced 11 min read

What You'll Learn

  • State the identification and regularity assumptions behind influence-function inference for the ATE.
  • Derive the AIPW influence function from the identified ATE functional.
  • Compute plug-in AIPW contributions and empirical influence values.
  • Estimate the asymptotic variance and standard error from centered influence values.
  • Construct and interpret a normal-approximation confidence interval.
  • Recognize when fitted nuisance models or dependence require adjustments to the basic variance calculation.

Why Influence-Function Inference Matters

An AIPW estimate combines an outcome regression with inverse-probability weighting. Its point estimate alone does not show how much sampling uncertainty remains. Influence-function inference supplies a practical variance estimate by describing how each observation contributes to first-order variation in the estimated average treatment effect (ATE). It also makes clear why uncertainty from fitting the nuisance models can be handled by the standard formula under suitable conditions.

The formula is not a substitute for assumptions. The causal interpretation requires identification assumptions, and the normal confidence interval requires regularity and adequate nuisance-model estimation. The result below is for independent, identically distributed observations and a binary treatment.

Setup and Assumptions

For each unit, observe \(O=(Y,A,X)\), where \(Y\) is the outcome, \(A\in\{0,1\}\) is treatment status, and \(X\) is a vector of pre-treatment covariates. Let \(Y(1)\) and \(Y(0)\) denote the potential outcomes, and define the ATE as \(\psi=E[Y(1)-Y(0)]\). The nuisance functions are the propensity score \(e(X)=P(A=1\mid X)\) and the conditional outcome means \(m_a(X)=E[Y\mid A=a,X]\), for \(a=0,1\).

The causal interpretation uses consistency, conditional exchangeability, and positivity. Consistency means \(Y=AY(1)+(1-A)Y(0)\). Conditional exchangeability means \((Y(1),Y(0))\) is independent of \(A\) given \(X\). Positivity means \(0<e(X)<1\) almost surely; for stable inference, probabilities should also not be arbitrarily close to zero or one in the target population. These assumptions identify the ATE as \(E[m_1(X)-m_0(X)]\).

Definition: Under these assumptions, the AIPW estimating contribution for one observation is $$ g(O;\eta)=m_1(X)-m_0(X) +\frac{A}{e(X)}\{Y-m_1(X)\} -\frac{1-A}{1-e(X)}\{Y-m_0(X)\}, $$ where \(\eta\) denotes the nuisance functions. Replacing the functions by estimates and averaging the resulting contributions gives the AIPW estimator \(\hat\psi=n^{-1}\sum_{i=1}^n g(O_i;\hat\eta)\).

The ATE Influence Function

The influence function describes the first-order effect of a small change in the data distribution on the target parameter. For the ATE under the conditions above, it is the centered AIPW contribution:

Theorem: The influence function for the ATE is $$ \phi(O)=m_1(X)-m_0(X)-\psi +\frac{A}{e(X)}\{Y-m_1(X)\} -\frac{1-A}{1-e(X)}\{Y-m_0(X)\}. $$ It has mean zero and, under finite second moments, variance \(E[\phi(O)^2]\). If nuisance estimates satisfy suitable consistency and rate conditions, the AIPW estimator is asymptotically linear with this influence function.

The formula has two parts. The term \(m_1(X)-m_0(X)-\psi\) reflects variation in covariates and in the conditional treatment contrast. The other terms correct for outcome residuals: treated units supply information about \(m_1\), and control units supply information about \(m_0\). The factors \(1/e(X)\) and \(1/\{1-e(X)\}\) account for the fact that only a fraction of units at a given \(X\) are observed in each treatment group.

A short derivation helps explain why these corrections appear. Write \(\tau(X)=m_1(X)-m_0(X)\), so the identified functional is \(\psi=E[\tau(X)]\). Along a smooth perturbation of the data distribution with score \(s(O)\), the change in the distribution of \(X\) contributes \(E[(\tau(X)-\psi)s(O)]\). The conditional outcome mean changes contribute \(E[\dot m_1(X)-\dot m_0(X)]\), where the conditional-mean derivatives are \(E[(Y-m_1(X))s(O)\mid A=1,X]\) and \(E[(Y-m_0(X))s(O)\mid A=0,X]\).

The residual terms in \(\phi\) reproduce exactly those conditional derivatives when multiplied by the score and averaged. For example, \(E[A\{Y-m_1(X)\}s/e(X)\mid X]\) equals \(E[(Y-m_1(X))s\mid A=1,X]\). The control term gives the corresponding control derivative with a minus sign. The propensity mechanism has no separate derivative term because the identified target is an average over \(X\), not an average over the treatment assignment mechanism. Thus the displayed \(\phi\) has mean zero and its inner product with any score gives the derivative of the ATE functional, which is the influence-function characterization.

Worked Example: Evaluating AIPW Contributions

Consider four hypothetical independent observations. Suppose the fitted propensity is \(0.5\) for each unit. For each observation, the fitted outcome means and observed outcome are as follows. Outcomes and effects are measured in points.

Unit\(A\)\(Y\)\(\hat m_1(X)\)\(\hat m_0(X)\)
111085
21784
30364
40574

For unit 1, the contribution is \(8-5+(10-8)/0.5=3+4=7\). For unit 2 it is \(8-4+(7-8)/0.5=4-2=2\). For unit 3 it is \(6-4-(3-4)/0.5=2+2=4\). For unit 4 it is \(7-4-(5-4)/0.5=3-2=1\). The AIPW estimate is therefore \(\hat\psi=(7+2+4+1)/4=3.5\) points.

The estimated influence values, formed by subtracting the estimate from each contribution, are \(3.5,-1.5,0.5,-2.5\). They sum to zero, as they should when the estimate is the mean of the contributions. Their squared values sum to \(3.5^2+(-1.5)^2+0.5^2+(-2.5)^2=21\). Using the sample variance of the influence values gives \(\hat V_\phi=21/(4-1)=7\) points squared, and the estimated standard error is \(\sqrt{\hat V_\phi/4}=\sqrt{1.75}=1.323\) points.

Estimating the Variance With Fitted Nuisance Models

In practice, \(e(X)\) and \(m_a(X)\) are unknown, so the influence function is estimated by substituting fitted nuisance functions and the AIPW estimate. For observation \(i\), define

$$ \hat\phi_i= \hat m_1(X_i)-\hat m_0(X_i)-\hat\psi +\frac{A_i}{\hat e(X_i)}\{Y_i-\hat m_1(X_i)\} -\frac{1-A_i}{1-\hat e(X_i)}\{Y_i-\hat m_0(X_i)\}. $$

Because fitted quantities and finite-sample calculations need not make the values sum to exactly zero, center them before estimating their variance. The usual empirical estimate of the influence-function variance and the corresponding standard error are

$$ \bar{\hat\phi}=\frac{1}{n}\sum_{i=1}^n\hat\phi_i,\qquad \hat V_\phi=\frac{1}{n-1}\sum_{i=1}^n(\hat\phi_i-\bar{\hat\phi})^2,\qquad \widehat{SE}(\hat\psi)=\sqrt{\frac{\hat V_\phi}{n}}. $$

The variance estimate for \(\hat\psi\) is \(\hat V_\phi/n\); its square root is the standard error. The \(n-1\) denominator makes \(\hat V_\phi\) the sample variance of the estimated influence values. All quantities in the influence function have outcome units, so its variance has squared outcome units and the standard error has outcome units.

Worked Example: A Normal-Approximation Confidence Interval

Suppose a hypothetical analysis of \(n=6\) independent units gives \(\hat\psi=6.2\) points. After fitting the nuisance models and calculating each plug-in influence value, suppose the six values are \(-1.6431, 1.6431, -1.6431, 1.6431, -1.6431, 1.6431\). Their mean is zero. The empirical influence variance is \(\hat V_\phi=6(1.6431^2)/5\approx3.2397\) points squared. Therefore,

$$ \widehat{SE}(\hat\psi) =\sqrt{\frac{3.2397}{6}} \approx 0.7348\text{ points}. $$

For a 95% normal-approximation interval, use the standard normal critical value 1.96: \(1.96(0.7348)=1.440208\), a margin of approximately \(1.440\) points. The interval is \(6.2\pm1.440208=(4.759792,7.640208)\), or approximately \((4.760,7.640)\) points. Under the stated assumptions and the normal approximation, this procedure has approximately 95% repeated-sampling coverage for the ATE. It does not mean there is a 95% probability that this fixed ATE lies in this particular interval.

Conditions for the Standard Error to Be Valid

Plugging fitted nuisance functions into the influence function is not automatically sufficient for valid inference. A standard route to the stated asymptotic result is that both nuisance estimates consistently estimate their target functions, positivity is controlled, the outcome has adequate moments, and the product of the nuisance estimation errors is small enough. A commonly used rate condition is that the product of their relevant estimation errors is \(o_p(n^{-1/2})\). This permits each nuisance estimate to converge more slowly than \(n^{-1/2}\) individually, provided their combined error is sufficiently small.

When flexible machine-learning methods are used, cross-fitting is often used: nuisance models are fitted on other folds of the data, then evaluated on the held-out observations to form the AIPW contributions. This reduces bias from using the same observations both to fit complex nuisance functions and to evaluate their residuals. Cross-fitting does not by itself guarantee valid inference; consistency, rate, moment, and overlap conditions remain necessary. With regular, correctly specified finite-dimensional nuisance models, standard fitted-model inference can also be justified under the corresponding regularity conditions.

Double robustness concerns consistency of the AIPW point estimator when either the propensity model or outcome model is correctly specified, under the assumptions previously stated for that result. It does not mean that the simple plug-in influence variance is automatically valid whenever just one nuisance model is correct and the other converges to a wrong limit. In that situation, fitting the misspecified nuisance model can affect first-order variation; valid inference may require accounting for that fitting step. The variance formula here is justified in the setting where the nuisance estimates support the stated influence-function expansion.

The independent-observation formula also assumes independent sampling. If observations are clustered or otherwise dependent, treating every unit's influence value as independent generally understates or misstates uncertainty. The variance calculation must then reflect the sampling dependence, for example by aggregating contributions at the independent cluster level when that is justified by the design.

Common Pitfall

Common mistake: “The nuisance models were fitted, so I can use the standard deviation of the raw outcomes as the AIPW standard error.” This ignores the AIPW estimating contributions, their weights, and the outcome residual corrections. Instead, calculate one plug-in influence value per observation, center those values, estimate their variance, and divide that variance by \(n\) before taking the square root. Also check the assumptions that justify the influence-function approximation.

Influence-function inference matters because it connects the estimator to a transparent unit-level measure of uncertainty. Large absolute influence values can signal that a few observations dominate the estimated effect, often because of large inverse-probability weights or unusual residuals. That is a reason to investigate overlap and model fit; it is not, by itself, permission to change the target population or discard observations without justification.

Check Your Understanding

Use the definitions and conditions above to answer the following questions.

  1. In the ATE influence function, what roles are played by the term \(m_1(X)-m_0(X)-\psi\) and by the two weighted residual terms?
  2. If the centered estimated influence values have sample variance 9 and the sample size is 100, what is the estimated standard error of the AIPW estimate?
  3. Why does a fitted propensity score close to zero or one raise concerns for influence-function inference?
  4. What does a 95% normal-approximation confidence interval mean in repeated sampling?
  5. Why does double robustness of the point estimator not, by itself, guarantee validity of the plug-in influence-function standard error under nuisance-model misspecification?
Clinical Biostats