# 加性回归

加性回归是一种非参数回归方法，它将响应变量建模为各个预测变量的光滑函数之和，其中每个函数均从数据中估计得出，而非固定为某种参数形式。它保留了线性模型的可解释性——即一个变量的效应不依赖于其他变量的取值——同时允许学习任意弯曲的关系。<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup>

| 关键事实 | 陈述 |
|---|---|
| 模型形式 | \( Y = \beta_{0} + r_{1}(X_{1}) + \cdots + r_{p}(X_{p}) + \varepsilon \)，其中各单变量函数的形式未作指定<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> |
| 可识别性 | 各分量仅在相差常数的意义下才有定义，因此施加约束 \( \mathrm{E}(Y) = \beta_{0} \) 和 \( \mathrm{E}\, r_{j}(X_{j}) = 0 \)<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> |
| 估计 | 回填法（backfitting），即利用单变量光滑器对加性正规方程进行高斯-赛德尔迭代<sup>[2](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> |
| 收敛速率 | 在赫尔德光滑性条件下，每个分量均可以单变量速率 \( n^{-2\beta/(2\beta+1)} \) 估计<sup>[3](https://gregorkb.github.io/nonparm/additiveresults.html)</sup> |
| 广义版本 | 广义加性模型将GLM的线性预测子替换为光滑函数的加性预测子，通过局部评分法拟合<sup>[4](https://pdodds.w3.uvm.edu/files/papers/others/everything/hastie1986a.pdf)</sup> |
| 软件 | 在R中，mgcv包中的`gam`函数拟合惩罚回归样条<sup>[5](https://stat.ethz.ch/education/semesters/FS_2008/CompStat/sk-ch7--8.pdf)</sup>，光滑度通过交叉验证估计<sup>[6](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034249)</sup>，并按项报告有效自由度<sup>[7](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)</sup> |
| 主要局限 | 将拟合限制为加性形式会遗漏变量之间的交互作用<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> |

## 工作原理

加性模型将线性模型的每个线性项替换为一般的单变量回归函数。由于常数可以从一个分量移到另一个分量而不改变拟合结果，所写出的模型是不可识别的；通常的修正方法是要求对每个 \( j \) 都有 \( \mathrm{E}(Y) = \beta_{0} \) 和 \( \mathrm{E}\, r_{j}(X_{j}) = 0 \)，而具体实现则施加等价的零和约束 \( \sum_{i} r_{j}(x_{i}) = 0 \)，这同时也能为受约束的光滑项产生最小宽度的置信区间。<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup><sup> • </sup><sup>[8](https://link.springer.com/article/10.1007/s11749-020-00711-5)</sup>

其统计学上的回报在于摆脱了维数灾难。在 \( p \) 维空间中的完全非参数估计量，其方差随 \( p \) 呈指数增长；加性估计则居于两个极端之间，方差低于完全非参数拟合，偏差则可能低于参数拟合。<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup> 在加性假设下，若各分量具有 \( \beta \) 阶赫尔德光滑性，则每个分量均可以单变量速率 \( n^{-2\beta/(2\beta+1)} \) 估计；当具有连续二阶导数时，某些估计量可达到熟悉的 \( O(n^{-4/5}) \) 均方误差，与估计单个一维函数相同。<sup>[3](https://gregorkb.github.io/nonparm/additiveresults.html)</sup><sup> • </sup><sup>[5](https://stat.ethz.ch/education/semesters/FS_2008/CompStat/sk-ch7--8.pdf)</sup> 维度 \( p \) 仅作为常数因子重新出现：\( \mathrm{E}\|\hat{m}_{j} - m_{j}\|_{n}^{2} \leq C \cdot p \cdot n^{-2\beta/(2\beta+1)} \)。<sup>[3](https://gregorkb.github.io/nonparm/additiveresults.html)</sup> 交互项会抵消这一收益：\( q \) 阶交互项的收敛速率为 \( O(n^{-4/(4+q)}) \)，因此交互作用可能主导整体不确定性。<sup>[9](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup>

## 实现方式

**回填法**是核心算法。从 \( \hat{\beta}_{0} = \bar{y} \) 出发，循环 \( j = 1, \ldots, p \)：构造第 \( j \) 个偏残差 \( y^{(j)} = y - \hat{\beta}_{0} - \sum_{\ell \neq j} \hat{r}_{\ell}(x_{\cdot\ell}) \)，通过对第 \( j \) 个变量上的残差进行光滑化来更新 \( \hat{r}_{j} = S_{j}(x_{\cdot j},\, y^{(j)}) \)，并对 \( \hat{r}_{j} \) 去均值进行中心化，直至变化量降至诸如 \( 10^{-6} \) 的容差以下。<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup><sup> • </sup><sup>[5](https://stat.ethz.ch/education/semesters/FS_2008/CompStat/sk-ch7--8.pdf)</sup><sup> • </sup><sup>[10](https://gregorkb.github.io/nonparm/additivebackfit.html)</sup> 用矩阵形式表示，每次更新为 \( \hat{m}_{j} \leftarrow S_{j}(Y - \sum_{k \neq j} \hat{m}_{k}) \)，其中 \( S_{j} \) 是单变量光滑矩阵，例如惩罚样条 \( S_{j} = B_{j} \cdot (B_{j}^{T} \cdot B_{j} + \lambda \cdot \Omega)^{-1} \cdot B_{j}^{T} \)，其中 \( \Omega = (\int b''_{k}(x)b''_{k'}(x)\,dx) \)，\( \lambda \) 调节光滑度。<sup>[10](https://gregorkb.github.io/nonparm/additivebackfit.html)</sup><sup> • </sup><sup>[11](http://homepage.stat.uiowa.edu/~luke/classes/STAT7400-2022/_book/additive-models.html)</sup> 对于三次样条型光滑器，正规方程是相容的，回填法总是收敛到一个解；<sup>[2](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 对于惩罚最小二乘分量，收敛性也已通过哈尔佩林对冯·诺依曼交替投影定理的推广得到了几何证明，<sup>[12](https://doi.org/10.1017/s1446788700037721)</sup> 且每个循环可表示为一组投影序列，其极限给出估计量的方差和收敛速率。<sup>[13](https://doi.org/10.1111/j.1467-9574.1993.tb01405.x)</sup>

对于基于似然的响应变量，局部评分法将费希尔评分中的线性预测子替换为加性预测子，并在每个评分步骤内部调用回填法；它适用于GLM。<sup>[4](https://pdodds.w3.uvm.edu/files/papers/others/everything/hastie1986a.pdf)</sup><sup> • </sup><sup>[14](https://www.osti.gov/servlets/purl/1447558)</sup> 另一种主要的估计途径是边际积分法，它直接求解完整系统；有限样本比较发现回填法收敛非常快，但帽子矩阵更为复杂。<sup>[15](https://e-archivo.uc3m.es/bitstreams/4553f034-0a1f-4ca6-a403-3303a3651ecc/download)</sup>

在实践中，R的mgcv包使用惩罚回归样条拟合加性模型；汇总结果按项报告有效自由度（edf为1对应于线性关系）。<sup>[5](https://stat.ethz.ch/education/semesters/FS_2008/CompStat/sk-ch7--8.pdf)</sup><sup> • </sup><sup>[7](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)</sup> 推断与线性模型的推断有本质不同：不存在可以给出置信区间的斜率参数。<sup>[7](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)</sup> 主流计算框架将光滑项表示为降秩样条或高斯随机效应，光滑度通过交叉验证或经验贝叶斯视角下的边际似然来选择。<sup>[8](https://link.springer.com/article/10.1007/s11749-020-00711-5)</sup><sup> • </sup><sup>[6](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034249)</sup>

## 起源

这一思想由来已久。莫迪凯·伊齐基尔（Mordecai Ezekiel）1924年的论文《一种处理任意变量数曲线相关的方法》似乎是第一部倡导加性模型的出版物，他称之为“曲线多元相关”。<sup>[16](https://doi.org/10.1080/01621459.1924.10502899)</sup><sup> • </sup><sup>[9](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)</sup> 现代形式由杰罗姆·H·弗里德曼（Jerome H. Friedman）和沃纳·施蒂茨勒（Werner Stuetzle）1981年发表于《美国统计协会杂志》的投影寻踪回归论文提出，加性模型是其特例，<sup>[17](https://doi.org/10.1080/01621459.1981.10477729)</sup> 并且它构成了利奥·布雷曼（Leo Breiman）和弗里德曼1985年《美国统计协会杂志》论文中ACE算法的核心。<sup>[18](https://doi.org/10.1080/01621459.1985.10478157)</sup><sup> • </sup><sup>[2](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 1989年《统计年鉴》上的一篇论文《线性光滑器与加性模型》将该方法建立在线性光滑器的基础之上，分析了自由度并证明了回填法的收敛性。<sup>[2](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup> 广义加性模型收录于1990年Chapman & Hall出版的专著中，该书是标准的实践指南。<sup>[4](https://pdodds.w3.uvm.edu/files/papers/others/everything/hastie1986a.pdf)</sup><sup> • </sup><sup>[19](https://www.taylorfrancis.com/chapters/mono/10.1201/9780203753781-5/theory-additive-models-hastie-tibshirani)</sup> 加性模型的渐近理论确立了加性回归的降维原理。<sup>[20](https://www.stat.berkeley.edu/~ryantibs/papers/additivetf.pdf)</sup><sup> • </sup><sup>[21](https://www.ism.ac.jp/editsec/aism/pdf/056_2_0265.pdf)</sup>

## 变体

**广义加性模型**将加性预测子推广到任何基于似然的回归，包括用于二值响应的加性逻辑回归；AdaBoost以前向分步方式拟合加性逻辑模型。<sup>[4](https://pdodds.w3.uvm.edu/files/papers/others/everything/hastie1986a.pdf)</sup><sup> • </sup><sup>[22](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1016218223&isResultClick=False)</sup> 弗里德曼的多元自适应回归样条（MARS）利用节点由数据决定的乘积样条基函数构建模型，并可通过限制分裂循环强制产生纯加性模型。<sup>[23](https://doi.org/10.1214/aos/1176347963)</sup> P样条将惩罚样条拟合引入信号和曲线上的广义回归。<sup>[24](https://doi.org/10.2307/1270990)</sup> 稀疏加性模型，如拉维库马尔（Ravikumar）、拉弗蒂（Lafferty）、刘（Liu）和瓦瑟曼（Wasserman）提出的稀疏加性方法，假设只有一小部分分量非零，并通过回填过程求解该问题。<sup>[25](https://doi.org/10.1111/j.1467-9868.2009.00718.x)</sup> 逐分量P样条提升提供了另一种拟合途径。<sup>[26](https://doi.org/10.1016/j.csda.2008.09.009)</sup> 在神经网络方面，神经加性模型（Neural Additive Models）为每个特征训练一个子网络并通过反向传播联合训练，<sup>[27](https://doi.org/10.48550/arxiv.2004.13912)</sup><sup> • </sup><sup>[28](https://proceedings.nips.cc/paper_files/paper/2021/file/251bd0442dfcc53b5a761e050f8022b8-Paper.pdf)</sup> 而GAMI-Net则加入了结构化的成对交互项。<sup>[29](https://doi.org/10.1016/j.patcog.2021.108192)</sup> 加性趋势滤波将加性结构与 \( \ell_{1} \) 惩罚的单变量趋势滤波相结合。<sup>[20](https://www.stat.berkeley.edu/~ryantibs/papers/additivetf.pdf)</sup><sup> • </sup><sup>[30](https://doi.org/10.1137/070690274)</sup>

## 应用

有文献记载的应用比理论所覆盖的范围要窄。哈斯蒂（Hastie）和蒂布希拉尼（Tibshirani）将局部评分法应用于此前用ACE模型分析过的空气污染数据，强调该过程完全自动，不需要统计学家做任何“侦探工作”。<sup>[14](https://www.osti.gov/servlets/purl/1447558)</sup> 可扩展的GAM计算已在大规模数据集上得到演示<sup>[31](https://doi.org/10.1111/rssc.12068)</sup>，并在英国黑烟网络日度数据上得到应用。<sup>[32](https://doi.org/10.1080/01621459.2016.1195744)</sup> 相对于线性模型，实践者所获得的增益在于能够对每个变量拟合并绘制弯曲效应，同时保留加性解释。<sup>[2](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)</sup>

## 局限与替代方案

核心的失效模式是遗漏交互作用：如果回归函数无法写成或很好地近似为单变量函数之和，加性拟合可能严重扭曲真实函数，此时必须手动添加交互项 \( r_{ij}(X_{i}, X_{j}) \)。<sup>[1](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)</sup><sup> • </sup><sup>[3](https://gregorkb.github.io/nonparm/additiveresults.html)</sup> 树集成是常见的替代方案；由利奥·布雷曼提出的随机森林对各种回归函数具有稳健性，被视为预测精度方面的一种黄金标准，且已有学者提出针对加性结构相对于随机森林拟合的正式检验。<sup>[33](https://doi.org/10.1023/a:1010933404324)</sup><sup> • </sup><sup>[34](https://pmc.ncbi.nlm.nih.gov/articles/PMC6428414/)</sup> 基于提升的加性拟合有其自身的注意事项：2025年的一项关于提升加性模型的分析推导出了新的收敛结果，但同时也发现了提升法在某些加性模型类上的“病态”现象，实践中需要谨慎对待。<sup>[35](https://proceedings.mlr.press/v258/schulte25a.html)</sup> 加性交互模型的级数估计量以独立于回归变量维数的速率收敛，<sup>[36](https://ideas.repec.org/a/cup/etheor/v6y1990i04p466-479_00.html)</sup> 而当协变量数量超过样本量时，函数型lasso核光滑可估计单个变量的效应和交互效应。<sup>[37](http://dl.acm.org/doi/10.1016/j.jmva.2026.105636)</sup>

## References

1. [Additive Models, CMU 36-402 lecture notes (Ryan Tibshirani)](https://www.stat.cmu.edu/~ryantibs/advmethods/notes/addmodels.pdf)
2. [Linear Smoothers and Additive Models (Buja, Hastie & Tibshirani, Annals of Statistics 1989)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1176347115&isResultClick=False)
3. [Additive model pros and cons (nonparametric statistics lecture notes citing Stone 1985)](https://gregorkb.github.io/nonparm/additiveresults.html)
4. [Generalized Additive Models (Hastie & Tibshirani, Statistical Science 1986)](https://pdodds.w3.uvm.edu/files/papers/others/everything/hastie1986a.pdf)
5. [Flexible regression and classification methods (ETH Zürich, chapters 7–8)](https://stat.ethz.ch/education/semesters/FS_2008/CompStat/sk-ch7--8.pdf)
6. [Generalized Additive Models (Annual Review of Statistics and Its Application)](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034249)
7. [Generalized Additive Models – 36-707 Regression Analysis (lecture notes)](https://www.refsmmat.com/courses/707/lecture-notes/gams.html)
8. [Inference and computation with generalized additive models and their extensions (Wood, Test 2020)](https://link.springer.com/article/10.1007/s11749-020-00711-5)
9. [ADAfaEPoV Chapter 8: Additive Models (Cosma Shalizi, CMU)](https://www.stat.cmu.edu/~cshalizi/uADA/19/lectures/ch08.pdf)
10. [Backfitting in the additive model, Some of Nonparametric Statistics (course notes)](https://gregorkb.github.io/nonparm/additivebackfit.html)
11. [Chapter 7 Additive Models, Computer Intensive Statistics STAT 7400 (Luke Tierney, Univ. of Iowa)](http://homepage.stat.uiowa.edu/~luke/classes/STAT7400-2022/_book/additive-models.html)
12. [Craig F. Ansley, Robert Kohn (1994). Convergence of the backfitting algorithm for additive models. Journal of the Australian Mathematical Society Series A Pure Mathematics and Statistics.](https://doi.org/10.1017/s1446788700037721)
13. [W. Härdle, P. Hall (1993). On the backfitting algorithm for additive regression models. Statistica Neerlandica.](https://doi.org/10.1111/j.1467-9574.1993.tb01405.x)
14. [Generalized Additive Models (Hastie & Tibshirani, Stanford/SLAC technical report, Local Scoring)](https://www.osti.gov/servlets/purl/1447558)
15. [Integration and Backfitting Methods in Additive Models, Finite Sample Properties and Comparison (Sperlich, Linton & Härdle, 1998 working paper)](https://e-archivo.uc3m.es/bitstreams/4553f034-0a1f-4ca6-a403-3303a3651ecc/download)
16. [Mordecai Ezekiel (1924). A Method of Handling Curvilinear Correlation for Any Number of Variables. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1924.10502899)
17. [Jerome H. Friedman, Werner Stuetzle (1981). Projection Pursuit Regression. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1981.10477729)
18. [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)
19. [Some theory for additive models, Chapter 5, Generalized Additive Models (Hastie & Tibshirani, 1990, Routledge)](https://www.taylorfrancis.com/chapters/mono/10.1201/9780203753781-5/theory-additive-models-hastie-tibshirani)
20. [Additive Models with Trend Filtering (Ramdas & Tibshirani)](https://www.stat.berkeley.edu/~ryantibs/papers/additivetf.pdf)
21. [Dependence and the dimensionality reduction principle (Annals of the Institute of Statistical Mathematics)](https://www.ism.ac.jp/editsec/aism/pdf/056_2_0265.pdf)
22. [Additive Logistic Regression: A Statistical View of Boosting (Friedman, Hastie & Tibshirani, Annals of Statistics 2000)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Faos%2F1016218223&isResultClick=False)
23. [Jerome H. Friedman (1991). Multivariate Adaptive Regression Splines. The Annals of Statistics.](https://doi.org/10.1214/aos/1176347963)
24. [Brian D. Marx, Paul H. C. Eilers (1999). Generalized Linear Regression on Sampled Signals and Curves: A P-Spline Approach. Technometrics.](https://doi.org/10.2307/1270990)
25. [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)
26. [Matthias Schmid, Torsten Hothorn (2008). Boosting additive models using component-wise P-Splines. Computational Statistics & Data Analysis.](https://doi.org/10.1016/j.csda.2008.09.009)
27. [Agarwal, Rishabh and colleagues (2020). Neural Additive Models: Interpretable Machine Learning with Neural Nets. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2004.13912)
28. [Neural Additive Models: Interpretable Machine Learning with Neural Nets (Agarwal et al., NeurIPS 2021)](https://proceedings.nips.cc/paper_files/paper/2021/file/251bd0442dfcc53b5a761e050f8022b8-Paper.pdf)
29. [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)
30. [Seung-Jean Kim and colleagues (2009). $\ell_1$ Trend Filtering. SIAM Review.](https://doi.org/10.1137/070690274)
31. [Simon N. Wood, Yannig Goude, Simon Shaw (2014). Generalized Additive Models for Large Data Sets. Journal of the Royal Statistical Society Series C (Applied Statistics).](https://doi.org/10.1111/rssc.12068)
32. [Simon N. Wood and colleagues (2016). Generalized Additive Models for Gigadata: Modeling the U.K. Black Smoke Network Daily Data. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.2016.1195744)
33. [Leo Breiman (2001). Random Forests. Machine Learning.](https://doi.org/10.1023/a:1010933404324)
34. [Formal Hypothesis Tests for Additive Structure in Random Forests](https://pmc.ncbi.nlm.nih.gov/articles/PMC6428414/)
35. [Additive Model Boosting: New Insights and Path(ologie)s (Schulte & Rügamer, AISTATS 2025, PMLR v258)](https://proceedings.mlr.press/v258/schulte25a.html)
36. [Additive Interactive Regression Models: Circumvention of the Curse of Dimensionality (Andrews & Whang, Econometric Theory 1990)](https://ideas.repec.org/a/cup/etheor/v6y1990i04p466-479_00.html)
37. [Functional lasso kernel smoothing for additive regression with interaction effects (Journal of Multivariate Analysis)](http://dl.acm.org/doi/10.1016/j.jmva.2026.105636)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 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-regression

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