Targeted Maximum Likelihood Estimation (Epidemiology)

Statistics
Introduced by
Mark J. van der Laan & Daniel Rubin; Megan Schuler & Sherri Rose (epidemiology tutorial)
Year
2006
Type
Doubly-robust substitution estimator with a targeting update and machine-learning nuisance models
Family
Causal inference / targeted learning

What does it do?

Targeted maximum likelihood estimation (TMLE), introduced by Mark van der Laan and Daniel Rubin in 2006, is a doubly robust, semiparametric framework for estimating causal effects that combines flexible machine learning with the theory of efficient influence functions.

It first estimates two nuisance quantities, the outcome regression and the propensity score, typically with a super learner ensemble, and then applies a targeting step that adjusts the outcome model in the direction needed to reduce plug-in bias for the causal parameter of interest. The resulting substitution estimator is consistent if either the outcome model or the propensity model is correct, and asymptotically efficient if both are. Schuler and Rose's 2017 American Journal of Epidemiology tutorial presents TMLE step by step for applied researchers estimating the average treatment effect in observational studies.

The intuition behind the method

Two classic strategies for estimating a treatment effect each have a weakness. You can model the outcome (predict everyone's outcome under treatment and under control, then average the difference), but if your outcome model is wrong, you're biased. Or you can weight by the propensity score, but if that model is wrong, you're biased too. TMLE refuses to bet everything on one. It starts with a flexible machine-learned guess of the outcome, which is great for prediction but not specifically tuned for the causal contrast you care about — so its plug-in estimate carries a residual bias. The targeting step uses information from the propensity score to apply one small, principled correction to that outcome model, fluctuating it just enough to zero out the bias for the target parameter. Because the correction draws on the propensity model and the base draws on the outcome model, you only need one of the two to be right to be consistent. And because machine learning handles the nuisance functions, you don't have to guess the functional forms.

History

Targeted maximum likelihood estimation was introduced by Mark van der Laan and Daniel Rubin in 2006 in The International Journal of Biostatistics. Their paper describes a targeted maximum likelihood estimator that updates an initial fit along the efficient influence curve of the parameter, and shows that iterating the update solves the efficient influence curve estimating equation, yielding a locally efficient estimator under regularity conditions. The paper also proposes data-driven ways to select the initial estimator and relates the approach to the locally efficient estimating-function methodology used for doubly robust estimation. Uptake in epidemiology was slower, as Schuler and Rose noted in their 2017 American Journal of Epidemiology tutorial, which presented TMLE step by step for estimating average treatment effects in observational studies and compared it with g-computation and inverse probability weighting in simulations, with discussion of ensembled machine-learning algorithms as best practice.

When to use it

Use TMLE when you want a causal effect estimate that is both robust to model misspecification and efficient, and you are willing to let machine learning estimate the nuisance functions rather than guessing parametric forms. It is especially attractive when confounding is high-dimensional or the relationships between confounders, treatment, and outcome are unknown or nonlinear, and when you value double robustness, meaning protection if either the outcome or the propensity model is wrong. It applies to point-treatment effects, where the mechanics on this page estimate the average treatment effect on the risk-difference scale; other scales, such as the risk ratio, need a separately derived estimand and inference. In its longitudinal form it extends to time-varying treatments. In social epidemiology it suits effects of social exposures with many measured confounders of uncertain form. Prefer a simple g-formula or IPTW when the data are small and parametric models are credible, since TMLE's machine-learning components need enough data to behave well. Be cautious under severe positivity violations, where extreme propensities destabilize the clever covariate.

Limitations and considerations

  • More complex to understand and implement than g-computation or IPTW, raising the barrier to correct use.
  • Sensitive to positivity violations: extreme propensity scores inflate the clever covariate and destabilize the update.
  • Performance depends on a well-constructed super-learner library; a poor candidate set undermines both robustness and efficiency.
  • Valid inference can require cross-fitting and adequate sample size for the machine-learning estimators to converge fast enough.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Doubly robust: consistent if either the outcome regression or the propensity model is correctly specified.
  • Achieves the semiparametric efficiency bound when both nuisance models are estimated well, giving precise estimates.
  • Naturally incorporates machine learning (super learner) for nuisance functions, removing the need to specify functional forms.
  • As a substitution estimator it respects parameter bounds, which tends to make it more stable than some competing doubly robust methods under sparsity.

Applications

  • Estimating average treatment effects on the risk-difference scale from observational data with many confounders of unknown form.
  • Causal effects of social exposures (income, education, neighborhood) where confounding relationships are complex and nonlinear.
  • Longitudinal causal effects of time-varying treatments via the longitudinal TMLE (ltmle) extension.
  • Comparative-effectiveness and pharmacoepidemiology studies seeking doubly robust, efficient effect estimates.

How it works

How it works

1

The first step estimates the outcome regression, the expected outcome given treatment and confounders. Rather than commit to a single parametric form, TMLE typically uses a super learner: a cross-validated ensemble that combines many candidate algorithms (regressions, splines, trees, gradient boosting, and so on) into a weighted blend with optimal predictive performance. This data-adaptive base estimate is excellent for prediction but is not yet tailored to the causal target, so it provides the starting 'initial' fit that the later targeting step will refine. Using flexible learning here is what frees the analyst from having to specify the confounder functional form correctly.

Formula
\bar{Q}^0(A,W) = \hat{E}[Y \mid A, W] = \sum_{m} \hat{w}_m \, \hat{f}_m(A,W)
2

Next the propensity score, the probability of treatment given confounders, is estimated, again ideally with a super learner. From the propensity score the method constructs the so-called clever covariate, a function of treatment and the inverse propensity that encodes the direction in which the outcome model must be adjusted to eliminate bias for the target parameter. This is where information about treatment assignment enters; combined with the outcome model, it delivers double robustness.

Formula
g(A,W) = \hat{\Pr}(A=1 \mid W),\quad H(A,W) = \frac{\mathbb{1}[A=1]}{g(A,W)} - \frac{\mathbb{1}[A=0]}{1-g(A,W)}
3

The defining step of TMLE is the targeting fluctuation. The initial outcome fit is updated by running a one-parameter regression in which the clever covariate is the sole predictor and the initial fit enters as an offset; the estimated coefficient is added back to the outcome model on the logit scale. This moves the outcome estimate along the efficient influence function so that the updated fit approximately solves the estimating equation for the causal parameter, removing first-order plug-in bias while changing predictions only modestly. The 2006 paper notes that for linear parameters in convex models the targeted estimator is often reached in the first step, while iteration of the update is the general procedure.

Formula
\operatorname{logit}\bar{Q}^{1}(A,W) = \operatorname{logit}\bar{Q}^{0}(A,W) + \hat{\epsilon}\, H(A,W)
4

With the targeted outcome model in hand, the causal effect is obtained as a substitution (plug-in) estimator: predict each subject's outcome under treatment and under control using the updated model, take the difference, and average over the empirical distribution of confounders. Because TMLE is a substitution estimator it respects the bounds of the parameter space, for instance a risk difference stays within plausible limits, which can make it more stable than some estimating-equation alternatives, especially under sparse data or extreme propensities.

Formula
\hat{\psi}_{\text{TMLE}} = \frac{1}{n}\sum_{i=1}^{n}\bigl[\bar{Q}^{1}(1,W_i) - \bar{Q}^{1}(0,W_i)\bigr]
5

Finally, inference uses the efficient influence function. The variance of the TMLE estimate is computed from the empirical variance of the estimated influence-function values, yielding standard errors and Wald confidence intervals. Because the targeting step makes the estimate a solution to the influence-function estimating equation, these standard errors are asymptotically justified under the semiparametric model when the nuisance estimators converge fast enough; cross-fitting is often added to relax conditions on the machine-learning estimators.

Formula
\widehat{\mathrm{se}}(\hat{\psi}) = \sqrt{\frac{1}{n^2}\sum_{i=1}^{n}\widehat{IC}(O_i)^2},\quad \widehat{IC} = H(A,W)\bigl(Y-\bar{Q}^{1}\bigr) + \bar{Q}^{1}(1,W)-\bar{Q}^{1}(0,W)-\hat{\psi}

Common pitfalls

  • Using a thin or inappropriate super-learner library, which forfeits the flexibility that justifies TMLE in the first place.
  • Ignoring positivity and letting near-zero or near-one propensities produce unstable, high-variance updates.
  • Treating TMLE as a black box and reporting effects without checking propensity overlap or influence-function diagnostics.
  • Skipping cross-fitting (or sample splitting) when using aggressive learners, which can bias the influence-function-based standard errors.

Frequently asked questions

What does 'doubly robust' mean for TMLE?

Double robustness means the estimator is consistent (converges to the true causal effect) if at least one of two nuisance models is correctly specified: the outcome regression or the propensity score. If both are right, TMLE is also asymptotically efficient, attaining the smallest possible variance in the semiparametric model. This is a substantial safeguard over single-model approaches like plain g-computation (which needs the outcome model right) or plain IPTW (which needs the propensity model right). With super learner estimating both, the practical hope is that flexible learning makes at least one, and usually both, adequately correct.

How is TMLE different from augmented inverse-probability weighting (AIPW)?

Both AIPW and TMLE are doubly robust estimators that combine an outcome model and a propensity model, and both can use machine learning with cross-fitting. The key difference is that TMLE is a substitution (plug-in) estimator: it updates the outcome model with a targeting step and then plugs predictions in, so the estimate respects the parameter's natural bounds. AIPW is an estimating-equation estimator that adds an augmentation term and can occasionally produce out-of-range values under sparse data or extreme weights. Whether TMLE is more stable in a given analysis depends on the data, particularly when propensities are extreme; AIPW is conceptually simpler. Both target the same efficiency bound.

Why use a super learner instead of a single model?

TMLE's robustness and efficiency arguments rely on estimating the nuisance functions well, but the true functional forms are unknown. A super learner is a cross-validated ensemble that combines many candidate algorithms and weights them by out-of-sample performance, so it adapts to whatever structure the data hold without the analyst guessing. Using it for both the outcome and propensity models raises the chance that each is approximately correct, which is what the robustness argument needs. A single misspecified parametric model undercuts that rationale, so the ensembled machine-learning approach is commonly recommended as the default for the nuisance models.

What must hold for the TMLE estimate to be read as a causal effect?

The estimate has a causal interpretation only under standard causal assumptions. The main ones are consistency (each subject's observed outcome equals the potential outcome under the treatment actually received, with a well-defined treatment), conditional exchangeability given the measured confounders W (no unmeasured confounding), positivity (0 < g(A,W) < 1, so that every stratum of confounders has a chance of both treatment levels, which should be checked in the data), and no interference (one subject's treatment does not affect another subject's outcome). Double robustness and efficiency describe the statistical behaviour of the estimator given these assumptions; they do not correct for confounding that the measured variables fail to capture.

Related methods

Sources

  1. van der Laan, M. J., & Rubin, D. (2006). Targeted maximum likelihood learning. The International Journal of Biostatistics, 2(1), Article 11.

    Open DOI reference
  2. Schuler, M. S., & Rose, S. (2017). Targeted maximum likelihood estimation for causal inference in observational studies. American Journal of Epidemiology, 185(1), 65-73.

    Open DOI reference