# 靶向最大似然估计

靶向最大似然估计（TMLE）是一种半参数估计方法，它将初始的参数拟合或机器学习拟合朝向选定的因果目标参数进行调整，产生一个具有有效统计推断的双重稳健替代估计量。该方法由马克·J·范德兰和丹尼尔·鲁宾在《靶向最大似然学习》（Targeted Maximum Likelihood Learning，载于《国际生物统计学期刊》，2006年）一文中提出。<sup>[1](https://doi.org/10.2202/1557-4679.1043)</sup> 一个朴素的插入式估计量——即简单地将结局回归的超级学习器拟合代入识别公式——对平均处理效应是有偏的，因为机器学习拟合是在整个回归函数上最小化预测风险，而非针对目标参数，且其抽样分布不是渐近线性的，因此无法直接从中构建有效的置信区间。<sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup> TMLE 增加了一个二级“靶向”步骤，针对目标参数优化偏差-方差权衡，产生一个具有沃尔德型推断的渐近线性估计量。<sup>[3](https://academic.oup.com/aje/article-pdf/185/1/65/9105214/kww165.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 提出者 | 马克·J·范德兰和丹尼尔·鲁宾，《国际生物统计学期刊》，2006年<sup>[1](https://doi.org/10.2202/1557-4679.1043)</sup> |
| 双重稳健性 | 只要结局模型 \( \bar{Q}_{0} \) 或处理模型 \( g_{0} \) 中至少有一个被一致估计，估计即一致；若两者均一致估计，则有效<sup>[4](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1209&context=jhubiostat)</sup><sup> • </sup><sup>[22](https://www.stats.bris.ac.uk/R/web/packages/drtmle/vignettes/using_drtmle.html)</sup> |
| 巧妙协变量（ATE） | \( H_{n}(A,W) = \frac{A}{g_{n}(1 \mid W)} - \frac{1-A}{1-g_{n}(1 \mid W)} \)<sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup> |
| 有限样本行为 | 作为替代估计量，它产生的估计值位于参数空间之内，而 AIPTW 则不然<sup>[5](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup> |
| 推断 | 渐近正态，方差为 \( \sigma^{2}/n \)；95% 置信区间为估计值 \( \pm \, 1.96 \, \hat{\sigma}/\sqrt{n} \)<sup>[6](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1255&context=ucbbiostat)</sup> |
| 软件 | tmle、tmle3、ltmle（R），以及 eltmle（Stata）<sup>[7](https://doi.org/10.18637/jss.v051.i13)</sup><sup> • </sup><sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup><sup> • </sup><sup>[8](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)</sup> |

## 工作原理

TMLE 通过初始密度或回归估计量构建一个最小不利参数子模型：这是一个参数化波动模型，在 \( \epsilon = 0 \) 时等于当前估计值，且其得分函数的线性张成包含目标参数的有效影响函数（即最优估计量方程必须求解的曲线）。<sup>[4](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1209&context=jhubiostat)</sup> 在原始表述中，一步（通过迭代则为 k 步）靶向估计量以初始估计量处的有效影响曲线为得分函数创建该子模型，通过最大似然估计波动参数 \( \epsilon \) 并进行更新；所得结果求解有效影响曲线估计方程，在正则条件下是局部有效的。<sup>[1](https://doi.org/10.2202/1557-4679.1043)</sup>

对于二值处理下的平均处理效应，巧妙协变量为 \( H_{n}(A,W) = \frac{A}{g_{n}(A \mid W)} - \frac{1-A}{1-g_{n}(A,W)} \)，更新形式为 \( f(\bar{Q}_{n}^{*}(A,W)) = f(\bar{Q}_{n}(A,W)) + \epsilon \cdot H_{n}(A,W) \)，其中 \( f \) 为适当的连接函数，如 logit。<sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup> 这些协变量被称为“巧妙”的，是因为其形式保证了有效影响曲线估计方程得以求解，从而实现双重稳健性和局部有效性。<sup>[5](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup>

## 操作步骤

1. **初始拟合。** 估计结局回归 \( \bar{Q}_{0}(A,W) \)，通常使用结合参数算法和机器学习算法的超级学习器。<sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup>
2. **巧妙协变量构建。** 估计倾向得分（给定特征下接受处理的概率）\( g_{n}(A \mid W) \)，并构造 \( H(1,W) \) 和 \( H(0,W) \)；对于单时间点二值处理，教程将巧妙协变量定义为 \( H(1,W) = A/\hat{g}(1 \mid W) \) 和 \( H(0,W) = (1-A)/\hat{g}(0 \mid W) \)。<sup>[5](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup><sup> • </sup><sup>[4](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1209&context=jhubiostat)</sup>
3. **波动。** 通过以初始预测 \( \bar{Q}_{0}(A,W) \) 的 logit 作为固定偏移项、以巧妙协变量为自变量对 \( Y \) 进行无截距逻辑回归来估计 \( \epsilon \)；也就是说，波动在连接尺度上是可加的，\( \mathrm{logit}(\bar{Q}_{1n}(A,W)) = \mathrm{logit}(\bar{Q}_{0n}(A,W)) + \epsilon \cdot h(A,W) \)，其中初始预测的 logit 作为固定偏移项。<sup>[5](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup><sup> • </sup><sup>[6](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1255&context=ucbbiostat)</sup>
4. **迭代至收敛。** 迭代靶向步骤直至有效影响曲线方程被求解；在罗森布卢姆的单时间点示例中，一次迭代即足够。<sup>[4](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1209&context=jhubiostat)</sup> 对于连续结局，先将 \( Y \) 缩放至边界 \( (a,b) \)，最后再对估计值和方差进行逆缩放。<sup>[5](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup>
5. **推断。** 每个 TML 估计量都有对应的有效影响函数描述其渐近分布；代入估计值并计算样本标准误即可得到沃尔德型置信区间。<sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup>

## 起源

TMLE 由马克·J·范德兰和丹尼尔·鲁宾在《靶向最大似然学习》一文中提出，该文于2006年12月28日在线发表于《国际生物统计学期刊》（第2卷，第1期）。<sup>[1](https://doi.org/10.2202/1557-4679.1043)</sup> 2006年的论文展示了双重稳健局部有效估计函数估计量（其中靶向最大似然估计量作为干扰参数估计）与靶向最大似然估计量本身之间的代数等价性，使该方法与20世纪90年代初的局部有效估计函数方法论完全一致。<sup>[1](https://doi.org/10.2202/1557-4679.1043)</sup> 其所依托的数据自适应机制包括由桑德拉·E·西尼西和马克·J·范德兰于2004年在《遗传学与分子生物学统计应用》中提出的删除/替换/添加学习算法。<sup>[9](https://doi.org/10.2202/1544-6115.1069)</sup>

## 变体

**纵向数据。** 范德兰在2010年发表的两篇系列论文中发展了多时间点干预因果效应的靶向最大似然估计，使用基于损失的超级学习器处理 G-计算公式的各因子，并采用迭代靶向更新步骤。<sup>[10](https://ctml.berkeley.edu/publications/targeted-maximum-likelihood-based-causal-inference-part-i)</sup><sup> • </sup><sup>[11](https://doi.org/10.2202/1557-4679.1241)</sup> 范德兰和苏珊·格鲁伯在2012年的论文中给出了一般纵向数据结构的干预特定均值的闭式 TMLE，将目标参数表示为条件期望的迭代序列；它整合了早期纵向数据双重稳健估计方程方法的关键思想，增加了数据自适应估计和稳健逻辑波动，在正则条件下具有双重稳健性和渐近有效性。<sup>[12](https://doi.org/10.1515/1557-4679.1370)</sup>

**协作式 TMLE。** 协作式双重稳健靶向最大似然估计由马克·J·范德兰和苏珊·格鲁伯于2010年提出。<sup>[13](https://doi.org/10.2202/1557-4679.1181)</sup> CTMLE 从初始 \( \bar{Q} \) 估计出发，结合越来越非参数的 \( g \) 估计构建一系列候选 TMLE 估计量，通过惩罚交叉验证似然进行选择，估计 \( g \) 时使用的损失是针对 \( \bar{Q} \) 的靶向 TMLE 的损失，而非 \( g \) 本身的损失。<sup>[13](https://doi.org/10.2202/1557-4679.1181)</sup> 贪婪 CTMLE 使用迭代前向选择逐个变量构建倾向得分模型；可扩展 CTMLE 按用户指定的顺序预排协变量，并可选提前停止规则，若不使用提前停止，则与贪婪 CTMLE 具有相同的渐近行为。<sup>[14](https://cdn-links.lww.com/permalink/ede/b/ede_29_1_2017_10_03_wyss_16-0682_sdc1.pdf)</sup>

**中介与生存。** 自然直接效应的 TMLE 由郑文静和马克·J·范德兰于2012年提出，<sup>[15](https://doi.org/10.2202/1557-4679.1361)</sup> tmle3mediate R 包实现了自然直接与间接效应和群体干预直接与间接效应。<sup>[16](https://tlverse.org/tmle3mediate/index.html)</sup> 2024年《 lifetime 数据分析》的一篇论文展示了针对事件时间连续分布的生存和竞争风险情形的 TMLE，通过条件风险的超级学习估计时间固定处理对生存率和绝对风险概率的效应。<sup>[17](https://ideas.repec.org/a/spr/lifeda/v30y2024i1d10.1007_s10985-022-09576-2.html)</sup>

## 应用

tmle R 包由苏珊·格鲁伯和马克·J·范德兰于2012年在《统计软件杂志》上介绍。<sup>[7](https://doi.org/10.18637/jss.v051.i13)</sup> tmle3 包通过 tmle3_Spec 对象（例如 tmle_ATE() 和 tmle_TSM_all()）以模块化方式实现该框架，默认使用 CV-TMLE 作为对抗过拟合偏差的稳健增强，通过删失逆概率权重处理缺失结局，用中位数或众数加插补指示变量插补缺失协变量，并删除缺失处理观测。<sup>[2](https://tlverse.org/tlverse-handbook/tmle3.html)</sup> 一个更轻量的实现 tmleLite 涵盖点处理效应。<sup>[6](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1255&context=ucbbiostat)</sup> CRAN 上的 ltmle 包涵盖纵向数据，<sup>[18](https://www.forumresearch.org/storage/documents/LiverForum/CausalInference/05_PartIV.pdf)</sup> 带交叉验证的 TMLE 也在 Stata 中以 eltmle 实现。<sup>[8](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)</sup> 早期应用涵盖体力活动、生物标志物分析、艾滋病研究、病例对照研究、自适应设计和二值结局随机试验。<sup>[13](https://doi.org/10.2202/1557-4679.1181)</sup> 2017年一项在参数回归误设定下比较 TMLE、G-计算和逆概率加权的模拟研究发现，TMLE 的双重稳健性赋予其优势，且所有方法在与超级学习器结合时均有改善。<sup>[3](https://academic.oup.com/aje/article-pdf/185/1/65/9105214/kww165.pdf)</sup>

## 局限与替代方案

**正值性。** 当实验性处理分配（ETA）假设被违反时，标准 TMLE 估计量及其估计方差会爆炸，表明缺乏可识别性。<sup>[19](https://people.csail.mit.edu/mrosenblum/Teaching_files/tmle_overview.pdf)</sup> 常见的修正方法是将倾向得分截断为 \( g_{n}^{*} = \max(\min(1 - \delta, g_{n}), \delta) \)，典型的 \( \delta \) 取0.025。<sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)</sup> TMLE 不能修复识别问题：未测量混杂和正值性违反会像任何其他调整方法一样使其产生偏差。<sup>[21](https://www.casrai.org/guides/targeted-maximum-likelihood-estimation-tmle)</sup>

**过拟合。** 如果 \( \bar{Q} \) 的初始估计量过拟合，就没有实际可用的残差变异留给靶向步骤，更新也就无法减少残余偏差；CV-TMLE 通过对初始估计量进行交叉验证（所研究的实现中为10折）来解决这一问题，在不对偏差产生不利影响的情况下改善覆盖率，尤其是在存在接近正值性违反的小样本中。<sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)</sup><sup> • </sup><sup>[8](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)</sup> tmle R 包默认使用 CVTMLE[Qg]。<sup>[8](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)</sup>

**替代方案。** TMLE 和 AIPTW 具有相同的渐近最小方差；其差异在于有限样本，TMLE 的替代形式保持在参数空间内。<sup>[5](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup> 2025年的一项蒙特卡洛研究发现，在大样本且无外推问题的情况下，TMLE、CVTMLE[Q]、CVTMLE[Qg] 和 CVTMLE[all] 的相对偏差低于2%，除包含随机森林的方法外，所有方法的覆盖率约为95%，其中 TMLE-RF 的覆盖率不足，仅在79%至92.4%之间。<sup>[8](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)</sup> 协作式 TMLE 在正值性违反下仍是一个可行选项。<sup>[8](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)</sup>

## References

1. [Mark J. van der Laan, Daniel Rubin (2006). Targeted Maximum Likelihood Learning. The International Journal of Biostatistics.](https://doi.org/10.2202/1557-4679.1043)
2. [Chapter 7 The TMLE Framework | Targeted Learning in R (tlverse handbook)](https://tlverse.org/tlverse-handbook/tmle3.html)
3. [Targeted Maximum Likelihood Estimation for Causal Inference in Observational Studies (American Journal of Epidemiology)](https://academic.oup.com/aje/article-pdf/185/1/65/9105214/kww165.pdf)
4. [Simple Examples of Estimating Causal Effects Using Targeted Maximum Likelihood Estimation (Rosenblum, Johns Hopkins)](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1209&context=jhubiostat)
5. [Targeted maximum likelihood estimation for a binary treatment: A tutorial (Luque-Fernandez et al., Statistics in Medicine)](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)
6. [Targeted Maximum Likelihood Estimation: A Gentle Introduction (UC Berkeley working paper, Gruber & van der Laan)](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1255&context=ucbbiostat)
7. [Susan Gruber, Mark J. van der Laan (2012). tmle : An R Package for Targeted Maximum Likelihood Estimation. Journal of Statistical Software.](https://doi.org/10.18637/jss.v051.i13)
8. [Performance of Cross-Validated Targeted Maximum Likelihood Estimation (Smith et al., 2025)](https://researchonline.lshtm.ac.uk/id/eprint/4676951/1/Smith-etal-2025-%20Performance-of-cross%E2%80%90validated.pdf)
9. [Sandra E Sinisi, Mark J. van der Laan (2004). Deletion/Substitution/Addition Algorithm in Learning with Applications in Genomics. Statistical Applications in Genetics and Molecular Biology.](https://doi.org/10.2202/1544-6115.1069)
10. [Targeted Maximum Likelihood Based Causal Inference: Part I (Berkeley CTML center page)](https://ctml.berkeley.edu/publications/targeted-maximum-likelihood-based-causal-inference-part-i)
11. [Mark J. van der Laan (2010). Targeted Maximum Likelihood Based Causal Inference: Part II. The International Journal of Biostatistics.](https://doi.org/10.2202/1557-4679.1241)
12. [Mark J. van der Laan, Susan Gruber (2012). Targeted Minimum Loss Based Estimation of Causal Effects of Multiple Time Point Interventions. The International Journal of Biostatistics.](https://doi.org/10.1515/1557-4679.1370)
13. [Mark J. van der Laan, Susan Gruber (2010). Collaborative Double Robust Targeted Maximum Likelihood Estimation. The International Journal of Biostatistics.](https://doi.org/10.2202/1557-4679.1181)
14. [eAppendix 1: Overview of TMLE, greedy CTMLE, and scalable CTMLE (Epidemiology)](https://cdn-links.lww.com/permalink/ede/b/ede_29_1_2017_10_03_wyss_16-0682_sdc1.pdf)
15. [Wenjing Zheng, Mark J. van der Laan (2012). Targeted Maximum Likelihood Estimation of Natural Direct Effects. The International Journal of Biostatistics.](https://doi.org/10.2202/1557-4679.1361)
16. [Targeted Learning for Causal Mediation Analysis • tmle3mediate](https://tlverse.org/tmle3mediate/index.html)
17. [Targeted maximum likelihood estimation for causal inference in survival and competing risks analysis (Lifetime Data Analysis 30(1), 2024)](https://ideas.repec.org/a/spr/lifeda/v30y2024i1d10.1007_s10985-022-09576-2.html)
18. [Targeted Learning for Data Adaptive Causal Inference in Observational and Randomized Studies (van der Laan & Gruber slides)](https://www.forumresearch.org/storage/documents/LiverForum/CausalInference/05_PartIV.pdf)
19. [Estimating Causal Effects Using Targeted Maximum Likelihood Estimation (Rosenblum and van der Laan, March 16, 2010)](https://people.csail.mit.edu/mrosenblum/Teaching_files/tmle_overview.pdf)
20. [Evaluating the robustness of targeted maximum likelihood estimators via realistic simulations in nutrition intervention trials](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)
21. [Targeted Maximum Likelihood Estimation (TMLE): The ML-Compatible Doubly Robust Estimator](https://www.casrai.org/guides/targeted-maximum-likelihood-estimation-tmle)
22. [drtmle: Doubly-Robust Inference in R](https://www.stats.bris.ac.uk/R/web/packages/drtmle/vignettes/using_drtmle.html)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Estimation theory and estimator families

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/targeted-maximum-likelihood-estimation

English original: https://www.edgepedia.org/targeted-maximum-likelihood-estimation
