# 自助法置信区间

自助法置信区间是通过对观测数据（或拟合于数据的模型）进行重抽样，以近似某个统计量的抽样分布，再从该近似分布中读取区间端点而构造出的取值范围。自助法由布拉德利·埃夫隆（Bradley Efron）于1979年提出，它无需该分布的公式即可估计估计量或检验统计量的分布，从而使那些标准误难以或无法解析推导的统计量也能构造区间。<sup>[1](https://www.annualreviews.org/doi/10.1146/annurev-economics-080218-025651)</sup><sup> • </sup><sup>[2](https://academic.oup.com/jrsssb/article/50/3/338/7027855)</sup>

| 关键事实 | 详情 |
|---|---|
| 原理 | 对数据（或拟合模型）重抽样以近似估计量或检验统计量的分布，再从该分布中取区间端点<sup>[1](https://www.annualreviews.org/doi/10.1146/annurev-economics-080218-025651)</sup> |
| 起源 | 埃夫隆，《自助法：重新审视刀切法》，《统计年鉴》7:1–26（1979）；百分位法、偏差校正法及加速偏差校正区间法均出自他手<sup>[2](https://academic.oup.com/jrsssb/article/50/3/338/7027855)</sup> |
| 主要方法 | 百分位法、基本法（反百分位法）、学生化法（自助t法）以及BCa法（偏差校正加速法）<sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup> |
| 精度排序 | 百分位区间与基本区间为一阶精确，覆盖误差为\( O(n^{-1/2}) \)；BCa与自助t为二阶精确，\( O(n^{-1}) \)<sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup> |
| 重复次数 | 约1,000个自助样本可给出粗略近似；\( 10^{4} \)或更多则精度更佳<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC4784504/)</sup> |
| 小样本警示 | 百分位区间的小样本覆盖表现很差，其行为类似于用z而非t分位数、且标准误以n而非n − 1为除数计算出的t区间<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC4784504/)</sup> |

## 置信区间的含义

置信区间给出一个很可能包含所关注总体参数的取值范围。置信水平为\( 1-\alpha \)的区间（例如95%）意味着：若对同一总体进行大量重复抽样并每次计算一个区间，则这些区间在约\( 100(1-\alpha) \)%的情形下会覆盖真实参数。与假设检验一样，区间可以是单侧的或双侧的。<sup>[5](https://itl.nist.gov/div898/handbook/prc/section1/prc14.htm)</sup>

经典的基于公式的区间依赖于已知统计量的抽样分布。对于标准差\( \sigma \)已知的正态总体均值，双侧区间为\( \bar{Y} \pm z_{1-\alpha/2} \, \sigma / \sqrt{N} \)，其中\( \bar{Y} \)为样本均值，\( z_{1-\alpha/2} \)为标准正态临界值。<sup>[5](https://itl.nist.gov/div898/handbook/prc/section1/prc14.htm)</sup> 许多实际关心的统计量——如中位数、比值、复杂模型中的相关系数，或机器学习预测器的系数——并无这样的闭式分布。自助法用从数据本身模拟出的分布替代那个未知分布。<sup>[1](https://www.annualreviews.org/doi/10.1146/annurev-economics-080218-025651)</sup>

## 区间的构建方式

常见的第一步是非参数普通自助法：从观测数据中有放回地抽取B个容量为n的样本，对每个样本计算统计量，并将这B个重复值收集起来作为抽样分布的近似。<sup>[6](https://www.tandfonline.com/doi/full/10.1080/03610918.2026.2641163)</sup> 一次自助运行可供给多种不同的区间构造，包括百分位区间、百分位t区间和BCa区间。<sup>[6](https://www.tandfonline.com/doi/full/10.1080/03610918.2026.2641163)</sup>

**百分位区间。** 端点就是自助分布的分位数。对于基于恰好500个自助子样本的中位数90%区间，将各样本中位数按升序排列，第25个值为下限，第475个值为上限。<sup>[7](https://www.itl.nist.gov/div898/handbook/eda/section3/bootplot.htm)</sup> 对于95%区间，则使用自助统计量的第2.5和第97.5百分位数。<sup>[8](https://www.statstest.com/bootstrap-confidence-intervals-difference-means)</sup>

**基本（反百分位）区间。** 该区间使用枢轴量\( \tilde{t} - \hat{t} \)，即自助重复值与原始估计之差，形式为\( [2\hat{\theta} - \hat{\theta}^{*}_{(1-\alpha/2)}, \; 2\hat{\theta} - \hat{\theta}^{*}_{(\alpha/2)}] \)。它校正了自助分布中的偏差，但仍为一阶精确，且不具备变换不变性。<sup>[9](https://anthology-of-data.science/resources/shalizi.pdf)</sup><sup> • </sup><sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup>

**学生化（自助t）区间。** 该方法不对原始统计量做自助，而是对一个枢轴化的、类t统计量（大致为\( (\hat{\theta} - \theta)/\widehat{\text{se}} \)）做自助，其分布近似独立于真实参数。它要求对每个重抽样都给出标准误估计，或来自公式，或来自嵌套自助。<sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup><sup> • </sup><sup>[10](https://www.casrai.org/guides/bootstrapping-statistics)</sup>

**BCa区间。** 偏差校正加速区间由埃夫隆于1987年提出，它针对普通百分位法所忽略的两种效应调整百分位切点：偏差，即自助分布的中心可能与原始样本估计不对齐；以及偏度，即统计量的标准误可能随真实参数值变化，这在相关系数和比值中很常见。校正使用刀切法，即对每个观测做一次留一评估。<sup>[2](https://academic.oup.com/jrsssb/article/50/3/338/7027855)</sup><sup> • </sup><sup>[10](https://www.casrai.org/guides/bootstrapping-statistics)</sup><sup> • </sup><sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup> 一个相关程序——ABC（近似自助置信）法——是BCa的解析近似，旨在减少对自助模拟的需要。<sup>[2](https://academic.oup.com/jrsssb/article/50/3/338/7027855)</sup><sup> • </sup><sup>[21](https://pages.stat.wisc.edu/~larget/phylogeny/Efron-StatisticalScience-2003.pdf)</sup>

## 精度与方法选择

各方法的差异在于：随着样本量增大，其实际覆盖率达到名义水平的速度。百分位区间与基本区间为一阶精确，覆盖误差为\( O(n^{-1/2}) \)阶；BCa与自助t达到二阶精确，\( O(n^{-1}) \)，因此其覆盖更快收敛到名义水平。<sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup><sup> • </sup><sup>[11](https://www.varsitytutors.com/practice/subjects/statistics-graduate-level/lessons/bootstrap-confidence-intervals)</sup> 在一项针对右偏统计量（样本方差）的模拟中，10,000次试验、每次B = 5,000个重复，名义95%区间的实际覆盖率：百分位法为89.3%，BCa为93.8%，自助t为94.1%；校正方法以更宽的区间为代价换取覆盖，平均宽度分别为1.68和1.71，而百分位区间为1.42。<sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup>

各方法在不变性性质上也有差异。百分位区间与BCa区间具有变换不变性，即某统计量的区间与其单调函数的反变换区间一致；自助t、正态和基本区间不具备这一性质。百分位法与BCa还尊重参数边界，而自助t不保证这一点。<sup>[3](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)</sup> 实践中，变换确有帮助：当统计量为方差或比例时，先取对数或logit，再用学生化方法，然后将区间限反变换回去，通常能比在未变换尺度下获得明显更好的覆盖率。<sup>[12](https://metricgate.com/blogs/bootstrap-t-studentized-interval-explained/)</sup>

**小样本是薄弱环节。** 常用的百分位区间在小样本下表现很差；其行为类似于用z而非t分位数、且标准误以n而非n − 1为除数计算出的t区间。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC4784504/)</sup> BCa区间在名义覆盖升高、样本量减小时也会失去可靠性：在一项样本量为五的比较中，BCa区间低于参数值达180次，而检验反演与自助t区间如预期般为50至60次。<sup>[13](https://bpb-us-w2.wpmucdn.com/sites.umassd.edu/dist/f/1316/files/2023/01/Bootstrap-con22dence-intervals-when-which-what-A-practical-guide-for-medical-statisticians.pdf)</sup> 反过来，百分位t方法在小样本情形下可能数值不稳定，并可能产生过宽的区间。<sup>[6](https://www.tandfonline.com/doi/full/10.1080/03610918.2026.2641163)</sup>

**相依数据需要不同的机制。** BCa的加速常数是在独立抽样下定义的，因此时间序列软件仅对独立同分布重抽样方案提供它；对于相依序列，区组自助法与百分位、基本或顾及相依性的学生化区间搭配使用，覆盖仍只是近似而非精确。<sup>[14](https://tsbootstrap.readthedocs.io/en/latest/tutorials/classical_intervals.html)</sup>

## 自助法为何有效及其失效之时

在广泛适用（包括计量经济学）的条件下，自助法给出的置信区间覆盖概率近似比一阶渐近分布理论更精确，且真实覆盖与名义覆盖之差可大幅缩小。<sup>[1](https://www.annualreviews.org/doi/10.1146/annurev-economics-080218-025651)</sup> 从理论上讲，自助法是估计近似枢轴量分布的方法，这类量的分布不依赖于未知参数。<sup>[2](https://academic.oup.com/jrsssb/article/50/3/338/7027855)</sup>

已知的失效情形确实存在，但通常是病态的，因此在常规实践中不太可能造成麻烦；在许多统计问题中，自助法已被成功证明是构造置信区间的合理途径。<sup>[13](https://bpb-us-w2.wpmucdn.com/sites.umassd.edu/dist/f/1316/files/2023/01/Bootstrap-con22dence-intervals-when-which-what-A-practical-guide-for-medical-statisticians.pdf)</sup> 迭代（双重）自助法进一步精化覆盖：对于总体分位数的平滑自助区间，用迭代自助法校准名义水平可将百分位型区间的覆盖误差降至\( O(n^{-2/3}) \)阶，自助t区间降至\( O(n^{-58/57}) \)，且百分位型区间仍更短、更稳定。<sup>[15](https://arxiv.org/abs/math/0504516)</sup>

## 实际使用

重复次数B控制端点的蒙特卡洛误差。常见建议是1,000个自助样本用于粗略近似，\( 10^{4} \)或更多用于更佳精度；一些作者建议B = 15,000，并通过比较独立运行来检查端点稳定性。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC4784504/)</sup><sup> • </sup><sup>[11](https://www.varsitytutors.com/practice/subjects/statistics-graduate-level/lessons/bootstrap-confidence-intervals)</sup>

典型应用包括：回归系数——对数据或残差重抽样，并在每个自助样本上重新拟合模型，以获得斜率及其他参数的区间；<sup>[16](https://ds-usafa.github.io/Probability-and-Statistics-for-Scientists-and-Engineers/LRSIM.html)</sup> 标准误无简单公式的统计量——自助法为更复杂估计的区间估计打开了大门；<sup>[17](https://www.youtube.com/watch?v=-YgeLJRZQYY)</sup> 以及临床预测模型——基于自助的乐观校正对于准确度指标的点估计是标准做法，但伴随的置信区间往往未加校正，例如对C统计量使用DeLong区间。<sup>[18](https://arxiv.org/abs/2005.01457)</sup> 更广泛地在临床试验中，当解析抽样分布难以推导时，自助区间被用于治疗效应、聚类观测和生存结局。<sup>[19](https://www.clinicalbiostats.com/tutorials/bootstrapping-and-resampling-methods-in-clinical-trials/)</sup> 当预测变量由设计固定时（如剂量水平预先设定的临床试验），自助方案的选择本身就成为一项设计决策。<sup>[20](https://chris-slaughter.com/modern-regression/notes/Bootstrap.html)</sup>

## References

1. [Joel L. Horowitz (2019). Bootstrap Methods in Econometrics. Annual Review of Economics 11:193–224.](https://www.annualreviews.org/doi/10.1146/annurev-economics-080218-025651)
2. [Thomas J. DiCiccio and Joseph P. Romano (1988). A Review of Bootstrap Confidence Intervals. Journal of the Royal Statistical Society: Series B 50(3):338–354.](https://academic.oup.com/jrsssb/article/50/3/338/7027855)
3. [Comparison of Bootstrap Confidence Interval Methods, Introductory Statistics (Sung Chul Lee).](https://sungchullee.github.io/statistics_book_writing/ch17/bootstrap_ci/comparison/)
4. [Rand R. Wilcox and colleagues (2016). What Teachers Should Know About the Bootstrap: Resampling in the Undergraduate Statistics Curriculum.](https://pmc.ncbi.nlm.nih.gov/articles/PMC4784504/)
5. [NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.1.4: What are confidence intervals?](https://itl.nist.gov/div898/handbook/prc/section1/prc14.htm)
6. [Evaluation of bootstrap methods for coverage estimation and prediction accuracy with small samples, Communications in Statistics (2026).](https://www.tandfonline.com/doi/full/10.1080/03610918.2026.2641163)
7. [NIST/SEMATECH e-Handbook, Section 1.3.3.4: Bootstrap Plot.](https://www.itl.nist.gov/div898/handbook/eda/section3/bootplot.htm)
8. [Bootstrap Confidence Intervals for Difference in Means, StatsTest.](https://www.statstest.com/bootstrap-confidence-intervals-difference-means)
9. [Cosma Shalizi. Advanced Data Analysis, chapter on bootstrap confidence intervals.](https://anthology-of-data.science/resources/shalizi.pdf)
10. [Bootstrapping in Statistics Explained, CASRAI guide.](https://www.casrai.org/guides/bootstrapping-statistics)
11. [Bootstrap Confidence Intervals, Varsity Tutors graduate statistics lesson.](https://www.varsitytutors.com/practice/subjects/statistics-graduate-level/lessons/bootstrap-confidence-intervals)
12. [The Bootstrap-t Interval Explained for Beginners in R, MetricGate.](https://metricgate.com/blogs/bootstrap-t-studentized-interval-explained/)
13. [J. Carpenter and J. Bithell (2000). Bootstrap confidence intervals: when, which, what? A practical guide for medical statisticians. Statistics in Medicine.](https://bpb-us-w2.wpmucdn.com/sites.umassd.edu/dist/f/1316/files/2023/01/Bootstrap-con22dence-intervals-when-which-what-A-practical-guide-for-medical-statisticians.pdf)
14. [tsbootstrap documentation: Classical confidence intervals in one call.](https://tsbootstrap.readthedocs.io/en/latest/tutorials/classical_intervals.html)
15. [Iterated smoothed bootstrap confidence intervals for population quantiles, arXiv:math/0504516.](https://arxiv.org/abs/math/0504516)
16. [Chapter 28: Simulation-Based Linear Regression, USAFA Probability and Statistics for Scientists and Engineers.](https://ds-usafa.github.io/Probability-and-Statistics-for-Scientists-and-Engineers/LRSIM.html)
17. [MarinStatsLectures (2019). Bootstrap Confidence Interval with Examples.](https://www.youtube.com/watch?v=-YgeLJRZQYY)
18. [Confidence intervals of prediction accuracy measures for multivariable prediction models based on bootstrap-based optimism correction, arXiv:2005.01457.](https://arxiv.org/abs/2005.01457)
19. [Bootstrapping and Resampling Methods in Clinical Trials, Clinical Biostats.](https://www.clinicalbiostats.com/tutorials/bootstrapping-and-resampling-methods-in-clinical-trials/)
20. [Chris Slaughter. Bootstrap Applications in Regression, BIOS 6312 course notes.](https://chris-slaughter.com/modern-regression/notes/Bootstrap.html)
21. [Efron StatisticalScience 2003.pdf, pages.stat.wisc.edu](https://pages.stat.wisc.edu/~larget/phylogeny/Efron-StatisticalScience-2003.pdf)

---
*Initially written Oct 15, 2026*

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bootstrap-confidence-interval

English original: https://www.edgepedia.org/bootstrap-confidence-interval
