# 稀疏估计（统计学）

稀疏估计是一类统计方法，它通过对系数施加惩罚或约束来拟合高维模型，使得许多系数被估计为恰好为零，从而留下一个被选中的小规模子集。最典型的例子是套索（lasso），它在系数绝对值之和小于一个常数的约束下最小化残差平方和，这往往会产生一些恰好为0的系数，因而得到可解释的模型。<sup>[1](https://rss.onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1996.tb02080.x)</sup>等价地，给定调节参数\( \lambda \ge 0 \)，它最小化\( \tfrac{1}{2}\|y - X\beta\|_2^2 + \lambda\|\beta\|_1 \)，且\( \lambda \)越大，解越稀疏。<sup>[2](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/lasso.pdf)</sup>稀疏性有两个作用：它执行变量选择，有助于解释；并且当真实回归函数能被稀疏线性模型很好地近似时，它可以预测得更好。<sup>[2](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/lasso.pdf)</sup>

| 关键事实 | 陈述 |
|---|---|
| 输出 | 一个许多系数恰好为零的拟合模型，实现自动变量选择，同时保持凸性和高效可解性。<sup>[1](https://rss.onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1996.tb02080.x)</sup> |
| 目标函数 | \( \tfrac{1}{2}\|y - X\beta\|_2^2 + \lambda\|\beta\|_1 \)；\( \lambda \)越大意味着解越稀疏。<sup>[2](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/lasso.pdf)</sup> |
| 机制 | 在设计矩阵的列正交归一时，套索是一种软阈值规则\( S_{\lambda}(x) = \mathrm{sign}(x)(\lvert x\rvert - \lambda)_+ \)，它将小系数置为零。<sup>[3](https://www.ime.unicamp.br/~dias/SLS.pdf)</sup> |
| 饱和性 | 套索解至多有\( \min(N, p) \)个非零系数；当\( p = 40{,}000 \)且\( N = 100 \)时，至多有100个非零。<sup>[4](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)</sup> |
| \( \lambda \)的调节 | 用于预测时，标准做法是采用\( K = 5 \)或10折的交叉验证；理论表明\( \lambda \)的量级为\( \sigma\sqrt{\log(p)/n} \)，但经交叉验证调节的套索在模型选择上是不相合的。<sup>[3](https://www.ime.unicamp.br/~dias/SLS.pdf)</sup><sup> • </sup><sup>[5](https://ar5iv.labs.arxiv.org/html/2012.11470)</sup> |
| 算法 | 在高维情形下，路径坐标下降法已超越LARS；FISTA是一种近端梯度替代算法。<sup>[6](https://ar5iv.labs.arxiv.org/html/1902.06547)</sup> |
| 神谕性质 | 自适应套索、SCAD和MCP具有该性质；普通套索没有。<sup>[7](https://pages.stat.wisc.edu/~wahba/stat860/talks/allpapers/860talks/Stat860_Wenzhi_Cao/zou2006.pdf)</sup><sup> • </sup><sup>[6](https://ar5iv.labs.arxiv.org/html/1902.06547)</sup> |

## 工作原理

套索用\( \ell_1 \)范数——稀疏选择的传统凸近似——取代了系数支撑集的基数，即一个\( \ell_0 \)计数，而后者的一般最小化是NP难的。<sup>[8](https://www.di.ens.fr/~fbach/bach_jenatton_mairal_obozinski_FOT.pdf)</sup><sup> • </sup><sup>[9](https://people.eecs.berkeley.edu/~jordan/sail/readings/Wainwright_SharpThreshold.pdf)</sup>几何可以解释那些精确的零：\( \ell_1 \)约束区域\( \lvert\beta_1\rvert + \lvert\beta_2\rvert \le t \)具有尖角，在高维情形下稀疏性正来自约束区域的角和棱，而岭回归光滑的约束区域不会产生这些。<sup>[10](https://tibshirani.su.domains/ftp/tibs-copss.pdf)</sup>从分析上看，向量w是套索解当且仅当对每个j，当\( w_j = 0 \)时\( \lvert X_j^{\top}(y - Xw)\rvert \le n\lambda \)，而当\( w_j \ne 0 \)时\( X_j^{\top}(y - Xw) = n\lambda\,\mathrm{sign}(w_j) \)；与残差的相关性低于阈值的系数会恰好保持为零。<sup>[8](https://www.di.ens.fr/~fbach/bach_jenatton_mairal_obozinski_FOT.pdf)</sup>

## 实现方法

路径坐标下降法从\( \lambda_{\max} = \max_j \lvert \tfrac{1}{N}\langle x_j, y\rangle \rvert \)开始，这是给出全零解的最小\( \lambda \)，然后在网格上减小\( \lambda \)，每一步运行坐标下降至收敛，并将上一步的解作为热启动。<sup>[3](https://www.ime.unicamp.br/~dias/SLS.pdf)</sup>用于惩罚回归的坐标下降法由Wenjiang J. Fu于1998年在《计算与图形统计学杂志》上报道，<sup>[11](https://doi.org/10.1080/10618600.1998.10474784)</sup>而glmnet R包中的路径坐标下降法利用稀疏性、活动集收敛和强规则来快速计算整条路径。<sup>[12](https://mail.hastie.su.domains/public/TALKS/hastieJSM2017.pdf)</sup>调节通过K折交叉验证进行，通常\( K = 5 \)或10，在\( K - 1 \)组上拟合，并对各测试折的均方预测误差取平均。<sup>[3](https://www.ime.unicamp.br/~dias/SLS.pdf)</sup>

## 起源

Robert Tibshirani于1996年在《皇家统计学会杂志：B辑（方法论）》上引入了套索。<sup>[1](https://rss.onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1996.tb02080.x)</sup>该论文的动机来自一个更早的两阶段方案——非负绞刑架，它从普通最小二乘估计出发，用和受约束的非负因子将其收缩；其缺点是对OLS估计的符号和幅度的依赖，而这些在过拟合或高度相关的设定下表现不佳。<sup>[1](https://rss.onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1996.tb02080.x)</sup>第二个前身是桥回归，即对参数\( L_q \)范数的约束，其中套索对应\( q = 1 \)，子集选择对应\( q = 0 \)，岭回归对应\( q = 2 \)，而\( q = 1 \)是给出凸区域的最小值。<sup>[1](https://rss.onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1996.tb02080.x)</sup>在信号处理中，Scott Shaobing Chen、David L. Donoho和Michael A. Saunders于2001年在《SIAM评论》上报道的基追踪使用了同样的\( \ell_1 \)思想。<sup>[13](https://doi.org/10.1137/s003614450037906x)</sup>

## 变体

**弹性网络。**Hui Zou和Trevor Hastie于2005年在《皇家统计学会杂志B辑》上提出了弹性网络。<sup>[14](https://doi.org/10.1111/j.1467-9868.2005.00503.x)</sup>它增加了一个\( \ell_2 \)项\( \lambda\|\beta\|_1 + \delta\|\beta\|_2^2 \)，将岭的预测性质与套索的稀疏性结合起来，并保证解的唯一性。<sup>[15](https://www.stat.cmu.edu/~ryantibs/statml/lectures/sparsity.pdf)</sup>它促成一种分组效应，使强相关的预测变量一同进入或离开模型，在p远大于n、套索表现不佳时尤其有用。<sup>[14](https://doi.org/10.1111/j.1467-9868.2005.00503.x)</sup>

**自适应套索。**Hui Zou于2006年在《美国统计协会杂志》上提出了自适应套索。<sup>[16](https://doi.org/10.1198/016214506000000735)</sup>它在\( \ell_1 \)惩罚中使用自适应权重，对强信号减少收缩、对弱信号增加收缩，并在温和条件下具有神谕性质：它以趋于1的概率正确识别真实模型，并对非零系数产生渐近无偏的估计。<sup>[17](https://pmc.ncbi.nlm.nih.gov/articles/PMC12888550/)</sup>

**融合套索。**Robert Tibshirani、Michael Saunders、Saharon Rosset、Ji Zhu和Keith Knight的融合套索（2005）对系数及其相邻差分的\( \ell_1 \)范数都施加惩罚，对有序特征同时促成稀疏性和局部恒定性。<sup>[4](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)</sup>

**分组套索与图套索。**混合\( \ell_1/\ell_2 \)范数产生分组套索，它将整组系数置为零；结构化扩展包括重叠分组、分层惩罚和图结构惩罚。<sup>[8](https://www.di.ens.fr/~fbach/bach_jenatton_mairal_obozinski_FOT.pdf)</sup>M. Yuan和Y. Lin 2007年发表于《Biometrika》的论文涵盖了高斯图模型中的模型选择与估计。<sup>[18](https://doi.org/10.1093/biomet/asm018)</sup>

**非凸惩罚。**SCAD（平滑截断绝对偏差）惩罚的引入是为了改善\( \ell_1 \)惩罚的性质，使大系数不被过度惩罚，同时保持解的连续性。<sup>[19](https://escholarship.org/content/qt8j29393d/qt8j29393d.pdf)</sup>

**其他估计量。**Emmanuel Candes和Terence Tao的Dantzig选择器（2007，《统计年鉴》）处理p远大于n时的估计问题。<sup>[20](https://doi.org/10.1214/009053606000001523)</sup>Nicolai Meinshausen和Peter Bühlmann的稳定性选择（2010，JRSS-B）对稀疏估计量进行子抽样以控制选择误差。<sup>[21](https://doi.org/10.1111/j.1467-9868.2010.00740.x)</sup>SLOPE（排序L1惩罚估计），由Małgorzata Bogdan、Ewout van den Berg、Chiara Sabatti、Weijie Su和Emmanuel J. Candès提出（2015，《应用统计年鉴》），在排序后的系数上自适应地施加惩罚。<sup>[22](https://doi.org/10.1214/15-aoas842)</sup>

## 应用

建立在分组套索之上的结构化稀疏惩罚被应用于计算机视觉、文本处理、生物信息学和音频处理。<sup>[8](https://www.di.ens.fr/~fbach/bach_jenatton_mairal_obozinski_FOT.pdf)</sup>在基因组学中，基准研究评估套索、弹性网络和自适应套索在高维分子数据上的稀疏变量选择。<sup>[17](https://pmc.ncbi.nlm.nih.gov/articles/PMC12888550/)</sup>同一套\( \ell_1 \)机制是压缩感知和基追踪的基础，用于从欠采样测量中恢复信号，<sup>[9](https://people.eecs.berkeley.edu/~jordan/sail/readings/Wainwright_SharpThreshold.pdf)</sup>并延伸到矩阵补全，其中Emmanuel J. Candès和Benjamin Recht（2009，《计算数学基础》）证明了通过凸优化精确恢复低秩矩阵。<sup>[23](https://doi.org/10.1007/s10208-009-9045-5)</sup>

## 局限与替代方法

**相关预测变量。**当多个高度相关的协变量与响应相关时，套索倾向于随机地只挑选其中一个或几个，并将其余的收缩为0，在强依赖下损失信息。<sup>[5](https://ar5iv.labs.arxiv.org/html/2012.11470)</sup>对所选特征数量没有限制的弹性网络是标准的补救方法。<sup>[14](https://doi.org/10.1111/j.1467-9868.2005.00503.x)</sup>

**饱和性与收缩偏差。**套索在饱和前至多能选择\( \min(n, p) \)个变量。<sup>[4](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)</sup>惩罚对小系数和大系数同等收缩，导致大系数产生偏差；当为了恰当的变量选择必须取较大的\( \lambda \)时，估计量会严重向下偏，残差中的收缩噪声可能淹没强信号并选出无关变量。<sup>[24](https://www.mdpi.com/2076-3417/15/13/7443)</sup><sup> • </sup><sup>[5](https://ar5iv.labs.arxiv.org/html/2012.11470)</sup>两阶段补救方法包括松弛套索和阈值套索，以及通过自适应套索进行重加权。<sup>[5](https://ar5iv.labs.arxiv.org/html/2012.11470)</sup>

**假阳性。**为预测而经交叉验证调节的套索常常选出许多变量，假阳性率高，<sup>[24](https://www.mdpi.com/2076-3417/15/13/7443)</sup>在特征选择实验中，基于套索的估计量返回了至少80%的不显著特征，而MCP和SCAD的误检率约为15–30%。<sup>[6](https://ar5iv.labs.arxiv.org/html/1902.06547)</sup>

**选择相合性。**Peng Zhao和Bin Yu证明，关于预测变量协方差的一个单一条件——不可表示条件——几乎是套索在固定p和大p两种设定下相合地选出真实模型的充分必要条件；当强版本成立时，仅假设噪声具有有限二阶矩，选择概率就以指数速率趋近于1。<sup>[25](https://jmlr.org/papers/volume7/zhao06a/zhao06a.pdf)</sup>普通套索无法同时满足两条神谕性质，因为双指数先验的尾部太轻；当初始估计是\( \sqrt{n} \)相合时，自适应套索可以补救这一点。<sup>[15](https://www.stat.cmu.edu/~ryantibs/statml/lectures/sparsity.pdf)</sup><sup> • </sup><sup>[26](https://tibshirani.su.domains/ftp/lasso-retro.pdf)</sup>

**实证比较。**一项涵盖2300多个数据生成场景的大型基准研究发现，在预测、选择和排序目标上，套索、自适应套索、弹性网络、岭、SCAD、Dantzig选择器和稳定性选择之间没有明确无争议的赢家。<sup>[27](https://www.repository.cam.ac.uk/items/4957bc68-5490-42d2-9e79-4a6e13b9c667)</sup>

**选择后推断。**2014年的一系列工作提出并分析了去偏（去稀疏化）套索，这是一种修正\( \ell_1 \)惩罚所引入偏差的程序；其误差分解为一个高斯分量加上一个以高概率渐近消失的余项。<sup>[28](https://arxiv.org/html/2407.13666)</sup>对于基于路径的推断，当\( p \to \infty \)时，预测变量进入套索路径的协方差检验统计量在原假设下收敛到均值为1的指数随机变量，从而沿路径提供p值。<sup>[10](https://tibshirani.su.domains/ftp/tibs-copss.pdf)</sup>

## References

1. [Regression Shrinkage and Selection Via the Lasso (Tibshirani, 1996)](https://rss.onlinelibrary.wiley.com/doi/10.1111/j.2517-6161.1996.tb02080.x)
2. [High-Dimensional Regression: Lasso (lecture notes, Berkeley StatLearn S23)](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/lasso.pdf)
3. [Statistical Learning with Sparsity (Hastie, Tibshirani, Wainwright), Chapter 2: The Lasso for Linear Models](https://www.ime.unicamp.br/~dias/SLS.pdf)
4. [Sparsity and smoothness via the fused lasso (Tibshirani, Saunders et al.)](https://web.stanford.edu/group/SOL/papers/fused-lasso-JRSSB.pdf)
5. [A critical review of LASSO and its derivatives for variable selection under dependence among covariates (arXiv 2012.11470)](https://ar5iv.labs.arxiv.org/html/2012.11470)
6. [Sparse regression: Scalable algorithms and empirical performance (arXiv 1902.06547)](https://ar5iv.labs.arxiv.org/html/1902.06547)
7. [The Adaptive Lasso and Its Oracle Properties (Zou, 2006)](https://pages.stat.wisc.edu/~wahba/stat860/talks/allpapers/860talks/Stat860_Wenzhi_Cao/zou2006.pdf)
8. [Optimization with Sparsity-Inducing Penalties (Bach, Jenatton, Mairal, Obozinski)](https://www.di.ens.fr/~fbach/bach_jenatton_mairal_obozinski_FOT.pdf)
9. [Sharp thresholds for high-dimensional and noisy recovery of sparsity using ℓ1-constrained quadratic programming (Wainwright)](https://people.eecs.berkeley.edu/~jordan/sail/readings/Wainwright_SharpThreshold.pdf)
10. [In praise of sparsity and convexity (Tibshirani COPSS piece)](https://tibshirani.su.domains/ftp/tibs-copss.pdf)
11. [Wenjiang J. Fu (1998). Penalized Regressions: The Bridge versus the Lasso. Journal of Computational and Graphical Statistics.](https://doi.org/10.1080/10618600.1998.10474784)
12. [Variable Selection at Scale (Hastie JSM 2017 talk)](https://mail.hastie.su.domains/public/TALKS/hastieJSM2017.pdf)
13. [Scott Shaobing Chen, David L. Donoho, Michael A. Saunders (2001). Atomic Decomposition by Basis Pursuit. SIAM Review.](https://doi.org/10.1137/s003614450037906x)
14. [Hui Zou, Trevor Hastie (2005). Regularization and Variable Selection Via the Elastic Net. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.1467-9868.2005.00503.x)
15. [Sparsity, the Lasso, and Friends (R. Tibshirani lecture notes, CMU)](https://www.stat.cmu.edu/~ryantibs/statml/lectures/sparsity.pdf)
16. [Hui Zou (2006). The Adaptive Lasso and Its Oracle Properties. Journal of the American Statistical Association.](https://doi.org/10.1198/016214506000000735)
17. [Benchmarking Sparse Variable Selection Methods for Genomic Data Analyses (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC12888550/)
18. [M. Yuan, Y. Lin (2007). Model selection and estimation in the Gaussian graphical model. Biometrika.](https://doi.org/10.1093/biomet/asm018)
19. [Variable Selection via Penalized Likelihood (Fan & Li, SCAD)](https://escholarship.org/content/qt8j29393d/qt8j29393d.pdf)
20. [Emmanuel Candes, Terence Tao (2007). The Dantzig selector: Statistical estimation when p is much larger than n. The Annals of Statistics.](https://doi.org/10.1214/009053606000001523)
21. [Nicolai Meinshausen, Peter Bühlmann (2010). Stability Selection. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.1467-9868.2010.00740.x)
22. [Małgorzata Bogdan and colleagues (2015). SLOPE, Adaptive variable selection via convex optimization. The Annals of Applied Statistics.](https://doi.org/10.1214/15-aoas842)
23. [Emmanuel J. Candès, Benjamin Recht (2009). Exact Matrix Completion via Convex Optimization. Foundations of Computational Mathematics.](https://doi.org/10.1007/s10208-009-9045-5)
24. [Evaluating Prediction Performance: A Simulation Study Comparing Penalized and Classical Variable Selection Methods in Low-Dimensional Data (Applied Sciences, 2025)](https://www.mdpi.com/2076-3417/15/13/7443)
25. [On Model Selection Consistency of Lasso (Zhao & Yu, JMLR 7)](https://jmlr.org/papers/volume7/zhao06a/zhao06a.pdf)
26. [Regression Shrinkage and Selection via the Lasso: a Retrospective (JRSSB 2011)](https://tibshirani.su.domains/ftp/lasso-retro.pdf)
27. [High-dimensional regression in practice (Wang, Mukherjee, Richardson, Hill; Statistics and Computing)](https://www.repository.cam.ac.uk/items/4957bc68-5490-42d2-9e79-4a6e13b9c667)
28. [Non-Asymptotic Uncertainty Quantification in High-Dimensional Learning (arXiv 2407.13666, 2024)](https://arxiv.org/html/2407.13666)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sparse-estimation-statistics

English original: https://www.edgepedia.org/sparse-estimation-statistics
