# 安斯康姆四重奏

**安斯康姆四重奏**（Anscombe's quartet）是由统计学家弗朗西斯·J·安斯康姆（Francis J. Anscombe）于1973年构造的四组小型数据集，每组包含十一个（x, y）数据点，使它们在均值、方差、相关系数和回归直线等汇总统计量上几乎完全一致，而散点图却呈现出截然不同的模式。该成果发表于他的论文《统计图中的图形》（"Graphs in Statistical Analysis"），刊登于《美国统计学家》（*The American Statistician*）第27卷第1期，第17–21页，至今仍是“仅凭数值摘要无法描述数据集”这一观点的标准例证。<sup>[1](https://doi.org/10.1080/00031305.1973.10478966)</sup>

| 关键事实 | 详情 |
|---|---|
| 出处 | 弗朗西斯·J·安斯康姆，《统计图中的图形》，《美国统计学家》27(1)：17–21，1973年2月<sup>[1](https://doi.org/10.1080/00031305.1973.10478966)</sup> |
| 规模 | 四组数据集（I–IV），每组11个（x, y）数据对；数据集I、II、III共享相同的x值<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup> |
| 共享统计量 | x的均值 = 9.0，y的均值 = 7.5，x的样本方差 = 11，y的方差 ≈ 4.12–4.13，皮尔逊r ≈ 0.816<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup><sup> • </sup><sup>[3](https://usefuldatatips.com/tips/visualization/anscombes-quartet)</sup> |
| 共享回归 | y = 3.00 + 0.500x，斜率估计标准误0.118，多重R² = 0.667<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup> |
| 图形所示 | 带噪声的线性趋势（I）、平滑曲线（II）、被一个离群点破坏的线性模式（III），以及斜率完全来自单一点的垂直堆叠（IV）<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup> |
| 构造方法 | 安斯康姆未报告，至今仍未知<sup>[4](https://www.research.autodesk.com/app/uploads/2023/03/same-stats-different-graphs.pdf_rec2hRjLLGgM7Cn2T.pdf)</sup> |
| 可用性 | 内置于R语言中为`anscombe`，内置于Python的seaborn中为`load_dataset("anscombe")`<sup>[5](https://stat.ethz.ch/CRAN/doc/manuals/r-release/fullrefman.pdf)</sup><sup> • </sup><sup>[6](https://seaborn.pydata.org/examples/anscombes_quartet.html)</sup> |

## 四组数据集

每组数据集由十一个自变量x与因变量y的数据对组成。前三组数据集的x值相同，均为经过特殊排列的整数4到14；数据集IV则将十个点置于x = 8处，一个点置于x = 19处。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup><sup> • </sup><sup>[5](https://stat.ethz.ch/CRAN/doc/manuals/r-release/fullrefman.pdf)</sup>安斯康姆以表格形式呈现了这些数据，并指出读者浏览这样一份打印输出——尤其是浮点记数法下的输出——很可能看不出什么名堂。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>

对四组数据中的任何一组运行普通回归程序，都会产生相同的标准输出：n = 11，x的均值 = 9.0，y的均值 = 7.5，回归系数0.5，回归直线y = 3 + 0.5x，x的平方和 = 110.0，回归平方和27.50（1个自由度），残差平方和13.75（9个自由度），斜率估计标准误0.118，多重R² = 0.667。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>x的统计量完全相同；y的统计量在第三位小数处才出现差异，样本方差为4.122至4.127，相关系数为0.816（数据集IV保留三位小数为0.817）。<sup>[3](https://usefuldatatips.com/tips/visualization/anscombes-quartet)</sup>

## 各图所示

安斯康姆设计每组数据集，都是为了让它违反拟合直线所默默做出的某一项不同假设。<sup>[7](https://artwaste.land/strata/the-shape-the-numbers-cant-see/)</sup>

- **数据集I** 是大多数人仅凭摘要就会想象出的那种情形：一个带噪声但真实的线性关系，所计算出的摘要统计量对其而言公正且充分。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>
- **数据集II** 显示y与x呈平滑的曲线关系，可能是二次的，残差变异性很小；直线是错误的模型。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>
- **数据集III** 是一个干净的线性模式被一个离群点所破坏。除一个观测外，所有观测都紧贴着另一条直线y = 4 + 0.346x，而那个观测远远偏离于它。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>
- **数据集IV** 看起来像一个表现良好的回归，但关于斜率的所有信息都集中在一个观测上：如果删去那个点，斜率就无法估计。安斯康姆主张，标准计算应当附上一项警告，说明有一个观测发挥了关键作用。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>

数据集IV的杠杆结构是精确的：位于x = 19处的远点杠杆值恰好为1，十个堆叠点的杠杆值各为0.1，十一个杠杆值之和为2，即一条直线所需拟合的参数个数。<sup>[7](https://artwaste.land/strata/the-shape-the-numbers-cant-see/)</sup>四重奏由此具体地反驳了"一小套汇总统计量足以单独确定数据集底层结构"这一主张。<sup>[8](https://watanabe.you/wiki/Anscombe%27s%20Quartet)</sup>

## 安斯康姆的论点

论文开篇列举了当时关于图形的三种流行观念：数值计算是精确的而图形是粗略的；对于任何类型的统计数据，只有一套计算构成正确的分析；进行繁复的计算是美德，而实际去看数据则是作弊。<sup>[4](https://www.research.autodesk.com/app/uploads/2023/03/same-stats-different-graphs.pdf_rec2hRjLLGgM7Cn2T.pdf)</sup>安斯康姆的立场常以他自己的话概括："图形对于良好的统计分析不可或缺。"<sup>[9](https://datasaurus-rex.com/learn/be-a-better-analyst/find-insights-beyond-the-summary-stats/comment-page-1)</sup>他还指出，当回归关系似乎渗透于所有观测之中、而非主要源自一两个观测时，我们通常更乐于断言其存在；而那些可能极大改变回归显著性的特征，在回归直线、方差分析和R²等通常的二次型摘要中是看不见的。<sup>[2](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)</sup>

## 后续推广

安斯康姆没有报告这些数据集是如何创建的，也没有提出任何创建新数据集的方法，而他究竟如何想出这些数据，至今仍不为人知。<sup>[4](https://www.research.autodesk.com/app/uploads/2023/03/same-stats-different-graphs.pdf_rec2hRjLLGgM7Cn2T.pdf)</sup>第一个推广方法出现于2007年，桑吉特·查特吉（Sangit Chatterjee）和艾库特·菲拉特（Aykut Firat）发表了一种遗传算法程序，生成1,000个具有相同汇总统计量的随机数据集，并对它们进行组合和变异，以最大化与输入散点图的图形差异。<sup>[10](https://www.researchgate.net/publication/243102677_Generating_Data_with_Identical_Statistics_but_Dissimilar_Graphics)</sup>

2017年，Autodesk Research的贾斯汀·马泰卡（Justin Matejka）和乔治·菲茨莫里斯（George Fitzmaurice）引入了一种模拟退火技术，迭代地扰动种子数据集的各个点，接受那些使所选统计量保持到小数点后两位不变的移动，同时将点引向目标形状。<sup>[4](https://www.research.autodesk.com/app/uploads/2023/03/same-stats-different-graphs.pdf_rec2hRjLLGgM7Cn2T.pdf)</sup>他们的"数据恐龙十二"（Datasaurus Dozen）生成了13组数据集，其均值、标准差和皮尔逊相关系数均匹配到小数点后两位，数据点构成恐龙、圆形、星形及其他形状；恐龙数据集有142个点，而安斯康姆只有11个，表明摘要度量的局限性并非仅仅源于点数少。<sup>[11](https://www.openintro.org/blog/article/summary-statistics-and-the-datasaurus-dozen/)</sup>这一理念此后扩展到了其他领域，包括2023年的一个因果四重奏，表明具有相同数值摘要的数据集可能蕴含不同的因果机制。<sup>[12](https://www.tandfonline.com/doi/full/10.1080/26939169.2023.2276446)</sup>

## 在教学与软件中的应用

四重奏是统计学和数据可视化教学中的固定内容，用于说明分析者应当同时研究计算和图形。<sup>[13](https://courses.utstat.utoronto.ca/STA220/data/the-anscombe-data/)</sup>它作为内置数据集随R语言的datasets包一同发布，文档中称为"安斯康姆的'相同'简单线性回归四重奏"，<sup>[5](https://stat.ethz.ch/CRAN/doc/manuals/r-release/fullrefman.pdf)</sup>也内置于Python的seaborn库中，`sns.load_dataset("anscombe")`以长格式返回该数据集，其中`dataset`列存放I至IV的值。<sup>[6](https://seaborn.pydata.org/examples/anscombes_quartet.html)</sup><sup> • </sup><sup>[3](https://usefuldatatips.com/tips/visualization/anscombes-quartet)</sup>它所承载的警告对于自动化仪表板和机器学习流水线而言，比对于1973年的回归打印输出更为有力，因为这类系统可能报告一个单一的相关系数，而无人绘制底层数据。<sup>[14](https://www.statisticscorner.com/articles/anscombes-quartet)</sup>

## References

1. [Anscombe, F. J. (1973). Graphs in Statistical Analysis. The American Statistician 27(1), 17–21.](https://doi.org/10.1080/00031305.1973.10478966)
2. [Anscombe, F. J. (1973). Graphs in Statistical Analysis (full text PDF).](https://garstats.files.wordpress.com/2016/08/anscombe-as-1973.pdf)
3. [Anscombe's Quartet & Datasaurus Dozen: Why Plot Your Data, Useful Data Tips](https://usefuldatatips.com/tips/visualization/anscombes-quartet)
4. [Matejka, J. and Fitzmaurice, G. (2017). Same Stats, Different Graphs. CHI 2017, Autodesk Research.](https://www.research.autodesk.com/app/uploads/2023/03/same-stats-different-graphs.pdf_rec2hRjLLGgM7Cn2T.pdf)
5. [R manual, entry for anscombe, CRAN](https://stat.ethz.ch/CRAN/doc/manuals/r-release/fullrefman.pdf)
6. [Anscombe's quartet example, seaborn 0.13.2 documentation](https://seaborn.pydata.org/examples/anscombes_quartet.html)
7. [Anscombe's Quartet & the Datasaurus Dozen, artwaste.land](https://artwaste.land/strata/the-shape-the-numbers-cant-see/)
8. [Anscombe's Quartet, watanabe.you wiki](https://watanabe.you/wiki/Anscombe%27s%20Quartet)
9. [Find insights beyond the summary stats, Datasaurus-Rex](https://datasaurus-rex.com/learn/be-a-better-analyst/find-insights-beyond-the-summary-stats/comment-page-1)
10. [Chatterjee, S. and Firat, A. (2007). Generating Data with Identical Statistics but Dissimilar Graphics. The American Statistician 61(3), 248–254.](https://www.researchgate.net/publication/243102677_Generating_Data_with_Identical_Statistics_but_Dissimilar_Graphics)
11. [Summary Statistics and the Datasaurus Dozen, OpenIntro](https://www.openintro.org/blog/article/summary-statistics-and-the-datasaurus-dozen/)
12. [Causal Inference Is Not Just a Statistics Problem, Harvard Data Science Review](https://www.tandfonline.com/doi/full/10.1080/26939169.2023.2276446)
13. [The Anscombe Data, STA220, University of Toronto](https://courses.utstat.utoronto.ca/STA220/data/the-anscombe-data/)
14. [Anscombe's Quartet: The Four Datasets Built to Fool the Printout, StatisticsCorner](https://www.statisticscorner.com/articles/anscombes-quartet)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Applied, official, and domain statistics › Computational statistics › Statistical graphics and computational data visualization

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/anscombes-quartet

English original: https://www.edgepedia.org/anscombes-quartet
