# 随机实验

随机实验是一种研究设计，参与者通过随机机制被分配到干预组或对照组，因此两组之间的结果差异可用来估计干预的因果效应。由于分配是无混杂的，且由研究者控制，该设计的默认估计目标是意向性治疗效应；平均因果效应 \( \mathrm{ACE} = E(Y^{a=1}) - E(Y^{a=0}) \)，也就是所有人都接受治疗与无人接受治疗时平均结果之差；当分配仅通过治疗影响结果时，该效应可被识别。<sup>[1](https://causal3900.github.io/fa23/assets/slides/2-1_random_experiments.pdf)</sup> 经典随机实验是唯一同时具备个体性、概率性和无混杂性的分配机制，使因果效应可以凭借设计来估计，而不是靠统计假设来排除混杂。<sup>[2](https://thedocs.worldbank.org/en/doc/f86182eadf2bbed24d529c76f0d16f3d-0050012022/original/Randomized-Experiments-public.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 可识别的因果量 | 可交换性下的平均因果效应 \( \mathrm{ACE} = E(Y^{a=1}) - E(Y^{a=0}) \)<sup>[1](https://causal3900.github.io/fa23/assets/slides/2-1_random_experiments.pdf)</sup> |
| 方法论支柱 | 盲法（遮蔽）、随机化和对照组<sup>[3](https://link.springer.com/article/10.1186/s12874-021-01303-z)</sup> |
| 平衡机制 | 随机性：未测量特征造成的混杂随样本量增大而缩小<sup>[4](https://onlinelibrary.wiley.com/doi/10.1002/jclp.10170)</sup> |
| 整群设计效应 | \( \mathrm{DE} = 1 + (n-1)\rho \)，其中 \( n \) 为群规模，\( \rho \) 为组内相关系数<sup>[5](https://academic.oup.com/ije/article/44/3/1051/632956)</sup> |
| 里程碑试验 | 1948年MRC链霉素试验，现代里程碑，分配得到有效隐藏<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC1114170/)</sup> |
| 主要分析 | 意向性治疗分析，理想情况下采用基于随机化的推断<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S2214658X16300174)</sup> |

## 工作原理

随机化使治疗的分配独立于潜在结果 \( Y^{a=1} \) 和 \( Y^{a=0} \)，即参与者在接受治疗和不接受治疗时分别会呈现的结果。这种可交换性由设计保证，因此观察到的均值差可估计平均因果效应。<sup>[1](https://causal3900.github.io/fa23/assets/slides/2-1_random_experiments.pdf)</sup> 由于每个人只能观察到一种潜在结果，因果推断本质上是一个缺失数据问题，需要多个个体才能解决。<sup>[2](https://thedocs.worldbank.org/en/doc/f86182eadf2bbed24d529c76f0d16f3d-0050012022/original/Randomized-Experiments-public.pdf)</sup> 该框架假定个体之间不存在干扰，即稳定单位处理值假设（SUTVA）。<sup>[8](https://ccpr.ucla.edu/wp-content/uploads/2024/04/Randomized-Experiments-as-the-Bronze-Standard.pdf)</sup>

平衡是一种趋势，而非保证。随机化应确保已知或未知的潜在混杂因素在各组间分布相似<sup>[9](https://ncbi.nlm.nih.gov/books/NBK305495/)</sup>，但在任何单一试验中它并不能让所有因素都均等：某一病因在某一组中因偶然被过度代表，就产生了流行病学家所称的随机混杂。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC6019115/)</sup> 随着样本量或重复次数的增加，随机分配以概率方式将未测量特征造成的混杂降至最低。<sup>[4](https://onlinelibrary.wiley.com/doi/10.1002/jclp.10170)</sup> 因此，随机化的核心优点在于它为通过随机化推断计算标准误提供了基础，而不在于自动带来精确性。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC6019115/)</sup>

## 如何实施

现代随机对照试验的三大方法论支柱是盲法、随机化和对照组。<sup>[3](https://link.springer.com/article/10.1186/s12874-021-01303-z)</sup>

**序列生成。** 简单随机化仅凭偶然进行分配。置换区组设计是最古老、使用最广泛的限制性方法，它强制各组人数相等，但在选择偏倚模型下，小区组规模会严重膨胀I类错误率，因此应避免高度限制性的设计。<sup>[3](https://link.springer.com/article/10.1186/s12874-021-01303-z)</sup> 区组规模不应小到使分配可以被推断出来。<sup>[9](https://ncbi.nlm.nih.gov/books/NBK305495/)</sup> 分层随机化在疾病风险不同的分层（如性别、年龄或研究中心）内分别进行分配<sup>[9](https://ncbi.nlm.nih.gov/books/NBK305495/)</sup>；约束随机化则丢弃不平衡程度不理想的分配方案，在其余方案中随机选择。<sup>[9](https://ncbi.nlm.nih.gov/books/NBK305495/)</sup>

**隐藏与盲法。** 随机化涉及两个过程：序列生成和分配隐藏。<sup>[11](https://nmji.in/primer-of-epidemiology-iv-study-designs-ii-interventional-or-experimental-designs/)</sup> 隐藏使试验人员无法预知即将到来的分配，随机化应仅在确认合格并愿意参与之后进行。<sup>[9](https://ncbi.nlm.nih.gov/books/NBK305495/)</sup> 双盲设计中参与者和研究者均不知道分配情况，从而消除了知晓分配后改变行为、治疗、监测或评估的可能性。<sup>[9](https://ncbi.nlm.nih.gov/books/NBK305495/)</sup> CONSORT 2025要求报告序列由谁生成及如何生成、随机化的类型及任何限制（如区组和区组规模）、隐藏机制以及谁被设盲。<sup>[12](https://ora.ox.ac.uk/objects/uuid:e4dda18b-e0d5-44b4-95cf-a5094e5fc888/files/r8g84mp598)</sup>

**分析。** 默认估计目标是意向性治疗效应 \( E[Y^{z=1} - Y^{z=0}] \)，即按分配进行的对比；只要分配通过不经过治疗的路径影响结果，符合方案效应 \( E[Y^{z=1,a=1} - Y^{z=0,a=0}] \) 和治疗效应 \( E[Y^{a=1} - Y^{a=0}] \) 就是不同的估计目标。<sup>[13](https://arxiv.org/html/2408.14710v2)</sup> 阿西和因本斯推荐基于随机化的推断，其不确定性来自随机分配而非假设的抽样，并且他们更倾向于划分小分层并调整标准误，而不是基于模型的随机化后协变量调整。<sup>[7](https://www.sciencedirect.com/science/article/abs/pii/S2214658X16300174)</sup>

## 起源

随机化由R. A. 费希尔（R. A. Fisher）引入农业实验，已发表文献将其归功于他1926年发表在《皇家统计学会杂志》上的论文<sup>[14](https://doi.org/10.2307/2341488)</sup>，而这一方法论原则的命名早于费希尔在《实验设计》（The Design of Experiments，1935）中对随机分配的理论倡导。<sup>[15](https://www.jameslindlibrary.org/articles/why-the-1948-mrc-trial-of-streptomycin-used-treatment-allocation-based-on-random-numbers/)</sup> 随机分配的重要性在费希尔1925年和布拉德福德·希尔（Bradford Hill）1948年的贡献之后才首次得到充分认识。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC1114170/)</sup> 在人类研究中，丹麦的一项白喉血清试验是一项临床试验，其中使用了随机分配，并将其强调为关键的方法论原则。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC1114170/)</sup>

现代里程碑是1948年的MRC链霉素试验。希尔早先在1937年《柳叶刀》（Lancet）的文章中主张使治疗组具有可比性，最初推荐交替分配，并刻意避免使用“随机化”和“随机抽样数字”等字眼，以免吓退医生。<sup>[15](https://www.jameslindlibrary.org/articles/why-the-1948-mrc-trial-of-streptomycin-used-treatment-allocation-based-on-random-numbers/)</sup> 在链霉素试验中，随机抽样数字对研究者保密，封存在信封中，仅在中央办公室开启。<sup>[15](https://www.jameslindlibrary.org/articles/why-the-1948-mrc-trial-of-streptomycin-used-treatment-allocation-based-on-random-numbers/)</sup> 它被称为一项严格对照的试验，考虑到药物稀缺、药量大约只够治疗50名患者，这使得对照设计可以被接受。<sup>[16](https://gwern.net/doc/statistics/causality/1990-hill.pdf)</sup> 以隐藏为中心的理由延续至今：随机分配的首要原因是防止预知分配，而非统计理论。<sup>[15](https://www.jameslindlibrary.org/articles/why-the-1948-mrc-trial-of-streptomycin-used-treatment-allocation-based-on-random-numbers/)</sup>

## 变体

**整群和分组随机试验**以整个群体（如诊所或村庄）为单位进行随机化。自20世纪70年代末这些设计被引入生物医学研究以来，分组随机试验的方法不断发展。<sup>[17](https://www.annualreviews.org/content/journals/10.1146/annurev-publhealth-040119-094027)</sup> 对于群规模恒为 \( n \)、组内相关系数为 \( \rho \) 的整群随机试验，在个体随机化下计算的样本量需按设计效应 \( \mathrm{DE} = 1 + (n-1)\rho \) 膨胀，该效应由唐纳、伯基特和巴克提出。<sup>[5](https://academic.oup.com/ije/article/44/3/1051/632956)</sup> 对于连续结局，每臂样本量为 \( m = (Z_{1-\alpha/2} + Z_{1-\beta})^2 \cdot 2\sigma^2/\Delta^2 \cdot [1 + (n-1)\rho] \)，其中 Δ 为临床重要差异。<sup>[5](https://academic.oup.com/ije/article/44/3/1051/632956)</sup>

**阶梯楔形试验**是一种单向交叉设计，各群在随机时间点从对照转为干预，起始于无任何群接受治疗的基线期<sup>[18](https://doi.org/10.1016/j.cct.2006.05.007)</sup>；所有群最终都会接受干预，这可以缓解伦理顾虑。<sup>[18](https://doi.org/10.1016/j.cct.2006.05.007)</sup> 赫西和休斯为该设计形式化了检验效能和分析方法<sup>[18](https://doi.org/10.1016/j.cct.2006.05.007)</sup>，赫明及其同事则综述了其原理、设计、分析和报告。<sup>[19](https://doi.org/10.1136/bmj.h391)</sup>

**适应性和平台试验**根据中期结果改变分配。REMAP-CAP由德里克·C. 安格斯及其同事（2020）在《美国胸科学会年鉴》（Annals of the American Thoracic Society）上描述，它将多因素随机化嵌入常规重症监护，并使用根据先前相似参与者获益程度加权的反应适应性随机化。<sup>[20](https://doi.org/10.1513/annalsats.202003-192sd)</sup> 适应性平台试验联盟（Adaptive Platform Trials Coalition）于2019年发表了针对平台试验的设计和报告考量，此类试验在共享对照的基础上增加和移除治疗臂。<sup>[21](https://doi.org/10.1038/s41573-019-0034-3)</sup>

## 应用

在COVID-19期间，RECOVERY和REMAP-CAP等平台试验确认地塞米松、托珠单抗、巴瑞替尼和抗体疗法为有效治疗，同时显示若干广泛使用的经验性药物缺乏有效性。<sup>[22](https://doi.org/10.1183/2312508x.10021223)</sup> 一项针对AI辅助心力衰竭预筛的随机评估发现，具备检索能力的大语言模型工作流程只有在与临床医生审核和特定中心的工作流程整合相结合时，才能减少漏筛合格患者和协调员工作量。<sup>[23](https://www.thelancet.com/journals/eclinm/article/PIIS2589-5370%2826%2900449-9/fulltext)</sup>

## 局限性与替代方案

失访是随机试验的祸根；最好的应对是尽量减少失访，并且必须检查失访水平和基线特征上的差异性失访。<sup>[2](https://thedocs.worldbank.org/en/doc/f86182eadf2bbed24d529c76f0d16f3d-0050012022/original/Randomized-Experiments-public.pdf)</sup> 随机化后的偏倚，包括差异性脱落、补救用药和外部事件，会扰乱组间平衡，几乎不可能完全解决。<sup>[24](https://journals.sagepub.com/doi/10.1177/02537176241297953)</sup> 无偏性得益于对实验的监督，这可能涉及对受试者、实验者、结局评估者和分析者设盲，尽管这一措施并非总是可行。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC6019115/)</sup><sup> • </sup><sup>[28](https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-08)</sup> SUTVA违背，尤其是在个体之间存在交互的分组随机试验中，可以在适当假设下通过统计方法处理，包括估计随机实验中直接效应和溢出效应的方法。<sup>[8](https://ccpr.ucla.edu/wp-content/uploads/2024/04/Randomized-Experiments-as-the-Bronze-Standard.pdf)</sup><sup> • </sup><sup>[29](https://imai.sites.fas.harvard.edu/research/spillover/)</sup> 外部效度无法保证，因为知情同意要求可能使参与者不具有代表性<sup>[25](https://www.theigc.org/sites/default/files/2016/06/athey_imbens_june19.pdf)</sup>，而试验估计仅适用于样本，且往往是便利样本。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC6019115/)</sup>

**替代方案。** 断点回归设计可以产生与随机实验相当的效应估计，但检验效能较低、估计参数不同、分析更复杂。<sup>[26](https://journals.sagepub.com/doi/10.1177/1049731511403324)</sup> 拉隆德1986年的结论——非实验方法无法复制实验基准——推动了无混杂性、重叠检查以及倾向评分和双重稳健估计量的进展；具有充分协变量重叠的现代方法可以产生稳健的调整差异，但因果可解释性需要安慰剂检验等验证性工作。<sup>[27](https://www.aeaweb.org/articles?id=10.1257%2Fjep.20251440)</sup>

## References

1. [Randomized experiments (course slides, Cornell Causal Inference course)](https://causal3900.github.io/fa23/assets/slides/2-1_random_experiments.pdf)
2. [Why and What to Randomize (World Bank randomized experiments lecture slides, July 8, 2015)](https://thedocs.worldbank.org/en/doc/f86182eadf2bbed24d529c76f0d16f3d-0050012022/original/Randomized-Experiments-public.pdf)
3. [A roadmap to using randomization in clinical trials (BMC Medical Research Methodology, 2021)](https://link.springer.com/article/10.1186/s12874-021-01303-z)
4. [What random assignment does and does not do (Krause & Howard, Journal of Clinical Psychology, 2003)](https://onlinelibrary.wiley.com/doi/10.1002/jclp.10170)
5. [Methods for sample size determination in cluster randomized trials (International Journal of Epidemiology)](https://academic.oup.com/ije/article/44/3/1051/632956)
6. [The controlled clinical trial turns 100 years: Fibiger's trial of serum treatment of diphtheria (BMJ 1998)](https://pmc.ncbi.nlm.nih.gov/articles/PMC1114170/)
7. [Chapter 3 - The Econometrics of Randomized Experiments (Handbook of Economic Field Experiments, Athey & Imbens)](https://www.sciencedirect.com/science/article/abs/pii/S2214658X16300174)
8. [Randomized Experiments as the Bronze Standard (Berk, UCLA CCPR working paper)](https://ccpr.ucla.edu/wp-content/uploads/2024/04/Randomized-Experiments-as-the-Bronze-Standard.pdf)
9. [Chapter 11 Randomization, blinding, and coding (NCBI Bookshelf)](https://ncbi.nlm.nih.gov/books/NBK305495/)
10. [Understanding and misunderstanding randomized controlled trials (Deaton & Cartwright)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6019115/)
11. [Primer of Epidemiology IV. Study designs II: Interventional or experimental designs (National Medical Journal of India)](https://nmji.in/primer-of-epidemiology-iv-study-designs-ii-interventional-or-experimental-designs/)
12. [CONSORT 2025 explanation and elaboration: updated guideline for reporting randomised trials](https://ora.ox.ac.uk/objects/uuid:e4dda18b-e0d5-44b4-95cf-a5094e5fc888/files/r8g84mp598)
13. [The role of assignment in defining and identifying causal effects in randomized trials (arXiv, 2024)](https://arxiv.org/html/2408.14710v2)
14. [L. I., R. A. Fisher (1926). Statistical Methods for Research Workers.. Journal Of The Royal Statistical Society.](https://doi.org/10.2307/2341488)
15. [Why the 1948 MRC trial of streptomycin used treatment allocation based on random numbers (Chalmers)](https://www.jameslindlibrary.org/articles/why-the-1948-mrc-trial-of-streptomycin-used-treatment-allocation-based-on-random-numbers/)
16. [Memories of the British streptomycin trial in tuberculosis: The First Randomized Clinical Trial (Austin Bradford Hill, Controlled Clinical Trials 11:77-79, 1990)](https://gwern.net/doc/statistics/causality/1990-hill.pdf)
17. [Essential Ingredients and Innovations in the Design and Analysis of Group-Randomized Trials (Annual Review of Public Health)](https://www.annualreviews.org/content/journals/10.1146/annurev-publhealth-040119-094027)
18. [Michael A. Hussey, James P. Hughes (2006). Design and analysis of stepped wedge cluster randomized trials. Contemporary Clinical Trials.](https://doi.org/10.1016/j.cct.2006.05.007)
19. [K. Hemming and colleagues (2015). The stepped wedge cluster randomised trial: rationale, design, analysis, and reporting. BMJ.](https://doi.org/10.1136/bmj.h391)
20. [Derek C. Angus and colleagues (2020). The REMAP-CAP (Randomized Embedded Multifactorial Adaptive Platform for Community-acquired Pneumonia) Study. Rationale and Design. Annals of the American Thoracic Society.](https://doi.org/10.1513/annalsats.202003-192sd)
21. [The Adaptive Platform Trials Coalition and colleagues (2019). Adaptive platform trials: definition, design, conduct and reporting considerations. Nature Reviews Drug Discovery.](https://doi.org/10.1038/s41573-019-0034-3)
22. [COVID-19 platform trials: insight and lessons in clinical trial design (New et al., ERS Monograph 2024)](https://doi.org/10.1183/2312508x.10021223)
23. [fulltext (thelancet.com)](https://www.thelancet.com/journals/eclinm/article/PIIS2589-5370%2826%2900449-9/fulltext)
24. [Poorly Recognized and Uncommonly Acknowledged Limitations of Randomized Controlled Trials (SAGE, 2024)](https://journals.sagepub.com/doi/10.1177/02537176241297953)
25. [Experiments (Athey & Imbens lecture notes)](https://www.theigc.org/sites/default/files/2016/06/athey_imbens_june19.pdf)
26. [Randomized Controlled Studies and Alternative Designs in Outcome Studies: Challenges and Opportunities (Shadish)](https://journals.sagepub.com/doi/10.1177/1049731511403324)
27. [Comparing Experimental and Nonexperimental Methods: What Lessons Have We Learned Four Decades after LaLonde (1986)? (Imbens & Xu, Journal of Economic Perspectives, 2025)](https://www.aeaweb.org/articles?id=10.1257%2Fjep.20251440)
28. [Chapter 8: Assessing risk of bias in a randomized trial, Cochrane](https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-08)
29. [Causal Inference with Interference and Noncompliance in Two-Stage Randomized Experiments](https://imai.sites.fas.harvard.edu/research/spillover/)

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

Topic: 物质世界与数学 › 科学总论与科研实践 › 研究方法与实验设计 › Experimental and quasi-experimental design

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/randomized-experiment

English original: https://www.edgepedia.org/randomized-experiment
