# 数据恐龙十二组

数据恐龙十二组是一个由十三组二维数据集组成的集合，其中包括原始的恐龙形状数据恐龙以及十二组生成的额外数据集。这些数据集在汇总统计量（均值、标准差和皮尔逊相关系数）上几乎完全一致，但其分散图却截然不同，形态涵盖了从星形和圆形到倾斜线条和 X 形等多种变化。\[1]\[2]该集合于2017年由Autodesk Research的Justin Matejka（贾斯汀·马泰卡）和George Fitzmaurice（乔治·菲茨莫里斯）创建，旨在证明汇总统计量本身无法完整描述数据集，而可视化数据依然至关重要\[3]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup><sup> • </sup><sup>[2](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)</sup><sup> • </sup><sup>[3](https://dl.acm.org/doi/10.1145/3025453.3025912)</sup>

| 关键事实 | 详情 |
|---|---|
| 组成 | 13组数据集：原始的数据恐龙加上 12 组生成的形状（away、bullseye、circle、dino、dots、h\_lines、high\_lines、slant\_down、slant\_up、star、v\_lines、wide\_lines、x\_shape）\[2]<sup>[2](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)</sup> |
| 共享统计量 | x 均值 $\approx 54.26$，y 均值 $\approx 47.83$，x 标准差 $\approx 16.76$，y 标准差 $\approx 26.93$，皮尔逊相关系数 $r \approx -0.06$（名义值保留两位小数）\[1]<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup> |
| 数据集规模 | 论文示例中每组数据集有 182 个点；发布的软件包数据每组有 142 行\[1]\[4]<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup><sup> • </sup><sup>[4](https://usefuldatatips.com/tips/visualization/anscombes-quartet)</sup> |
| 方法 | 模拟退火：随机点扰动必须满足统计学界限和目标形状的适应性，并且在过程早期允许接受一些偏离目标移动的步骤\[2]<sup>[2](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)</sup> |
| 迭代次数 | 变形至每种目标形状大约需要 20 万次扰动迭代；所有中间动画帧也共享相同的统计数据\[5]<sup>[5](https://www.research.autodesk.com/publications/same-stats-different-graphs/)</sup> |
| 数据恐龙的起源 | 由 Alberto Cairo（阿尔贝托·卡洛）于 2016 年创建，最初是一个汇总统计量看似正常的恐龙形状分散图\[1]<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup> |
| 前身 | 安斯库姆四元组（1973）：四组各包含 11 个点的相同汇总统计量数据集\[6]<sup>[6](https://sjsu.edu/faculty/gerstman/StatPrimer/anscombe1973.pdf)</sup> |

## 历史与起源

这一谱系始于Francis J. Anscombe（弗朗西斯·J·安斯库姆）于1973年在《美国统计学家》（The American Statistician）第27卷第1期第17—21页发表的论文《统计分析中的图形》（Graphs in Statistical Analysis）。该论文展示了四组各包含 11 个 (x, y) 对的数据集，它们拥有完全相同的汇总统计量，但分散图却截然不同\[6]。尽管安斯库姆四元组广为流传，但他当时是如何构建这些数据集的，至今无人知晓\[1]。2007年，Chatterjee和Firat在《美国统计学家》上发表了一项通用程序，该程序使用基于遗传算法的方法来生成具有相同汇总统计量但图形迥异的数据集\[7]。<sup>[6](https://sjsu.edu/faculty/gerstman/StatPrimer/anscombe1973.pdf)</sup><sup> • </sup><sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup><sup> • </sup><sup>[7](https://www.tandfonline.com/doi/abs/10.1198/000313007X220057)</sup>

2016年，可视化专家Alberto Cairo制作了一个名为“数据恐龙”的数据集，它绘制了一幅恐龙的图景，尽管其产生的汇总统计量是“正常”的\[1]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup>Matejka和Fitzmaurice以数据恐龙为起点，逐渐将其重塑成 12 种不同的图形——包括星形、圆形、靶心形、X 形、水平和垂直的线条，以及斜对角线——并将成果在2017年的CHI Conference上以《相同的统计量，不同的图形》为题发表了论文（DOI：10.1145/3025453.3025912）\[4]\[3]。<sup>[4](https://usefuldatatips.com/tips/visualization/anscombes-quartet)</sup><sup> • </sup><sup>[3](https://dl.acm.org/doi/10.1145/3025453.3025912)</sup>

## 数据集及其共享统计量

这十三组数据集在五个汇总统计量上表现出高度一致的值：x 均值 $\approx 54.26$，y 均值 $\approx 47.83$，x 标准差 $\approx 16.76$，y 标准差 $\approx 26.93$，以及皮尔逊相关系数 $\approx -0.06$\[1]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup>这十三组子数据集被命名为 away、bullseye、circle、dino、dots、h\_lines、high\_lines、slant\_down、slant\_up、star、v\_lines、wide\_lines 和 x\_shape\[2]。<sup>[2](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)</sup>

这种匹配是基于两位小数的容差，而非完全一致。每组数据集的相关系数范围从 -0.0603 到 -0.0694（例如，dino 为 -0.0645，star 为 -0.0630，away 为 -0.0641）\[2]。<sup>[2](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)</sup>这十三组数据的每个统计量之间的差异都在 0.01 以内，但它们并非全部能四舍五入到相同的值：如果四舍五入到两位小数，有些行会变成 54.27 或 -0.07，而截断到两位小数则可以重现所有 13 组已发表的数值\[4]。<sup>[4](https://usefuldatatips.com/tips/visualization/anscombes-quartet)</sup>

## 数据集是如何生成的

该方法基于一个简单的洞察：从零开始生成具有特定统计学属性的数据集相对困难，但对现有数据集进行微小修改以保持这些属性则相对容易\[5]。该算法的步骤如下：<sup>[5](https://www.research.autodesk.com/publications/same-stats-different-graphs/)</sup>

1. 随机选取一个点，并从正态分布中抽取一个小量将其移动。这个正态分布经过校准，确保超过 95% 的移动不会改变数据集的统计属性（保留两位小数）\[1]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup>
2. 接受那些既使汇总统计量保持在可接受范围内，又能提高目标形状适应性的移动；模拟退火还可以接受偏离目标的移动，尤其是在运行的早期阶段。适应性是通过计算所有点到目标形状最近点的平均距离来衡量的\[1]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup>
3. 应用模拟退火：在运行初期，会接受一些偏离目标的移动，并且会使用一个从温度 0.4 逐渐降低到 0.01 的二次平滑单调冷却时间表来减少此类接受的频率\[1]\[5]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup><sup> • </sup><sup>[5](https://www.research.autodesk.com/publications/same-stats-different-graphs/)</sup>

向每种目标形状的变形过程大约需要 20 万次迭代，由此产生的动画的所有帧都共享与终点相同的汇总统计量\[5]。<sup>[5](https://www.research.autodesk.com/publications/same-stats-different-graphs/)</sup>这项技术不仅限于这十二种选择的形状；任何线段的集合都可以用作目标。<sup>[5](https://www.research.autodesk.com/publications/same-stats-different-graphs/)</sup>一个已报告的局限性是，如果将一个强正相关的（strongly positively correlated）数据集强行塑造成一个截然不同的目标形状（例如星形），可能会产生不可取的点聚集现象，因为适应性函数只考虑点相对于目标形状的位置\[1]。<sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup>

## 与安斯库姆四元组和早期研究的比较

数据恐龙十二组在规模和通用性上扩展了安斯库姆四元组。安斯库姆四元组包含四组各 11 个点的数据集，且其构建方法未知；而数据恐龙十二组则包含十三组更大的数据集，这些数据集是通过一种经过记录的、通用方法产生的，该方法迭代地将种子数据集变形至目标形状，同时尝试以指定的精度保持选定的汇总统计量\[6]\[1]\[8]。<sup>[6](https://sjsu.edu/faculty/gerstman/StatPrimer/anscombe1973.pdf)</sup><sup> • </sup><sup>[1](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)</sup><sup> • </sup><sup>[8](https://www.scientificamerican.com/article/what-this-graph-of-a-dinosaur-can-teach-us-about-doing-better-science/)</sup>与早期依赖特定统计量的做法不同，该方法不受限于需要保持不变的是哪种统计属性\[3]。<sup>[3](https://dl.acm.org/doi/10.1145/3025453.3025912)</sup>Chatterjee和Firat在 2007 年提出的遗传算法程序早于数据恐龙十二组的出现\[7]。<sup>[7](https://www.tandfonline.com/doi/abs/10.1198/000313007X220057)</sup>

## 实际意义、采用和软件

这组数据集传达的教训是：均值和相关性等汇总统计量虽然被广泛使用，但通常不足以讲述完整的故事；datasauRus 软件包的文档指出，该数据旨在教育学生，强调他们应该绘制自己的数据集，而不是仅仅依赖统计数据\[9]\[2]。<sup>[9](https://www.openintro.org/blog/article/summary-statistics-and-the-datasaurus-dozen/)</sup><sup> • </sup><sup>[2](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)</sup>

OpenIntro 为教学目的分发了该数据集，并致谢 Matejka 和 Fitzmaurice，同时链接了 Cairo 2016 年的原始帖子\[10]。<sup>[10](https://www.openintro.org/data/index.php?data=datasaurus)</sup>R 用户可以通过 datasauRus 软件包访问这些数据，该软件包提供这些数据，作为安斯库姆四元组（在 R 中可用 `anscombe`）的有趣替代；stevedata 软件包将其分发为 12 个长格式数据集；而 quartets 软件包则将其包含为 12 个在均值、方差和皮尔逊相关系数上相等，但在可视化时却截然不同的数据集\[11]\[12]\[13]。<sup>[11](https://jumpingrivers.github.io/datasauRus/index.html)</sup><sup> • </sup><sup>[12](https://search.r-project.org/CRAN/refmans/stevedata/html/Datasaurus.html)</sup><sup> • </sup><sup>[13](https://r-causal.github.io/quartets/reference/datasaurus_dozen.html)</sup>Autodesk 的作者也公开了数据集和 Python 源代码供下载\[5]。<sup>[5](https://www.research.autodesk.com/publications/same-stats-different-graphs/)</sup>

## 最新进展

2023年，Stefanie Molin 创建了 Data Morph，这是一个开源的 Python 包，它将 Autodesk 的技术推广到任意二维输入数据集，通过模拟退火来将其变形为选定的形状，同时保持汇总统计量在给定的小数位数上不变\[14]。<sup>[14](https://stefaniemolin.com/articles/data-science/introducing-data-morph/)</sup>Data Morph 内置了 6 种启动形状和 15 种目标形状，并且它不是保持点移动量静态不变，而是随着时间推移减少其最大移动量，从而产生了更平滑的视觉变形效果\[14]。<sup>[14](https://stefaniemolin.com/articles/data-science/introducing-data-morph/)</sup>它继承了原始方法的点聚集局限性：如果目标形状的某一区域没有起始点，那么可能无法在不改变汇总统计量的前提下将点移入该区域\[14]。<sup>[14](https://stefaniemolin.com/articles/data-science/introducing-data-morph/)</sup>

## References

1. [Justin Matejka and George Fitzmaurice (2017). Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics through Simulated Annealing. CHI 2017, full PDF.](https://damassets.autodesk.net/content/dam/autodesk/research/publications-assets/pdf/same-stats-different-graphs.pdf)
2. [The Datasaurus data package (datasauRus vignette), CRAN.](https://cran.r-project.org/web/packages/datasauRus/vignettes/Datasaurus.html)
3. [Same Stats, Different Graphs, Proceedings of the 2017 CHI Conference, ACM.](https://dl.acm.org/doi/10.1145/3025453.3025912)
4. [Anscombe's Quartet & Datasaurus Dozen: Why Plot Your Data, Useful Data Tips.](https://usefuldatatips.com/tips/visualization/anscombes-quartet)
5. [Same Stats, Different Graphs, Autodesk Research publication page.](https://www.research.autodesk.com/publications/same-stats-different-graphs/)
6. [F. J. Anscombe (1973). Graphs in Statistical Analysis. The American Statistician 27(1), 17–21.](https://sjsu.edu/faculty/gerstman/StatPrimer/anscombe1973.pdf)
7. [Chatterjee and Firat (2007). Generating Data with Identical Statistics but Dissimilar Graphics: A Follow up to the Anscombe Dataset. The American Statistician.](https://www.tandfonline.com/doi/abs/10.1198/000313007X220057)
8. [What This Graph of a Dinosaur Can Teach Us about Doing Better Science, Scientific American.](https://www.scientificamerican.com/article/what-this-graph-of-a-dinosaur-can-teach-us-about-doing-better-science/)
9. [Summary statistics and the Datasaurus Dozen, OpenIntro.](https://www.openintro.org/blog/article/summary-statistics-and-the-datasaurus-dozen/)
10. [Datasaurus data set, OpenIntro.](https://www.openintro.org/data/index.php?data=datasaurus)
11. [Datasets from the Datasaurus Dozen, datasauRus package site.](https://jumpingrivers.github.io/datasauRus/index.html)
12. [The Datasaurus Dozen, stevedata package reference, CRAN.](https://search.r-project.org/CRAN/refmans/stevedata/html/Datasaurus.html)
13. [Datasaurus Dozen Data, quartets R package.](https://r-causal.github.io/quartets/reference/datasaurus_dozen.html)
14. [Stefanie Molin (2023). Data Morph: Moving Beyond the Datasaurus Dozen.](https://stefaniemolin.com/articles/data-science/introducing-data-morph/)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/datasaurus-dozen

English original: https://www.edgepedia.org/datasaurus-dozen
