Statistics & probability

Augmented inverse probability weighted ATE calculator from cross-fitted nuisance predictions

Each row contains treatment, observed outcome, propensity and predicted outcomes under control and treatment.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Each row contains treatment, observed outcome, propensity and predicted outcomes under control and treatment. Predictions must correspond to the same individual.

THE FORMULAψᵢ=m1ᵢ−m0ᵢ+Aᵢ(Yᵢ−m1ᵢ)/eᵢ−(1−Aᵢ)(Yᵢ−m0ᵢ)/(1−eᵢ); τ̂=meanψ.

A worked example

Four scores are[1,7,5,3], repeated five times. ATE4; score SSE100; sample variance100/19; SE=sqrt(5/19). Reversal gives−4; perfect nuisance scores all3,SE0.

Good to know

20–1000 independent complete rows: treatment, outcome,e,m0,m1; at least5 each treatment; propensities in[0.01,0.99]; external held-out/cross-fitted predictions only, empirical influence SE and normal CI; no nuisance training, ATT, longitudinal treatment or unconditional guarantee from supplied predictions.

Supply nuisance predictions from held-out observations

Each row contains treatment, observed outcome, propensity and predicted outcomes under control and treatment. Predictions must correspond to the same individual.

External or cross-fitted predictions keep the evaluation row outside its nuisance training set. This calculator does not fit those models or verify the training separation.

First four AIPW subject scoresFirst four AIPW subject scoresControl 11Treated 17Control 25Treated 23Scores 1,7,5,3 repeat five times; their average ATE is 4.
Scroll across to see the full diagram.
Scores 1,7,5,3 repeat five times; their average ATE is 4.

Compare this with the Inverse probability weighted treatment effect calculator from propensity scores. Compute m1−m0+A(Y−m1)/e−(1−A)(Y−m0)/(1−e), averaging row influence scores and reporting their estimated SE under stated cross-fitting conditions. Existing IPW uses only supplied propensities and separately normalized weighted observed outcomes, with no outcome regressions or SE.

Combine the regression contrast and both corrections

Start with predicted treatment minus predicted control outcome. Add a propensity-weighted treated residual or subtract a weighted control residual.

The correction uses the observed treatment only, but the prediction contrast uses both potential-outcome regressions. Merely supplying a propensity is ordinary weighting, not this augmented score. Each supplied row includes the observed treatment A, outcome Y, propensity e and predicted untreated and treated means m0,m1. The augmentation begins with m1−m0, then adds a treatment-specific inverse-probability residual correction. In the default the repeating scores are1,7,5,3, with average4. This gives an easily checked example of why the estimate is not merely the average difference between the two outcome-prediction columns. Residuals carry information left unexplained by those predictions.

Explain the double-robustness claim carefully

Under the causal identification assumptions, consistency can survive misspecification of either one of the two nuisance components when the other is correctly specified.

That statement does not cover both models being wrong, weak overlap or arbitrary estimation error. Cross-fitted normal inference also needs suitable nuisance convergence conditions.

Work through the checked default example

Four scores are[1,7,5,3], repeated five times. ATE4; score SSE100; sample variance100/19; SE=sqrt(5/19). Reversal gives−4; perfect nuisance scores all3,SE0.

The score sample variance is100/19 and the standard error is sqrt(5/19), approximately0.512989. The normal95% interval is approximately[2.99455969,5.00544031]; the example arithmetic does not itself verify nuisance training conditions. The empirical influence values are each row's score minus the average score. Their sample variance divided by n supplies the reported squared standard error, under the stated nuisance-estimation conditions. The default standard error is about0.5129892, giving a normal95% interval of roughly2.99456 to5.00544. This calculation assumes the nuisance predictions were generated out of sample, such as by cross-fitting. Feeding fitted values from the same unrestricted training rows into this formula does not automatically preserve its asymptotic inference, even if every supplied number lies inside the allowed range.

Use subject scores for the uncertainty estimate

Average the scores for the ATE estimate. Estimate standard error from their sample variance divided by the number of independent observations.

This reference uses variance divisor n−1 before dividing by n. The convention matters in small examples and should be matched when comparing another implementation.

Check overlap before interpreting a stable number

Propensities near zero or one amplify residual corrections. The bounded input range prevents division by a near-zero denominator but cannot prove adequate overlap.

Do not silently trim observations or truncate propensities. Either change would alter the estimator or target population and must be specified outside this score calculation. Double robustness concerns consistency when one of two nuisance model components is correctly specified under the required identification assumptions. It does not mean that any two poor prediction columns cancel each other's errors, or that the reported interval is reliable without rate and regularity conditions. Propensities close to zero or one magnify corrections and instability; the interface enforces a bounded range but cannot establish population overlap. For observational causal interpretation you also need consistency and conditional exchangeability. The calculator performs the specified score arithmetic and makes these assumptions visible; it does not verify the causal design from numeric rows.

Separate arithmetic from causal identification

Consistency, conditional exchangeability and positivity justify an average causal interpretation. None follows from a finite numeric table.

The supported estimator targets the ATE under individual independent sampling. ATT, clustered variance and longitudinal treatment need different scores or variance calculations. Outcome units carry through the estimate and interval. For a dollar outcome the ATE is in dollars, while a binary outcome difference is on the probability scale, not automatically an odds ratio. Rescaling every outcome and both outcome predictions by the same factor should rescale the estimate and standard error by the corresponding magnitude, providing an independent arithmetic check.

A few questions, answered

Does this fit propensity or outcome models?

No. It consumes externally estimated or cross-fitted predictions and evaluates the augmented scores.

Does double robustness mean both models can be wrong?

No. The familiar consistency property requires at least one nuisance component to be correctly specified under additional assumptions.

Why differ from normalized IPW?

AIPW adds outcome predictions and uses a different score, rather than separately normalizing observed weighted means.

Is the displayed standard error always causal-valid?

No. It additionally depends on independent sampling, nuisance estimation conditions and causal identification assumptions.

Find your calculator

Start typing to explore the library.