# 析因实验

析因实验是一种统计设计的研究：让一个系统在若干输入变量（称为因子）上运行，每个因子取两个或更多测试值（称为水平），使因子水平的所有组合都出现在实验方案中，所得响应可以用统计模型来拟合。其根本目的在于不仅估计每个因子的单独效应（主效应），还估计交互作用，即一个因子的效应如何随另一个因子的水平而变化——这是一次一因子研究无法检测到的。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup><sup> • </sup><sup>[2](https://statoberrypapaya.github.io/TextbookofAgstat/factorial.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 每个因子的每个水平都与所有其他因子的每个水平相组合；一次运行就是每个因子各取一个水平的一种组合。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup> |
| 运行次数 | 有 k 个因子、每个因子取 2 个水平时，全析因设计需要 2<sup>k</sup> 次运行：2 个因子为 4 次，3 个为 8 次，4 个为 16 次，5 个为 32 次，6 个为 64 次，7 个为 128 次。<sup>[3](https://itl.nist.gov/div898/handbook/pri/section3/pri333.htm)</sup> |
| 实际限制 | 因子数达到 5 个或更多时，不建议采用全析因设计；推荐改用部分析因设计或 Plackett-Burman 设计。<sup>[3](https://itl.nist.gov/div898/handbook/pri/section3/pri333.htm)</sup> |
| 部分设计 | 2<sup>k−p</sup> 设计是全析因设计的 1/2<sup>p</sup> 部分；若三因子及更高阶交互作用可忽略，2<sup>5−1</sup> 半部分设计可估计 5 个主效应和 10 个两因子交互作用。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup> |
| 分辨率 | 部分析因设计的分辨率是其定义关系中最短字的长度；分辨率 III 使主效应与两因子交互作用互为别名，分辨率 IV 则不会。<sup>[4](https://itl.nist.gov/div898/handbook/pri/section3/pri3344.htm)</sup> |
| 历史起源 | 第一个 2 × 2 × 2 田间试验——氮、钾、磷各取两个水平——于 1928 年在沃本（Woburn）实施，重复四次。<sup>[5](https://www.cambridge.org/core/journals/journal-of-agricultural-science/article/abs/field-experiments-of-factorial-design/BCCAF290D2D42078280892D0ACB88BE1)</sup> |
| 经典文献 | F. 耶茨（F. Yates），《析因实验的设计与分析》（*The Design and Analysis of Factorial Experiments*，帝国土壤科学局，技术通讯第 35 号，1937 年，96 页），1938 年由 R. A. 费希尔（R. A. Fisher）在《自然》（*Nature*）上撰写书评。<sup>[6](https://www.nature.com/articles/142090a0)</sup> |

## 结构与析因效应

析因实验的方案写成设计矩阵：列为因子，行为实验运行，每个元素是该次运行中该因子的水平。测试用例的运行顺序经过随机化，使系统性的非随机效应无法污染结果；运行可以重复，以估计实验误差带来的方差。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup>

在两水平实验中，一个因子的主效应是：将该因子从低水平移到高水平所引起的响应的平均变化，并对其他因子的所有水平取平均。两因子交互作用是一个因子在另一个因子的两个水平上的条件主效应之差；三因子交互作用类似地定义为一个两因子交互作用在第三个因子各水平上的差异。主效应与交互作用合称析因效应。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup> 三因子及更高阶交互作用往往难以从物理上解释，分析中通常假定它们可以忽略。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup>

分析建立在线性模型之上，即一般线性模型 \( y = X\beta + e \) 的一个特例，其中 \( X \) 是模型矩阵，\( \beta \) 是参数，\( e \) 是实验误差，通常假定其均值为零、方差 \( \sigma^2 \) 未知。对于有 k 个因子的全析因设计，全模型包含所有主效应和所有阶的交互作用；高阶项通常先用来绘制效应的正态图或半正态图，然后在拟合更简单且拟合效果足够好的模型时被剔除。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup><sup> • </sup><sup>[7](https://itl.nist.gov/div898/handbook/pri/section4/pri43.htm)</sup>

## 效率与析因原则

析因实验经济地利用数据：每个因子都从同一组实验单元中研究；当交互作用不存在时，析因结构的作用相当于额外的重复，每个单元格的观测数乘以其他因子的水平数。<sup>[2](https://statoberrypapaya.github.io/TextbookofAgstat/factorial.html)</sup><sup> • </sup><sup>[8](https://online.stat.psu.edu/stat503/Lesson05)</sup> 临床研究中的 k 合一析因试验，在没有交互作用的条件下，用与一个平行组试验相同数量的单元回答 k 个单因子问题。<sup>[9](https://arxiv.org/abs/2607.12991)</sup>

代价是组合爆炸。测试用例数 \( v^k \) 随因子数 k 呈指数增长，因此实验者力求在不丢失重要效应信息的前提下尽量减少运行次数。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup> 三水平设计的增长更快：一个 3<sup>4</sup> 析因设计需要 81 次运行，而估计四因子二次模型全部项（一个截距、4 个主效应、6 个两因子交互作用和 4 个二次项）所需的最少运行数为 15。<sup>[10](https://www.itl.nist.gov/div898/handbook/pri/section3/pri336.htm)</sup>

## 部分析因设计、混杂与分辨率

**部分析因设计**运行全析因设计的一个选定子集。2<sup>k−p</sup> 设计是由 p 个定义关系选出的 1/2<sup>p</sup> 部分；生成元及其乘积的完整集合称为定义关系，由此通过相乘可得到完整的混杂（别名）模式。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup><sup> • </sup><sup>[4](https://itl.nist.gov/div898/handbook/pri/section3/pri3344.htm)</sup> 在 2<sup>3</sup> 设计的标准半部分中，定义关系为 I = 123，别名为 1 = 23、2 = 13、3 = 12：每个主效应都与一个两因子交互作用混杂，这是将运行次数减半的代价。<sup>[11](https://www.itl.nist.gov/div898/handbook/pri/section3/pri3343.htm)</sup> 在 2<sup>6</sup> 设计的典型四分之一部分中，主效应只与三因子交互作用混杂，但某些两因子交互作用彼此混杂。<sup>[11](https://www.itl.nist.gov/div898/handbook/pri/section3/pri3343.htm)</sup>

部分析因设计的分辨率是其定义关系中最短字的长度，用罗马数字表示：2<sup>3−1</sup> 设计记为 \( 2^{3-1}_{III} \)，而 2<sup>8</sup> 设计的八分之一部分若最短字长度为四，则记为 \( 2^{8-3}_{IV} \)。分辨率 III 设计使主效应与两因子交互作用互为别名；分辨率 IV 设计不会，但会使两因子交互作用彼此互为别名。在 \( 2^{8-3}_{IV} \) 设计中，15 个两因子交互作用以两两或三三成组的方式互为别名，其余 13 个则只与通常假定可忽略的高阶交互作用互为别名。<sup>[4](https://itl.nist.gov/div898/handbook/pri/section3/pri3344.htm)</sup>

**区组混杂**是同一家族中更古老的手段。它可追溯到 1927 年的罗瑟姆斯特德（Rothamsted），做法是牺牲高阶交互作用的信息（这些交互作用被认为不太可能是真实效应），以增加区组数目，从而消除区组间土壤异质性的影响；在完全没有重复的情况下，通过将若干此类交互作用合并在一起，可以获得实验误差的估计。<sup>[5](https://www.cambridge.org/core/journals/journal-of-agricultural-science/article/abs/field-experiments-of-factorial-design/BCCAF290D2D42078280892D0ACB88BE1)</sup> 在区组化的 2<sup>3</sup> 设计中，区组分配取自三因子交互作用列，因此区组效应与该交互作用混杂；正交性保证其余每个因子和交互作用仍可与其他项清楚地分开估计。<sup>[12](https://www.itl.nist.gov/div898/handbook/pri/section3/pri3333.htm)</sup>

## 中心点与曲率

两水平析因设计假定响应在低水平和高水平之间单调变化。中心点运行设在每个因子范围的中点，其目的有二：测量过程稳定性和固有变异，以及检验曲率。一个粗略的指导原则是在全析因或部分析因设计中加入 3 至 5 次中心点运行；这些运行不随机化，而是均匀分散在整个设计中，包括实验开始和结束时，因为它们的作用是通过规律抽样来检测不稳定性。<sup>[13](https://itl.nist.gov/div898/handbook/pri/section3/pri337.htm)</sup> 带中心点的两水平设计可以检测二次效应，但无法估计各个纯二次效应，因为处理安排使所有二次效应彼此混杂；要估计它们，每个因子需要三个水平。<sup>[10](https://www.itl.nist.gov/div898/handbook/pri/section3/pri336.htm)</sup>

## 历史

析因实验源于罗瑟姆斯特德实验站的农业田间试验，统计数据分析最初正是在那里兴起的，因为需要把田间小区中的处理效应与偶然差异区分开来。R. A. 费希尔及其同事弗兰克·耶茨（Frank Yates）的指导原则是随机化和重复，以估计背景变异并应对生物材料的变异性。<sup>[14](https://www.cambridge.org/core/journals/journal-of-agricultural-science/article/guest-editorial-the-analysis-of-agricultural-experiments-a-brief-history-of-the-techniques-of-the-20th-century/56285C05D5A43A1F1149E71553CF3524)</sup> 1926 年曾在罗瑟姆斯特德进行过一个 3 × 2 × 2 实验，比沃本第一个 2 × 2 × 2 实验早两年，但有一个复杂之处：在第三个因子的某一水平上，两个因子无法区分。<sup>[5](https://www.cambridge.org/core/journals/journal-of-agricultural-science/article/abs/field-experiments-of-factorial-design/BCCAF290D2D42078280892D0ACB88BE1)</sup>

耶茨 1937 年的专著汇集了当时已有的设计，并对悬而未决的问题给出了实用解法；费希尔在《自然》上的书评指出，全世界实验者一直在热切期待这部著作。<sup>[6](https://www.nature.com/articles/142090a0)</sup> 同一专著还引入了计算所有析因效应及其平方和的表格捷径，即耶茨算法，至今仍在讲授，尽管如今用统计软件很容易得到同样的估计。<sup>[2](https://statoberrypapaya.github.io/TextbookofAgstat/factorial.html)</sup><sup> • </sup><sup>[15](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35i.htm)</sup> 费希尔和耶茨还引入了实际上与有限阿贝尔群对偶的构造来构建析因设计，并于 1938 年共同出版了《生物、农业和医学研究统计表》（*Statistical Tables for Biological, Agricultural and Medical Research*）。<sup>[16](https://research-portal.st-andrews.ac.uk/en/publications/latin-squares-at-rothamsted-in-the-time-of-fisher-and-yates/)</sup>

这些方法从罗瑟姆斯特德的麦田传播到医学、工业和其他科学领域。<sup>[2](https://statoberrypapaya.github.io/TextbookofAgstat/factorial.html)</sup> 在临床试验中，一场可追溯到 1935 年的长期争论将两个学派区分开来：实验设计传统用析因试验稳健地估计交互作用，而 k 合一传统则在交互作用不存在时，用一个试验的样本量回答若干问题。<sup>[9](https://arxiv.org/abs/2607.12991)</sup> 2023 年 SPIRIT 声明析因试验扩展版引用的一项 2020 年元分析发现，在接受评估的试验中，51% 以析因分析作为主要方法，23% 使用多组分析，只有 26% 同时呈现两者的结果；在模型中纳入交互作用项可能使每个比较损失 50% 的样本量，而根据初步交互作用检验来决定最终分析是不被鼓励的，因为该检验功效低，且可能引入偏倚。<sup>[17](https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2812567)</sup>

## 用途

析因实验有四种实际用途：比较，确定哪些因子水平给出更有利的响应；筛选，从众多因子中找出效应最大的少数几个；预测，在测试设定附近拟合一个简约的响应模型；优化，找出给出有利响应的因子取值。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup> 高效析因实验的设计矩阵是正交表，或包含正交表作为子集；这一联系将这些思想带入软件组合测试，在那里，覆盖阵列（正交表的推广）测试设定的所有 t 路组合。<sup>[1](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)</sup><sup> • </sup><sup>[18](https://csrc.nist.gov/pubs/journal/2013/03/combinatorial-testing-for-software-design-of-exper/final)</sup>

## References

1. [R. N. Kacker et al. Factorials Experiments, Covering Arrays, and Combinatorial Testing. NIST CSRC.](https://csrc.nist.gov/CSRC/media/Projects/automated-combinatorial-testing-for-software/documents/MCSFactorialCACT20210521.pdf)
2. [Factorial experiments. Textbook of Agricultural Statistics.](https://statoberrypapaya.github.io/TextbookofAgstat/factorial.html)
3. [5.3.3.3. Full factorial designs. NIST/SEMATECH e-Handbook of Statistical Methods.](https://itl.nist.gov/div898/handbook/pri/section3/pri333.htm)
4. [5.3.3.4.4. Fractional factorial design specifications and design resolution. NIST/SEMATECH e-Handbook.](https://itl.nist.gov/div898/handbook/pri/section3/pri3344.htm)
5. [John Wishart (1938). Field experiments of factorial design. The Journal of Agricultural Science 28(2), 299–306.](https://www.cambridge.org/core/journals/journal-of-agricultural-science/article/abs/field-experiments-of-factorial-design/BCCAF290D2D42078280892D0ACB88BE1)
6. [R. A. Fisher (1938). The Design and Analysis of Factorial Experiments (review of Yates, 1937). Nature 142, 90–92.](https://www.nature.com/articles/142090a0)
7. [5.4.3. How to model DOE data. NIST/SEMATECH e-Handbook.](https://itl.nist.gov/div898/handbook/pri/section4/pri43.htm)
8. [5. Introduction to Factorial Designs. STAT 503, Design of Experiments, Penn State.](https://online.stat.psu.edu/stat503/Lesson05)
9. [Walwyn, R. E. A. et al. Factorial clinical trials in the presence and absence of plausible statistical interactions between treatment factors. arXiv.](https://arxiv.org/abs/2607.12991)
10. [5.3.3.6. Response surface designs. NIST/SEMATECH e-Handbook.](https://www.itl.nist.gov/div898/handbook/pri/section3/pri336.htm)
11. [5.3.3.4.3. Confounding (also called aliasing). NIST/SEMATECH e-Handbook.](https://www.itl.nist.gov/div898/handbook/pri/section3/pri3343.htm)
12. [5.3.3.3.3. Blocking of full factorial designs. NIST/SEMATECH e-Handbook.](https://www.itl.nist.gov/div898/handbook/pri/section3/pri3333.htm)
13. [5.3.3.7. Adding centerpoints. NIST/SEMATECH e-Handbook.](https://itl.nist.gov/div898/handbook/pri/section3/pri337.htm)
14. [The analysis of agricultural experiments: a brief history of the techniques of the 20th century. The Journal of Agricultural Science.](https://www.cambridge.org/core/journals/journal-of-agricultural-science/article/guest-editorial-the-analysis-of-agricultural-experiments-a-brief-history-of-the-techniques-of-the-20th-century/56285C05D5A43A1F1149E71553CF3524)
15. [1.3.5.18. Yates Algorithm. NIST/SEMATECH e-Handbook.](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35i.htm)
16. [Latin squares at Rothamsted in the time of Fisher and Yates. University of St Andrews Research Portal.](https://research-portal.st-andrews.ac.uk/en/publications/latin-squares-at-rothamsted-in-the-time-of-fisher-and-yates/)
17. [Extension of the SPIRIT 2013 Statement for Factorial Randomized Trials. JAMA Network Open (2023).](https://jamanetwork.com/journals/jamanetworkopen/fullarticle/2812567)
18. [Combinatorial Testing for Software: an Adaptation of Design of Experiments. NIST CSRC.](https://csrc.nist.gov/pubs/journal/2013/03/combinatorial-testing-for-software-design-of-exper/final)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Applied, official, and domain statistics › Engineering and industrial statistics › Industrial design of experiments

Copyright 2026 Edgepedia

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

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

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