# 加法模型

加法模型是一种回归模型，其中每个预测变量对响应的效应是其各自贡献之和，不含交互项，因此对任一样例的预测响应是通过将每个预测变量的一个分量相加而构建的。这一思想出现在两个相互关联的场景中：作为非参数回归模型，它以光滑函数取代线性模型的系数；以及作为广义加法模型（GAM）的核心结构。由于每个预测变量单独贡献，拟合后的模型可以逐变量解读；加法模型比标准线性模型更灵活，同时又比一般的非可加回归曲面更易解释。<sup>[1](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 广义加法模型不含特征交互，正因如此被描述为易于用户解释。<sup>[2](https://dl.acm.org/doi/abs/10.1145/2339530.2339556)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义形式 | \( E[Y] = \beta_0 + f_1(x_1) + \cdots + f_p(x_p) \)，每个预测变量一个分量，不含交互项<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> |
| 可识别性 | 需要中心化约束，如对每个分量要求 \( E\,r_j(X_j) = 0 \)<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> |
| 标准拟合算法 | 后向拟合，一种逐变量平滑偏残差的高斯-赛德尔循环<sup>[1](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> |
| 统计收益 | 在可加性下，各分量可以单变量速率 \( n^{-2\beta/(2\beta+1)} \) 估计，而非 \( p \) 维速率<sup>[4](https://gregorkb.github.io/nonparm/additiveresults.html)</sup> |
| 主要弱点 | 除非显式加入，否则变量间的交互会被遗漏<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> |
| 标准软件 | R包gam和mgcv，二者均提供gam()命令<sup>[5](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup> |
| GAM形式 | \( g(E[Y \mid X=x]) = \beta_0 + f_1(x_1) + \cdots + f_p(x_p) \)，带有连接函数 \( g \)<sup>[6](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)</sup> |

## 工作原理

加法模型从线性模型出发，将每个线性项替换为一元非线性函数：\( Y = \beta_0 + r_1(X_1) + \cdots + r_p(X_p) + \varepsilon \)。<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> 等价地，条件期望是偏响应函数之和，每个预测变量对应一个，而线性模型是每个 \( f_j \) 均为线性的特例。<sup>[5](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup> 不加限制时该分解不可识别，因为常数可在各分量之间自由转移，因此假定 \( E(Y) = \beta_0 \) 且 \( E\,r_j(X_j) = 0 \)。<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup>

可加性是可分离性假设：改变 \( x_1 \) 的效应不依赖于 \( x_2 \) 的取值。含交互的模型则包含形如 \( r_{ij}(X_i, X_j) \) 的项，其贡献联合依赖于两个变量。在GAM中，加法结构位于连接函数之后，\( g(E[Y \mid X=x]) = \beta_0 + f_1(x_1) + \cdots + f_p(x_p) \)，其中 \( f_j \) 为未指定的光滑函数<sup>[6](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)</sup>；GAM是广义线性模型，其线性预测子包含协变量光滑函数之和，函数形状由数据估计。<sup>[7](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034249)</sup>

其动机是维数灾难：在 \( p \) 维中完全非参数的平滑器方差随 \( p \) 指数增长，而每次只对单个坐标平滑可压低方差，并在每个坐标上保持局部性。<sup>[8](https://pdodds.w3.uvm.edu/files/papers/others/hastie1986a.pdf)</sup> 当可加性成立时，Hölder类 \( H(\beta, L) \) 中的每个分量可以按速率 \( n^{-2\beta/(2\beta+1)} \) 估计，与单变量估计相同，而完全非参数估计器的速率为 \( n^{-2\beta/(2\beta+p)} \)。<sup>[4](https://gregorkb.github.io/nonparm/additiveresults.html)</sup>

## 实现方法

后向拟合是标准算法。它初始化 \( \hat{\beta}_0 = \bar{y} \)，然后循环遍历各变量，更新

\[ \hat{m}_j \leftarrow S_j\Bigl(Y - \sum_{k \neq j} \hat{m}_k\Bigr), \]

即对第 \( j \) 个偏残差关于第 \( j \) 个变量进行平滑，随后执行中心化步骤 \( \hat{m}_j \leftarrow \hat{m}_j - n^{-1} \cdot \mathbf{1}_n^T \cdot \hat{m}_j \) 以满足可识别性，重复直至变化低于阈值。<sup>[9](https://gregorkb.github.io/nonparm/additivebackfit.html)</sup><sup> • </sup><sup>[10](https://homepage.divms.uiowa.edu/~luke/classes/STAT7400-2023/_book/additive-models.html)</sup> 每个变量可使用不同的一元平滑器。<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> 布贾、哈斯蒂和蒂布希拉尼证明后向拟合是求解加法模型正规方程的高斯-赛德尔迭代法，并证明了对包括三次样条在内的一类平滑器的收敛性。<sup>[1](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 平滑矩阵可由最小二乘样条、带惩罚的样条 \( S_j = B_j \cdot (B_j^T \cdot B_j + \lambda \Omega)^{-1} \cdot B_j^T \) 或Nadaraya-Watson核权重构建。<sup>[9](https://gregorkb.github.io/nonparm/additivebackfit.html)</sup>

平滑参数必须选择。早期多平滑参数方法具有 \( O(n^3) \) 的计算代价<sup>[11](https://doi.org/10.1137/0912021)</sup>；用降秩样条平滑器表示光滑函数使估计效率大大提高。<sup>[12](https://doi.org/10.1111/1467-9868.00240)</sup> 现代软件通过交叉验证或边际似然选择光滑度<sup>[7](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034249)</sup>；mgcv的gam()报告每一项的有效自由度，其中edf接近1表明线性关系，并给出近似p值。<sup>[6](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)</sup> 两个标准R包gam和mgcv均提供gam()命令。<sup>[5](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup>

## 起源

加法模型是杰罗姆·H.弗里德曼和维尔纳·施蒂茨勒于1981年在《美国统计学会会刊》上提出的投影寻踪回归模型的特殊情形。<sup>[13](https://doi.org/10.1080/01621459.1981.10477729)</sup> 利奥·布雷曼和杰罗姆·H.弗里德曼的ACE算法于1985年发表在同一期刊上，以加法模型为核心，并证明了加法解是 \( E(Y \mid X) \) 的最佳加法近似。<sup>[14](https://doi.org/10.1080/01621459.1985.10478157)</sup><sup> • </sup><sup>[1](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 带线性平滑器的加法模型可通过后向拟合进行分析。<sup>[1](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 广义加法模型的形式体系及局部评分算法由特雷弗·哈斯蒂和罗伯特·蒂布希拉尼于1986年在《统计科学》上正式提出。<sup>[8](https://pdodds.w3.uvm.edu/files/papers/others/hastie1986a.pdf)</sup> 在经典方面，检验可加性的标准引用是约翰·W.图基于1949年在《生物统计学》上关于非可加性单自由度检验的论文。<sup>[15](https://doi.org/10.2307/3001938)</sup> 后向拟合所体现的高斯-赛德尔迭代则可追溯得更远。<sup>[5](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup>

## 变体

若干扩展保留了加法核心。向量广义加法模型由T. W. Yee和C. J. Wild于1996年的一篇论文提出，将框架扩展到向量值响应<sup>[16](https://doi.org/10.1111/j.2517-6161.1996.tb02095.x)</sup>，GAMLSS将其扩展到分布回归。<sup>[17](https://link.springer.com/article/10.1007/s11749-020-00711-5)</sup> 稀疏加法模型（SpAM）将稀疏线性建模与可加非参数回归相结合，适用于协变量数多于观测数的情形，使用带软阈值化的后向拟合；其期刊版本由普拉迪普·拉维库马尔及其同事于2009年发表在《皇家统计学会会刊B辑》上。<sup>[18](https://doi.org/10.1111/j.1467-9868.2009.00718.x)</sup> 一种允许线性与非线性分量并存的稀疏部分线性加法模型由楼寅及其同事于2015年发表在《计算与图形统计杂志》上。<sup>[19](https://doi.org/10.1080/10618600.2015.1089775)</sup> 一种用于加法模型的平滑后向拟合方法由恩诺·马门和朴炳佑于2006年发表在《统计年鉴》上。<sup>[20](https://doi.org/10.1214/009053606000000696)</sup> 含交互的近亲模型加入少量成对项；GAMI-Net由杨泽斌、张爱军和阿古斯·苏贾托于2021年发表在《模式识别》上，用结构化神经网络拟合此类模型。<sup>[21](https://doi.org/10.1016/j.patcog.2021.108192)</sup>

## 应用

GAM适用于任何基于似然的回归模型，文中以二值响应和生存（比例风险）数据为例<sup>[8](https://pdodds.w3.uvm.edu/files/papers/others/hastie1986a.pdf)</sup>；带光滑加法预测子的Cox比例风险模型由mgcv中的cox.ph族实现。<sup>[17](https://link.springer.com/article/10.1007/s11749-020-00711-5)</sup> 已记录的用途包括识别流行病学风险因素、评估临床试验中的治疗效果以及预测大气臭氧。<sup>[22](https://www.sciencedirect.com/science/article/abs/pii/S0005109819301086)</sup>

## 局限与替代方案

核心局限是遗漏交互：通过将估计限制为可加形式，变量间潜在的交互无法被捕捉，尽管可以手动加入交互项 \( r_{ij}(X_i, X_j) \)。<sup>[3](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> 若可加性假设不成立，加法估计可能严重歪曲真实函数。<sup>[4](https://gregorkb.github.io/nonparm/additiveresults.html)</sup> 加回交互的代价高昂：\( q \) 阶交互项以 \( O(n^{-4/(4+q)}) \) 收敛，且有 \( \binom{p}{q} \) 个此类项，因此交互重新引入维数灾难，而每个加法分量以 \( O(n^{-4/5}) \) 收敛。<sup>[5](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup>

在精度与可理解性的权衡中，加法模型介于广义线性模型（更可理解、精度较低）与随机森林等全复杂度模型（更精确、不可解释）之间。<sup>[2](https://dl.acm.org/doi/abs/10.1145/2339530.2339556)</sup> 标准GAM被描述为具有一元项时可理解性的黄金标准，但由于不建模任何交互，与全复杂度模型相比存在显著的精度差距。<sup>[23](https://www.cs.cornell.edu/~yinlou/papers/lou-kdd13.pdf)</sup> 自适应性很重要：在一项模拟中，可将每个协变量拟合为线性或非线性的SPLAT优于SpAM，后者对每个纳入的协变量均作非线性建模，因而把所有真正线性的函数都错误拟合了。<sup>[24](https://pmc.ncbi.nlm.nih.gov/articles/PMC6335202/)</sup> 当存在交互时，解释本身变得脆弱：效应可以在主效应与交互效应之间自由转移而不改变预测，从而允许同一函数出现相互矛盾的模型；本杰明·伦格里希及其同事于2019年发布在arXiv上的函数方差分析纯化算法可恢复可识别的加法分量<sup>[25](https://doi.org/10.48550/arxiv.1911.04974)</sup>，其基础是高维函数的函数方差分析诊断方法。<sup>[26](https://doi.org/10.1198/106186007x237892)</sup>

## References

1. [Linear Smoothers and Additive Models (Buja, Hastie & Tibshirani, Annals of Statistics 1989)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)
2. [Intelligible models for classification and regression (Lou, Caruana, Gehrke, KDD 2012)](https://dl.acm.org/doi/abs/10.1145/2339530.2339556)
3. [Additive Models (CMU 36-402 lecture notes, Ryan Tibshirani, 2014)](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)
4. [Additive model pros and cons (lecture notes citing Stone 1985)](https://gregorkb.github.io/nonparm/additiveresults.html)
5. [ADAfaEPoV Chapter 8: Additive Models (Cosma Shalizi, CMU)](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)
6. [Generalized Additive Models, 36-707 Regression Analysis lecture notes](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)
7. [Generalized Additive Models (Annual Review of Statistics and Its Application)](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034249)
8. [Generalized Additive Models (Hastie & Tibshirani, Statistical Science 1986)](https://pdodds.w3.uvm.edu/files/papers/others/hastie1986a.pdf)
9. [Backfitting in the additive model, Some of Nonparametric Statistics (course notes)](https://gregorkb.github.io/nonparm/additivebackfit.html)
10. [Chapter 7 Additive Models, Computer Intensive Statistics STAT 7400 (Luke Tierney, University of Iowa)](https://homepage.divms.uiowa.edu/~luke/classes/STAT7400-2023/_book/additive-models.html)
11. [Chong Gu, Grace Wahba (1991). Minimizing GCV/GML Scores with Multiple Smoothing Parameters via the Newton Method. SIAM Journal on Scientific and Statistical Computing.](https://doi.org/10.1137/0912021)
12. [S. N. Wood (2000). Modelling and Smoothing Parameter Estimation With Multiple Quadratic Penalties. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/1467-9868.00240)
13. [Jerome H. Friedman, Werner Stuetzle (1981). Projection Pursuit Regression. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1981.10477729)
14. [Leo Breiman, Jerome H. Friedman (1985). Estimating Optimal Transformations for Multiple Regression and Correlation. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1985.10478157)
15. [John W. Tukey (1949). One Degree of Freedom for Non-Additivity. Biometrics.](https://doi.org/10.2307/3001938)
16. [T. W. Yee, C. J. Wild (1996). Vector Generalized Additive Models. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1996.tb02095.x)
17. [Inference and computation with generalized additive models and their extensions (Wood, TEST 2020)](https://link.springer.com/article/10.1007/s11749-020-00711-5)
18. [Pradeep Ravikumar and colleagues (2009). Sparse Additive Models. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.1467-9868.2009.00718.x)
19. [Yin Lou and colleagues (2015). Sparse Partially Linear Additive Models. Journal of Computational and Graphical Statistics.](https://doi.org/10.1080/10618600.2015.1089775)
20. [Enno Mammen, Byeong U. Park (2006). A simple smooth backfitting method for additive models. The Annals of Statistics.](https://doi.org/10.1214/009053606000000696)
21. [Zebin Yang, Aijun Zhang, Agus Sudjianto (2021). GAMI-Net: An explainable neural network based on generalized additive models with structured interactions. Pattern Recognition.](https://doi.org/10.1016/j.patcog.2021.108192)
22. [Testing if a nonlinear system is additive or not (Automatica)](https://www.sciencedirect.com/science/article/abs/pii/S0005109819301086)
23. [Accurate Intelligible Models with Pairwise Interactions (Lou et al., KDD 2013)](https://www.cs.cornell.edu/~yinlou/papers/lou-kdd13.pdf)
24. [Data-adaptive additive modeling (SPLAT, Statistics in Medicine)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6335202/)
25. [Lengerich, Benjamin and colleagues (2019). Purifying Interaction Effects with the Functional ANOVA: An Efficient Algorithm for Recovering Identifiable Additive Models. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1911.04974)
26. [Giles Hooker (2007). Generalized Functional ANOVA Diagnostics for High-Dimensional Functions of Dependent Variables. Journal of Computational and Graphical Statistics.](https://doi.org/10.1198/106186007x237892)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis › Nonparametric and semiparametric regression

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/additive-model

English original: https://www.edgepedia.org/additive-model
