# 有放回抽样

有放回抽样是一种抽样方法，从总体中每抽取一个单元后，在抽取下一个单元之前将其放回总体，因此同一单元可能在样本中出现多次。每次抽取都是在相同条件下从完整总体中进行，这使得各次抽取相互独立且同分布。这一设计贯穿统计学：在调查抽样中表现为简单随机有放回抽样（SRSWR），在自助法中表现为重抽样步骤，也见于蒙特卡洛模拟。它与无放回抽样形成对照——后者抽出的单元被移出，样本包含 n 个互不相同的单元。

| 关键事实 | 数值或表述 | 来源 |
|---|---|---|
| 抽取规则 | 每一阶段每个单元被抽中的概率均为 \( 1/N \)；重复的随机数被接受而非舍弃 | <sup>[1](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)</sup> |
| 样本空间 | 有放回时共有 \( N^{n} \) 个可能的有序样本，无放回时共有 \( C(N, n) \) 个无序样本 | <sup>[2](https://faculty.ksu.edu.sa/sites/default/files/singh_elements-of-survey-samplingf-1996.pdf)</sup> |
| 计数分布 | 样本中各单元的计数服从多项分布；联合入样概率不能分解为 \( \pi_{ij} = \pi_{i} \cdot \pi_{j} \) | <sup>[3](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> |
| 样本均值的方差 | 有放回时 Var(X̄) = σ²/n；无放回时为 (σ²/n)(N − n)/(N − 1) | <sup>[4](https://dept.stat.lsa.umich.edu/~moulib/sampling.pdf)</sup> |
| 不同单元数 | 从 N 中抽取 A 次后，不同单元数的期望为 \( N \cdot (1 - (1 - 1/N)^{A}) \) | <sup>[5](https://ar5iv.labs.arxiv.org/html/1602.05822)</sup> |
| 效率 | 由于没有元素被重复抽中，SRSWOR 的估计量方差通常低于 SRSWR | <sup>[3](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> |
| 自助法 | 自助法对数据进行有放回重抽样 | <sup>[6](https://doi.org/10.1214/aos/1176344552)</sup> |

## 原理

由于每次抽取前单元都被放回，各次抽取 X_1, ..., X_n 相互独立且服从总体分布。在等概率抽取下，N 个单元各自在 n 次抽取中出现的次数构成一个多项随机向量，其单元概率为 \( 1/N \)；各次抽取相互独立，但不同单元的入样事件并不独立：对于不同单元 i 和 j，\( \pi_{ij} = 1 - 2(1 - 1/N)^{n} + (1 - 2/N)^{n} \)，而 \( \pi_{i} = 1 - (1 - 1/N)^{n} \)，因此一般而言 \( \pi_{ij} \ne \pi_{i} \cdot \pi_{j} \)。<sup>[3](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> 对于二分类特征，每次抽取是一个独立的伯努利试验；无放回时各次抽取则是相依的伯努利试验，不过当总体很大时二项分布能很好地近似超几何分布。<sup>[7](https://gregorkb.github.io/statmeth/sampling_with_without_replacement.html)</sup>

重复是有放回抽样的根本代价：某一特定单元在 n 次抽取中至少出现一次的概率为 \( 1 - (1 - 1/N)^{n} \)，不同单元数的期望为 \( \mathrm{E}[k] = N \cdot (1 - (1 - 1/N)^{A}) \)，当 N 很大且 \( \alpha = A/N \) 时趋于 \( N \cdot (1 - e^{-\alpha}) \)。<sup>[5](https://ar5iv.labs.arxiv.org/html/1602.05822)</sup> 不同单元数的完整分布为 \( \mathrm{P}(k) = ((N)_{k} / N^{A}) \cdot \left\{ A \brace k \right\} \)，其中 \( (N)_{k} \) 为下降阶乘，\( \left\{ A \brace k \right\} \) 为第二类斯特林数。<sup>[5](https://ar5iv.labs.arxiv.org/html/1602.05822)</sup>

## 操作方式

操作过程是机械性的：逐个抽取 n 个单元，使每一阶段每个单元被抽中的机会均等，均为 \( 1/N \)，记录抽到的值，并在下一次抽取前将该单元放回。使用随机数时，所有随机数都被接受，即使重复也照收；在无放回的对应情形中，重复的随机数被忽略，继续抽取新的随机数。<sup>[1](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)</sup> 计算有序抽取的数目可得 \( N^{n} \) 个可能样本。<sup>[2](https://faculty.ksu.edu.sa/sites/default/files/singh_elements-of-survey-samplingf-1996.pdf)</sup>

在这一设计下，样本均值以及以 \( 1/(n - 1) \) 为除数的样本方差分别是总体均值 μ 和方差 σ² 的无偏估计，且 Var(X̄) = σ²/n。<sup>[4](https://dept.stat.lsa.umich.edu/~moulib/sampling.pdf)</sup> 当各单元的抽取概率 p_i 不等时，汉森-赫维茨估计量 \( \hat{Y}_{HH} = (1/n)\sum_{i=1}^{n} y_{i}/p_{i} \) 是总体总量的无偏估计，其方差为 \( (1/n)\sum_{i=1}^{n}(Y_{i}^{2}/p_{i} - Y^{2}) \)；使方差最小的概率为 \( p_{i} = Y_{i}/Y \)，实践中用规模度量近似，当 p_i = 1/N 时该估计量退化为 Nȳ。<sup>[8](https://www.maths.usyd.edu.au/u/jchan/STAT3014/sur15_5_sol.pdf)</sup> 一个有用的改进：在简单随机有放回抽样下，不同单元的均值同样无偏，且方差小于全部抽取的均值。<sup>[9](https://crraoaimscs.res.in/uploads/RR2016-09.pdf)</sup>

## 起源

将有放回抽取形式化为一种估计设计，属于调查抽样理论发展的一部分。耶日·内曼（Jerzy Neyman）1934 年的论文《论代表性方法的两个不同方面》奠定了概率抽样的基础，首次对基于随机化的有限总体样本推断作了完整讨论；置信区间的概念也在那里首次得到定义。<sup>[10](https://doi.org/10.2307/2342192)</sup><sup> • </sup><sup>[11](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Fss%2F1177013352&isResultClick=False)</sup> 莫里斯·H·汉森（Morris H. Hansen）与威廉·N·赫维茨（William N. Hurwitz）1943 年的论文《论有限总体抽样理论》给出了有放回样本的无偏加权结果，表明当单元以不等、已知、非零的概率被抽取时，无偏估计是可能的。<sup>[12](https://doi.org/10.1214/aoms/1177731356)</sup><sup> • </sup><sup>[13](https://isi-iass.org/home/wp-content/uploads/Survey_Statistician_2023_July_N88_05.pdf)</sup> D. G. 霍维茨（D. G. Horvitz）与 D. J. 汤普森（D. J. Thompson）1952 年的论文提供了相应的无放回框架，以每个单元入样概率的倒数作为其权重，而形式化的基于设计的框架则由霍维茨-汤普森（1952）和戈丹贝（Godambe，1955）加以整合。<sup>[14](https://doi.org/10.1080/01621459.1952.10483446)</sup><sup> • </sup><sup>[15](https://2015.isiproceedings.org/Files/IPS105-P1-S.pdf)</sup> 在另一背景下，B. 埃夫隆（B. Efron）1979 年的论文《自助法：刀切法的另一种审视》提出了自助法，其重抽样步骤从观测数据中有放回地抽取。<sup>[6](https://doi.org/10.1214/aos/1176344552)</sup><sup> • </sup><sup>[13](https://isi-iass.org/home/wp-content/uploads/Survey_Statistician_2023_July_N88_05.pdf)</sup>

## 变体

**子抽样变体。** 在大数据的最优子抽样中，有放回子抽样所抽取的观测在给定全数据的条件下独立同分布，但无条件地并不独立；而泊松子抽样的观测不同分布，却可以无条件独立；当所有泊松子抽样概率相等时，该过程称为伯努利子抽样。<sup>[16](http://proceedings.mlr.press/v130/wang21a/wang21a.pdf)</sup> 只有当子抽样比 \( s/n \) 趋于零时，两种设计才具有相同的渐近估计效率；否则泊松子抽样效率更高，除非 \( s/n \) 非常小，否则推荐使用泊松子抽样。<sup>[16](http://proceedings.mlr.press/v130/wang21a/wang21a.pdf)</sup>

**不等概率与加权形式。** 以与规模变量成比例的概率进行有放回抽取（有放回 PPS）是汉森-赫维茨估计量的自然场景。<sup>[8](https://www.maths.usyd.edu.au/u/jchan/STAT3014/sur15_5_sol.pdf)</sup> 自助法是最为人熟悉的有放回重抽样方案；将其应用于来自有限总体的无放回样本需要大量进一步工作，这些工作被归为伪总体法、直接法和自助权重法三类。<sup>[13](https://isi-iass.org/home/wp-content/uploads/Survey_Statistician_2023_July_N88_05.pdf)</sup>

## 应用

**自助推断与机器学习。** 自助重抽样从经验分布（每个项目等概率的多项分布）中有放回地抽取，以模拟产生原始样本的抽样过程；袋装法和 .632+ 验证方案是文中提到的应用。<sup>[5](https://ar5iv.labs.arxiv.org/html/1602.05822)</sup>

**比例与置信区间。** 在医学研究中，对二分类结局抽样类似于伯努利试验，m 次有放回试验中阳性结局的比例 \( x/m \) 介于 0 与 1 之间。2025 年的一篇论文提出了一种确定性算法，为这类计数和比例生成置信区间，避免了传统区间的大样本限制；其核心困难在于概率分布的离散性，因此没有闭式公式能给出最优解。<sup>[17](https://www.mdpi.com/1999-4893/18/8/459)</sup>

## 局限与替代方案

**效率。** 对于等概率抽样，无放回时样本均值的方差不大于有放回时的方差。<sup>[18](https://ar5iv.labs.arxiv.org/html/1606.01782)</sup> 按通常记号，无放回方差带有有限总体校正：当方差以 σ² 表示时为 Var(X̄) = (σ²/n)(N − n)/(N − 1)，当以 \( S^{2} \)（除数 \( N - 1 \)）表示时为 \( (1 - f) \cdot S^{2}/n \)，其中 \( f = n/N \)；已发表的文献各自采用与其方差约定相符的形式。<sup>[4](https://dept.stat.lsa.umich.edu/~moulib/sampling.pdf)</sup><sup> • </sup><sup>[19](https://bookdown.org/content/78e0de27-f084-46fb-be7c-c77a199d2abf/simple-random-sampling.html)</sup> 当 n 相对于 N 较小时，校正因子接近 1；当样本至少占总体 10% 时变得明显；低于约 5%（对许多用途甚至 10%）时可以忽略，不过忽略它会高估方差。<sup>[20](https://irene.vrbik.ok.ubc.ca/quarto/stat205/lectures/lecture09.html)</sup><sup> • </sup><sup>[1](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)</sup>

**重复与不等概率。** 重复单元浪费信息：在等概率有放回抽样中，若忽略重复单元，样本均值估计会更有效，方差更小，这就是上文的不同单元结果。<sup>[18](https://ar5iv.labs.arxiv.org/html/1606.01782)</sup><sup> • </sup><sup>[9](https://crraoaimscs.res.in/uploads/RR2016-09.pdf)</sup> 有放回抽样还能简化计算，并且当抽样比很小时，能很好地近似无放回估计量的精确行为。<sup>[8](https://www.maths.usyd.edu.au/u/jchan/STAT3014/sur15_5_sol.pdf)</sup> 对于某些不等概率抽取分布，每次抽取后放回实际上能得到更可靠、方差更低的总体均值估计，因此无放回的优势并非普遍成立。<sup>[18](https://ar5iv.labs.arxiv.org/html/1606.01782)</sup>

**替代方案。** 在随机排列抽样框之后，以间隔 \( k = N/n \) 进行系统抽样，为选取 SRSWOR 提供了一种便捷方式；从有序名单出发，它起到隐式分层的作用，但方差估计需要模型假设。<sup>[3](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup>

## References

1. [Chapter 2: Simple Random Sampling (IIT Kanpur course notes by Shalabh)](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)
2. [Singh, Elements of Survey Sampling (1996)](https://faculty.ksu.edu.sa/sites/default/files/singh_elements-of-survey-samplingf-1996.pdf)
3. [Sampling from finite populations (Encyclopedia of Mathematics)](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)
4. [Simple Random Sampling (University of Michigan Statistics lecture notes)](https://dept.stat.lsa.umich.edu/~moulib/sampling.pdf)
5. [What is the distribution of the number of unique original items in a bootstrap sample? (arXiv:1602.05822)](https://ar5iv.labs.arxiv.org/html/1602.05822)
6. [B. Efron (1979). Bootstrap Methods: Another Look at the Jackknife. The Annals of Statistics.](https://doi.org/10.1214/aos/1176344552)
7. [Sampling with versus without replacement – Statistical Methods](https://gregorkb.github.io/statmeth/sampling_with_without_replacement.html)
8. [Unequal probability sampling notes (University of Sydney, STAT3014)](https://www.maths.usyd.edu.au/u/jchan/STAT3014/sur15_5_sol.pdf)
9. [Research Report on history of sample surveys (C.R. Rao AIMSCS)](https://crraoaimscs.res.in/uploads/RR2016-09.pdf)
10. [Jerzy Neyman (1934). On the Two Different Aspects of the Representative Method: The Method of Stratified Sampling and the Method of Purposive Selection. Journal Of The Royal Statistical Society.](https://doi.org/10.2307/2342192)
11. [History of sample survey theory and practice (Statistical Science)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Fss%2F1177013352&isResultClick=False)
12. [Morris H. Hansen, William N. Hurwitz (1943). On the Theory of Sampling from Finite Populations. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177731356)
13. [Survey Sampling During the Last 50 Years (The Survey Statistician, IASS, 2023)](https://isi-iass.org/home/wp-content/uploads/Survey_Statistician_2023_July_N88_05.pdf)
14. [D. G. Horvitz, D. J. Thompson (1952). A Generalization of Sampling Without Replacement from a Finite Universe. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1952.10483446)
15. [Sample survey theory and methods: past 100 years (ISI 2015 proceedings)](https://2015.isiproceedings.org/Files/IPS105-P1-S.pdf)
16. [A comparative study on sampling with replacement vs Poisson sampling in optimal subsampling (ICML 2021, PMLR v130)](http://proceedings.mlr.press/v130/wang21a/wang21a.pdf)
17. [Algorithm Providing Ordered Integer Sequences for Sampling with Replacement Confidence Intervals (MDPI Algorithms, 2025)](https://www.mdpi.com/1999-4893/18/8/459)
18. [To replace or not to replace in finite population sampling (arXiv:1606.01782)](https://ar5iv.labs.arxiv.org/html/1606.01782)
19. [Chapter 2 Simple random sampling | Survey data in Economics and Finance](https://bookdown.org/content/78e0de27-f084-46fb-be7c-c77a199d2abf/simple-random-sampling.html)
20. [Stat 205 – Lecture: Sampling from Finite Populations (UBC)](https://irene.vrbik.ok.ubc.ca/quarto/stat205/lectures/lecture09.html)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Oct 15, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Sampling design and survey methodology › Sampling designs and estimators › Simple random sampling

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/sampling-with-replacement

English original: https://www.edgepedia.org/sampling-with-replacement
