Doubly Robust Estimator — Se Yoon Lee, Ph.D.

Explore the augmented inverse probability weighted estimator for a marginal causal risk difference. Fit a treatment model and an outcome model, inspect each subject’s residual correction, and verify the “one correct nuisance model is enough” property through repeated simulations.

Core operation: outcome-regression predictions provide a starting value; inverse-probability weighted residuals correct those predictions using the observed outcomes.
AIPW • GRADUATE LEVEL • INLINE SVG

Mathematical formulation

One notation system is used throughout: φ is the uncentered AIPW estimating signal, φc is that signal centered by its empirical mean, D* is the true nonparametric efficient influence function, and IFstack is the influence value of the finite-dimensional stacked M-estimator. These objects are related, but they are not interchangeable.

Graduate-level notation
O=(X,T,Y)∼P₀
Observed data. T∈{0,1} is the observed treatment; a∈{0,1} indexes a hypothetical intervention level.
e₀(x)=P₀(T=1|X=x)
True propensity score for treatment 1.
πa,0(x)=P₀(T=a|X=x)
Treatment-level probability: πa,0(x)=e₀(x)a{1−e₀(x)}1−a. Hence π1,0=e₀ and π0,0=1−e₀.
ma,0(x)=E₀(Y|T=a,X=x)
True conditional outcome mean under observed treatment level a.
η₀=(e₀,m0,0,m1,0)
Collection of nuisance functions under the true observed-data law.
Pₙf=n⁻¹Σᵢf(Oᵢ)
Empirical average. The evaluation nuisance fit is η̂ for same-sample fitting and η̂(−k(i)) for subject i under cross-fitting.
Causal target under consistency, exchangeability, and positivity
ψa,0=E0{Y(a)}=E0{ma,0(X)}, Δ0=ψ1,0ψ0,0
AIPW estimating signal and estimator
πa(x)P(T=a|X=x) =e(x)a{1e(x)}1a =ae(x)+(1a){1e(x)},a{0,1}. φa(O;η)=ma(X)+ 𝟙(T=a){Yma(X)}πa(X). φ^a,i= φa(Oi;η^),same-sample fitting, φa(Oi;η^(k(i))),cross-fitting. φΔ(O;η)φ1(O;η)φ0(O;η), ψ^a=Pnφ^a,Δ^=Pnφ^Δ.
Reading rule: the entire indicator–residual product is in the numerator, and πa(X) is the denominator. Thus π1(X)=e(X) and π0(X)=1−e(X); the signal requires πa(X)>0 almost surely.

Treated-world signal

φ^1,i=m^1(Xi)+Ti{Yim^1(Xi)}e~i

The actual weighting score is ẽᵢ=Π[ε,1−ε](êᵢ). With ε=0, ẽᵢ=êᵢ apart from a machine-precision floor.

Control-world signal

φ^0,i=m^0(Xi)+(1Ti){Yim^0(Xi)}1e~i

The same empirical distribution of X is used for both treatment worlds.

ATE signal and estimator

φ^Δ,i=φ^1,iφ^0,i,Δ^=1ni=1nφ^Δ,i.

φ̂Δ,i is an uncentered AIPW signal, sometimes called an AIPW pseudo-outcome. It is not itself the EIF.

Notation rule used everywhere below: φ denotes the uncentered AIPW signal; φc=φ−Pₙφ denotes its empirically centered version; D* is reserved for the true nonparametric efficient influence function; IFstack denotes the influence value from the finite-dimensional stacked estimating equations.
Nuisance evaluation rule: for same-sample fitting, φ̂a,ia(Oi;η̂). Under K-fold cross-fitting, if i∈Ik, then φ̂a,ia(Oi;η̂(−k)). Thus the observation-specific evaluation fit is not treated as a new population nuisance function.

1. Subjects in the observational cohort

Color is observed smoking status, ring is observed CVD, and point size can display inverse weight, augmentation, or the stacked-estimator influence value.

SmokerNon-smokerCVDlimited support
Click a subject to inspect its outcome-model contrast, augmentation, uncentered AIPW signal, centered AIPW signal, and stacked-estimator influence value.

Selected subject

The uncentered AIPW signal is assembled one person at a time. Centering creates φ̂ᶜΔ,i; stacked linearization creates IF̂stackΔ,i. Only the latter is automatically the working-model influence value under one-model misspecification.

2. Propensity-score overlap

Estimated P(smoker | X) by observed treatment group.

SmokersNon-smokerstruncation bounds
The doubly robust property does not eliminate the need for positivity. Large inverse weights can still dominate the correction term.

3. Outcome-model calibration

Observed CVD frequency versus fitted observed-treatment risk.

Prediction calibration is informative but does not establish causal exchangeability or correct counterfactual extrapolation.

4. Prediction plus augmentation correction

The final AIPW estimate is the outcome-regression contrast plus a weighted residual correction.

5. Distribution of subject-level AIPW signals

φ̂Δ,i can be negative or exceed one even though its average estimates a risk difference.

Observed smokersObserved non-smokerssample mean
Extreme AIPW signals often reflect poor overlap, large outcome residuals, or both. The signal itself is not the EIF because it is not centered at zero.

6. The double-robustness matrix

Click any cell to refit the dashboard. Green cells satisfy the theoretical union-model condition under the displayed, untruncated propensity score; amber indicates that nonvanishing truncation compromises propensity-only protection.

One cohort can still be noisy. The repeated-sampling experiment below distinguishes sampling variation from systematic misspecification bias.

7. Estimator comparison

Crude, IPW, outcome regression, and AIPW estimates under the currently selected nuisance models.

8. Repeated-sampling double-robustness experiment

Generate independent cohorts, refit all four nuisance-model combinations, and compare bias and 95% CI coverage.

No experiment run yet0%
Run the experiment to see the double-robustness pattern emerge across repeated studies.
Intervals are centered by the fixed reference-population approximation to the superpopulation ATE for the selected data-generating law. Green intervals contain zero after centering; red intervals miss it. Every repetition refits all nuisance models and recomputes the appropriate stacked sandwich.
Inspect subject-level nuisance predictions and AIPW contributions
SubjectAgeBMIIncomeTYê rawẽ usedm̂0m̂1OR contrastT correctionControl correctionφ̂Δ,i signalφ̂ᶜΔ,i=φ̂Δ,i−Δ̂IF̂stack