# 随机抽样

随机抽样通过一种随机机制从已界定的总体中抽取单元，在这种机制下每个单元都有一个已知的抽中概率，它支撑着调查估计和基于设计的统计推断。只有随机抽取才允许将样本结果推广到整个总体，并给出可计算的误差范围。<sup>[1](https://www.webpages.uidaho.edu/population_ecology/Simple_random_sampling.htm)</sup><sup> • </sup><sup>[2](https://sda.berkeley.edu/dlab/sampling/Piazza_draft.pdf)</sup> 简单随机抽样（SRS）是标准的基本方法，也是评估其他设计的基线。<sup>[2](https://sda.berkeley.edu/dlab/sampling/Piazza_draft.pdf)</sup> 从一开始就需要注意一点：让每个单元具有相同的抽中机会本身并不充分；简单随机样本要求给定规模的所有可能样本都等可能。<sup>[3](https://www.amsi.org.au/ESA_Senior_Years/PDF/RandomSampling4b.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 抽取对象 | 从抽样框中抽取单元，使每个单元都有已知的抽中机会<sup>[1](https://www.webpages.uidaho.edu/population_ecology/Simple_random_sampling.htm)</sup><sup> • </sup><sup>[3](https://www.amsi.org.au/ESA_Senior_Years/PDF/RandomSampling4b.pdf)</sup> |
| 入样概率（SRSWOR） | 对每个单元 \( \pi_{i} = n/N \)；联合入样概率 \( \pi_{ij} = n(n-1)/[N(N-1)] \)<sup>[4](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)</sup> |
| 有限总体校正 | \( \text{fpc} = 1 - n/N \)；抽样比很小时约等于1，普查时为0<sup>[4](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)</sup> |
| 估计量 | 采用基础权重 \( w_{i} = \pi_{i}^{-1} \) 的霍维茨-汤普森（Horvitz–Thompson）估计量；当所有入样概率已知且为正时无偏<sup>[5](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> |
| 效率 | 无放回简单随机抽样比有放回简单随机抽样的估计量方差更低<sup>[5](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> |
| 历史分水岭 | 奈曼（Neyman）1934年关于代表性方法两个方面的论文<sup>[6](https://doi.org/10.2307/2342192)</sup> |
| 软件中的随机数 | 计算机随机数是伪随机数，由公式生成<sup>[7](https://www.stat.auckland.ac.nz/~wild/ChanceEnc/Ch01.random.pdf)</sup>；R 的 sample() 结果在 3.6.0 版发生变化<sup>[8](https://stat.ethz.ch/R-manual/R-devel/library/base/html/sample.html)</sup> |

## 工作原理

一个概率抽样程序必须满足四项标准：可能得到的各个不同样本是可定义的；每个样本的抽中概率是已知的；按这些概率随机进行抽取；每个样本给出唯一估计。<sup>[1](https://www.webpages.uidaho.edu/population_ecology/Simple_random_sampling.htm)</sup> 在简单随机抽样无放回（SRSWOR）下，有 \( \binom{N}{n} \) 个不同的可能样本，每个样本以概率 \( 1/\binom{N}{n} \) 被抽中，因此每个单元的入样概率为 \( \pi_{i} = n/N \)。<sup>[4](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)</sup><sup> • </sup><sup>[9](https://arxiv.org/pdf/1612.04965)</sup> 在有放回（SRSWR）下，每个单元在每次抽取时都有 \( 1/N \) 的机会，产生 \( N^{n} \) 个可能的有序样本，每个样本的概率为 \( 1/N^{n} \)，入样概率为 \( 1-\left(1-\frac{1}{N}\right)^{n} \)，小于 \( n/N \)。<sup>[10](https://dickbrus.github.io/SpatialSamplingwithR/IntroProbabilitySampling.html)</sup><sup> • </sup><sup>[11](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)</sup>

样本均值是总体均值的无偏估计，其方差为 \( \operatorname{Var}(\bar{y}) = (1-n/N) \cdot \frac{S^{2}}{n} \)，其中 \( S^{2} = \sum_{i}(y_{i}-\bar{Y})^{2}/(N-1) \) 是有限总体方差，\( (N-n)/N \) 是有限总体校正因子。<sup>[12](https://online.stat.psu.edu/stat506/Lesson01)</sup> 在 SRSWR 下，方差为 \( (N-1)S^{2}/(Nn) \)。<sup>[13](https://dept.stat.lsa.umich.edu/~moulib/sampling.pdf)</sup> 对任意设计，总量由纳拉因-霍维茨-汤普森（Narain–Horvitz–Thompson）估计量 \( \hat{Y} = \sum_{i}^{n} w_{i} y_{i} \) 估计，基础权重为 \( w_{i} = \pi_{i}^{-1} \)，只要所有一阶入样概率均为正，该估计量就是无偏的。<sup>[5](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup><sup> • </sup><sup>[14](https://doi.org/10.1080/01621459.1952.10483446)</sup><sup> • </sup><sup>[9](https://arxiv.org/pdf/1612.04965)</sup> SRSWOR 比 SRSWR 更有效，因为任何元素都不能被抽取一次以上；被重复抽中的单元不携带额外信息，不过有放回抽样更易于实施。<sup>[5](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup><sup> • </sup><sup>[10](https://dickbrus.github.io/SpatialSamplingwithR/IntroProbabilitySampling.html)</sup>

## 操作方式

必须首先界定总体并构建抽样框，即实际从中抽样的可操作总体，它应尽可能接近真正感兴趣的总体。<sup>[3](https://www.amsi.org.au/ESA_Senior_Years/PDF/RandomSampling4b.pdf)</sup> 将抽样框中的 N 个单元编号为1到N，并从随机数表或生成器中读取随机数：有放回时接受重复号码，无放回时忽略重复号码。<sup>[11](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)</sup> 计算器方法通过 \( i = 1 + u \cdot N \) 将均匀随机数 u 转换为单元编号，取整数部分。<sup>[7](https://www.stat.auckland.ac.nz/~wild/ChanceEnc/Ch01.random.pdf)</sup> 电子表格方法为每个元素分配一个随机数，排序后取前 n 个元素。<sup>[1](https://www.webpages.uidaho.edu/population_ecology/Simple_random_sampling.htm)</sup><sup> • </sup><sup>[3](https://www.amsi.org.au/ESA_Senior_Years/PDF/RandomSampling4b.pdf)</sup> SPSS、SAS 或 Stata 等统计软件可以直接从计算机文件形式的抽样框中抽取样本，<sup>[2](https://sda.berkeley.edu/dlab/sampling/Piazza_draft.pdf)</sup> R 的 sample(1:N, size = n, replace = FALSE)、Minitab 的“从列中抽样”（Sample from Columns）以及 Python 的 random.sample 也可以。<sup>[8](https://stat.ethz.ch/R-manual/R-devel/library/base/html/sample.html)</sup><sup> • </sup><sup>[15](https://www.casrai.org/guides/simple-random-sampling)</sup><sup> • </sup><sup>[16](https://online.stat.psu.edu/stat200/book/export/html/23)</sup> 若抽取必须为预注册或审计追踪而精确可复现，则先用 set.seed() 设定随机种子。<sup>[15](https://www.casrai.org/guides/simple-random-sampling)</sup> 可复现性现在取决于有记录的种子与生成器设置：R 的 sample() 结果在 3.6.0 版通过 RNGkind(sample.kind = ..) 发生了变化，这一变化会破坏旧脚本的可复现性。<sup>[8](https://stat.ethz.ch/R-manual/R-devel/library/base/html/sample.html)</sup>

## 起源

代表性方法通过挪威一项退休与疾病保险计划的调查进入统计学。<sup>[17](https://pure.uva.nl/ws/files/24636645/74286_312955.pdf)</sup> 该专著描述了结合1891年挪威人口普查，从选定的教区和城镇中抽取个人，使样本成为整个总体的正确缩影。<sup>[18](https://www.ssb.no/a/histstat/sos/sos_027.pdf)</sup><sup> • </sup><sup>[19](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Fss%2F1177013352&isResultClick=False)</sup> 1912年发表的一项雷丁调查（Reading survey）提供了实际演示，表明来自大随机样本的估计近似服从正态分布。<sup>[20](https://www150.statcan.gc.ca/n1/pub/12-001-x/2013002/article/11883-eng.htm)</sup><sup> • </sup><sup>[17](https://pure.uva.nl/ws/files/24636645/74286_312955.pdf)</sup> 1925年，国际统计学会（ISI）罗马会议通过决议，同时接受随机化抽样与目的抽样。<sup>[20](https://www150.statcan.gc.ca/n1/pub/12-001-x/2013002/article/11883-eng.htm)</sup>

奈曼1934年提交给皇家统计学会（Royal Statistical Society）的论文将代表性方法分为分层抽样法和目的选择法，后者是鲍利（Bowley）、基尼（Gini）和加尔瓦尼（Galvani）所描述的程序。<sup>[6](https://doi.org/10.2307/2342192)</sup> 该论文提出了置信区间的概念，并给出了抽样单元在各层间最优分配的理论。<sup>[19](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Fss%2F1177013352&isResultClick=False)</sup> 他对意大利普查数据的经验评估表明，目的抽样可能产生不令人满意的估计，该论文被广泛认为确立了概率抽样的优点。<sup>[17](https://pure.uva.nl/ws/files/24636645/74286_312955.pdf)</sup><sup> • </sup><sup>[5](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> 肯德尔（Kendall）与巴宾顿·史密斯（Babington Smith）1938年发表于《皇家统计学会杂志》（Journal of the Royal Statistical Society）的论文讨论了随机抽样数字和四项局部随机性检验。<sup>[21](https://doi.org/10.2307/2980655)</sup> 经典理论由汉森（Hansen）与赫尔维茨（Hurwitz）1943年提出的第一阶段按与规模成比例的概率抽样的多阶段抽样理论、<sup>[22](https://doi.org/10.1214/aoms/1177731356)</sup> 霍维茨与汤普森1952年对无放回抽样的推广、<sup>[14](https://doi.org/10.1080/01621459.1952.10483446)</sup> 以及汉森、赫尔维茨和马多（Madow）1953年的教科书完成。

## 变体

系统抽样在1到K之间随机选定起点后，每隔K个单元抽取一个；对随机排序的总体，其结果与SRS相似，但名单中与抽样间隔重合的周期性特征可能使样本不具代表性。<sup>[23](https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm)</sup><sup> • </sup><sup>[24](https://theorempath.com/topics/survey-sampling-methods)</sup> 尽管只有起点是随机的，但当起点随机时，它是一种概率抽样方法，每个单元的入样概率为已知的 n/N。<sup>[25](https://uk.sagepub.com/sites/default/files/upm-assets/40803_book_item_40803.pdf)</sup><sup> • </sup><sup>[23](https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm)</sup><sup> • </sup><sup>[25](https://uk.sagepub.com/sites/default/files/upm-assets/40803_book_item_40803.pdf)</sup> 分层抽样将总体划分为层，并从每层抽取部分样本；<sup>[6](https://doi.org/10.2307/2342192)</sup> 相比SRS可改善方差，层间差异越大改善越明显，<sup>[26](https://ar5iv.labs.arxiv.org/html/2011.00901)</sup> 并且与配额抽样不同，它是一种允许估计抽样误差的概率程序。<sup>[25](https://uk.sagepub.com/sites/default/files/upm-assets/40803_book_item_40803.pdf)</sup> 整群抽样在多数情况下效率低于SRS，因为相邻单元往往相似；当群规模均为 B、组内相关系数为 \( \rho \) 时，设计效应约为 \( \text{DEFF} \approx 1 + (B-1)\rho \)。<sup>[23](https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm)</sup><sup> • </sup><sup>[24](https://theorempath.com/topics/survey-sampling-methods)</sup> 与规模成比例的概率抽样利用规模信息，使较大的单元有更高的抽中机会。<sup>[23](https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm)</sup> 配额抽样使用便利抽样，不需要抽样框；在1948年盖洛普民意调查（Gallup poll）之后——该调查使用配额抽样并错误预测杜威（Dewey）为49.5%、杜鲁门（Truman）为44.5%——民意调查机构转向概率抽样。<sup>[25](https://uk.sagepub.com/sites/default/files/upm-assets/40803_book_item_40803.pdf)</sup><sup> • </sup><sup>[12](https://online.stat.psu.edu/stat506/Lesson01)</sup> 萨德曼（Sudman）1966年提出的带配额概率抽样是一种早期混合方法。<sup>[27](https://doi.org/10.1080/01621459.1966.10480903)</sup>

## 应用

对于 SRSWOR 均值，误差范围为 \( \text{MOE} = Z\sqrt{(1-n/N)S_{y}^{2}/n} \)。<sup>[4](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)</sup> 对于所需的误差范围 m，未校正样本量 \( n' = (Z/m)^{2} S_{Y}^{2} \) 校正为 \( n = n'/(1+n'/N) \)。<sup>[4](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)</sup> 对于已知 N 的比例，\( n = z^{2} \cdot p \cdot q / [\text{ME}^{2} + z^{2} \cdot p \cdot q/N] \)。<sup>[28](https://stattrek.org/sample-size/simple-random-sample?tutorial=samp)</sup> 当抽样比低于5%（许多用途下可到10%）时，fpc 可以忽略；忽略它会高估方差。<sup>[11](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)</sup> 若预期无应答率为 φ，则抽取 \( n_{\text{select}} = n/(1-\phi) \) 个单元以获得 n 个应答。<sup>[4](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)</sup>

## 局限与替代方案

SRS 除完整单元名单外不需要抽样框信息，但为大规模总体编制这样的名单可能昂贵或不现实，而且该设计忽略了分层抽样会利用的辅助信息。<sup>[23](https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm)</sup> 无应答是一种核心失效模式：对1000人进行无瑕疵的SRS，若应答率为20%，除非能证明无应答与研究变量无关，否则在应答者中它已不再是随机样本；若很大比例的人不应答，大样本也无济于事。<sup>[15](https://www.casrai.org/guides/simple-random-sampling)</sup><sup> • </sup><sup>[3](https://www.amsi.org.au/ESA_Senior_Years/PDF/RandomSampling4b.pdf)</sup> 覆盖不足和无应答可能代表特定子群，并使估计产生偏倚。<sup>[29](https://eprints.soton.ac.uk/435300/1/WP5_Random_probability_vs_quota_sampling.pdf)</sup> 补偿会针对单元无应答提高相似应答单元的基础权重，并针对覆盖不足采用事后分层等校准调整。<sup>[5](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)</sup> 由抽样框缺陷、测量误差和无应答偏倚造成的非抽样误差不会随样本量增大而缩小，也不被标准置信区间所涵盖。<sup>[15](https://www.casrai.org/guides/simple-random-sampling)</sup> 计算机和计算器产生的随机数是伪随机数，由公式生成，因此序列是预先确定的。<sup>[7](https://www.stat.auckland.ac.nz/~wild/ChanceEnc/Ch01.random.pdf)</sup> 随意抽样和代表性抽样不会产生简单随机样本，<sup>[1](https://www.webpages.uidaho.edu/population_ecology/Simple_random_sampling.htm)</sup> 而在任意抽样中，抽中概率未知，因此基于设计的估计不可能。<sup>[10](https://dickbrus.github.io/SpatialSamplingwithR/IntroProbabilitySampling.html)</sup> 没有概率选择机制，就没有计算标准误或误差范围的定义基础。<sup>[15](https://www.casrai.org/guides/simple-random-sampling)</sup> 即便如此，布里克（Brick）曾论证，一个实施良好但应答率低的概率样本，其偏倚很可能小于志愿者样本；与此同时，不断下降的应答率和有效抽样框的丧失正使概率抽样愈发困难。<sup>[29](https://eprints.soton.ac.uk/435300/1/WP5_Random_probability_vs_quota_sampling.pdf)</sup>

## References

1. [Simple Random Sampling (Wlf 543, E. O. Garton, University of Idaho)](https://www.webpages.uidaho.edu/population_ecology/Simple_random_sampling.htm)
2. [Fundamentals of Applied Sampling (Piazza, UC Berkeley)](https://sda.berkeley.edu/dlab/sampling/Piazza_draft.pdf)
3. [Random sampling (AMSI Schools module)](https://www.amsi.org.au/ESA_Senior_Years/PDF/RandomSampling4b.pdf)
4. [Chapter 6 Simple Random Sampling, STAT392 Sample Surveys (Victoria University of Wellington)](https://homepages.ecs.vuw.ac.nz/~rarnold/STAT392/SampleSurveysBook/_book/simple-random-sampling.html)
5. [Sampling from finite populations (Encyclopedia of Mathematics)](https://encyclopediaofmath.org/wiki/Sampling_from_finite_populations)
6. [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)
7. [Random Numbers (Chance Encounters, University of Auckland)](https://www.stat.auckland.ac.nz/~wild/ChanceEnc/Ch01.random.pdf)
8. [R: Random Samples and Permutations (sample / sample.int documentation)](https://stat.ethz.ch/R-manual/R-devel/library/base/html/sample.html)
9. [A review of model-assisted and design-based survey sampling (Tillé)](https://arxiv.org/pdf/1612.04965)
10. [Spatial sampling with R, Introduction to probability sampling (D. Brus)](https://dickbrus.github.io/SpatialSamplingwithR/IntroProbabilitySampling.html)
11. [Chapter 2: Simple Random Sampling (Shalabh, IIT Kanpur)](https://home.iitk.ac.in/~shalab/sampling/chapter2-sampling-simple-random-sampling.pdf)
12. [Estimating Population Mean and Total under SRS – STAT 506, Penn State](https://online.stat.psu.edu/stat506/Lesson01)
13. [Simple Random Sampling (Moulinath Banerjee, University of Michigan, 2012)](https://dept.stat.lsa.umich.edu/~moulib/sampling.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. [Simple Random Sampling: Definition, Steps, and Worked Examples (CASRAI)](https://www.casrai.org/guides/simple-random-sampling)
16. [1.2.2 Sampling Methods (Penn State STAT 200)](https://online.stat.psu.edu/stat200/book/export/html/23)
17. [The rise of survey sampling (Bethlehem, University of Amsterdam)](https://pure.uva.nl/ws/files/24636645/74286_312955.pdf)
18. [Kiaer, Den repræsentative undersøgelsesmethode (1897, republished with English translation 1976)](https://www.ssb.no/a/histstat/sos/sos_027.pdf)
19. [History of survey sampling review (Statistical Science)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2Fss%2F1177013352&isResultClick=False)
20. [Brewer, Three controversies in the history of survey sampling (Survey Methodology, 2013)](https://www150.statcan.gc.ca/n1/pub/12-001-x/2013002/article/11883-eng.htm)
21. [M. G. Kendall, B. Babington Smith (1938). Randomness and Random Sampling Numbers. Journal Of The Royal Statistical Society.](https://doi.org/10.2307/2980655)
22. [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)
23. [3.2.2 Probability sampling (Statistics Canada)](https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm)
24. [Survey Sampling Methods: SRS, Stratified, Cluster, and Multi-Stage Designs](https://theorempath.com/topics/survey-sampling-methods)
25. [Chapter 5: Choosing the Type of Probability Sampling (SAGE textbook chapter)](https://uk.sagepub.com/sites/default/files/upm-assets/40803_book_item_40803.pdf)
26. [Sampling Algorithms, from Survey Sampling to Monte Carlo Methods: Tutorial and Literature Review](https://ar5iv.labs.arxiv.org/html/2011.00901)
27. [Seymour Sudman (1966). Probability Sampling with Quotas. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1966.10480903)
28. [Sample Size: Simple Random Samples (Stat Trek)](https://stattrek.org/sample-size/simple-random-sample?tutorial=samp)
29. [Random probability vs quota sampling (University of Southampton working paper)](https://eprints.soton.ac.uk/435300/1/WP5_Random_probability_vs_quota_sampling.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 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/random-sampling

English original: https://www.edgepedia.org/random-sampling
