Targeted Maximum Likelihood Estimation
Rather than trying to make an entire outcome model perfectly accurate everywhere, TMLE takes a rough initial estimate and applies one small, deliberately targeted correction aimed only at fixing bias in the specific number you actually want.
Prerequisites: Doubly Robust Estimation, Propensity Score Methods
Estimating a causal effect usually starts with fitting an outcome model — predict from treatment and covariates — and reading the treatment effect off that model. The problem is that a model chosen to minimize overall prediction error is optimizing the wrong target: it is tuned to be accurate on average across the whole dataset, not specifically unbiased for the one number you actually care about, like the average treatment effect. Targeted maximum likelihood estimation (TMLE) fixes this with a second, deliberate step: take that initial rough model and nudge it, in a very specific direction, until it stops being biased for exactly the quantity in question.
The analogy: a general-purpose scale, recalibrated for one specific weight
Imagine a kitchen scale built to be reasonably accurate across its whole range, from a gram to a kilogram. If you specifically and repeatedly need to weigh amounts near 200 grams for a recipe, you might apply a small, targeted calibration adjustment — informed by known reference weights near 200 grams — that makes the scale exactly accurate right there, possibly at the cost of being slightly less accurate elsewhere. TMLE does this to a statistical model: it starts with an initial outcome estimate (good, but not targeted), then uses information about how likely each unit was to receive treatment (the propensity score) to apply a small, mathematically precise correction — a "fluctuation" — that removes bias specifically for the causal quantity being estimated, even if the underlying model was never perfect.
The mechanics, step by step
- Fit an initial outcome regression predicting from treatment and covariates , using any flexible model.
- Fit the propensity score .
- Build the clever covariate — a quantity built entirely from the propensity score, larger for units whose observed treatment was unlikely given their covariates.
- Fit a single fluctuation parameter by a small logistic regression of on , holding fixed as an offset, and use to nudge into .
- Read the treatment effect off the updated — this final estimate is provably unbiased if either the outcome model or the propensity model was correctly specified (double robustness), not just when both were.
Worked example 1: the clever covariate by hand
Two units: unit 1 is treated () with (very likely to be treated); unit 2 is treated with (unlikely to be treated, an unusual case). . . Unit 2, whose treatment status was surprising given its covariates, gets four times the weight of unit 1 in the fluctuation step — exactly the units where the initial outcome model is most likely to be uncorrected for confounding get the largest nudge, which is the whole point of using the propensity score to target the correction.
Worked example 2: double robustness in action
Suppose the true propensity is for all units (effectively randomized), but the fitted outcome model is badly misspecified — say it underestimates every treated unit's outcome by a constant 2. A naive estimate reading the effect straight off inherits that bias of 2. TMLE's fluctuation step regresses the actual residual (the leftover error in ) against , which is exactly the treatment indicator rescaled — since the propensity is correct, this fluctuation successfully absorbs the constant 2-unit bias in , and the corrected estimate lands at the true effect even though the original outcome model was wrong. Swap the story (propensity misspecified, outcome model correct) and the same correction still works — that's the "doubly" in doubly robust.
The fluctuation step is literally fit by logistic regression — this saturating curve is the same functional form used to nudge toward via the estimated .
TMLE starts from an initial, possibly imperfect outcome model, then applies one small, propensity-informed correction step that removes bias specifically in the causal estimate being targeted. Because the correction step uses the propensity score, the final estimate is unbiased if either the outcome model or the propensity model is correct — not both.
What this means in practice
TMLE is used where regulators or researchers need not just a point estimate but a statistically valid confidence interval for a causal effect from observational data — it produces both, with the double-robustness property acting as insurance against having picked the wrong flexible model for either the outcome or the propensity, which is common when both are fit with black-box machine learning.
The common confusion is thinking double robustness means "the estimate is correct if both models are wrong in unrelated ways." It does not — double robustness only guarantees correctness if at least one of the two models (outcome or propensity) is correctly specified. If both are wrong, TMLE's correction step has nothing valid to lean on, and the final estimate can still be biased, just as with any other method.
Related concepts
Practice in interviews
Further reading
- van der Laan & Rose, Targeted Learning: Causal and Statistical Inference for Observational and Experimental Data (2011)