Datasaurus dozen explained

The Datasaurus dozen comprises thirteen data sets that have nearly identical simple descriptive statistics to two decimal places, yet have very different distributions and appear very different when graphed.[1] It was inspired by the smaller Anscombe's quartet that was created in 1973.

Data

The following table contains summary statistics for all thirteen data sets.

PropertyValueAccuracy
Number of elements142exact
Mean of x54.26to 2 decimal places
Sample variance of x: s16.76to 2 decimal places
Mean of y47.83to 2 decimal places
Sample variance of y: s26.93to 2 decimal places
Correlation between x and y−0.06to 3 decimal places
Linear regression liney = 53 − 0.1xto 0 and 1 decimal places, respectively
Coefficient of determination of the linear regression:

R2

0.004to 3 decimal places
The thirteen data sets were labeled as the following:

Similar to the Anscombe's quartet, the Datasaurus dozen was designed to further illustrate the importance of looking at a set of data graphically before starting to analyze according to a particular type of relationship, and the inadequacy of basic statistic properties for describing realistic data sets.[2] [3] [4] [5] [6]

Creation

The first data set, in the shape of a Tyrannosaurus, that inspired the rest of the "datasaurus" data set was constructed in 2016 by Alberto Cairo.[7] [8] It was proposed by Maarten Lambrechts that this data set also be called "Anscombosaurus".

This data set was then accompanied by twelve other data sets that were created by Justin Matejka and George Fitzmaurice at Autodesk. Unlike the Anscombe's quartet, where it is not known how the data set was generated,[9] the authors used simulated annealing to make these data sets. They made small, random, and biased changes to each point towards the desired shape. Each shape took 200,000 iterations of perturbations to complete.

The pseudocode for this algorithm is as follows:current_ds ← initial_dsfor x iterations, do: test_ds ← perturb(current_ds, temp) if similar_enough(test_ds, initial_ds): current_ds ← test_ds

function perturb(ds, temp): loop: test ← move_random_points(ds) if fit(test) > fit(ds) or temp > random: return test

where

See also

External links

Notes and References

  1. Book: Matejka . Justin . Fitzmaurice . George . Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics through Simulated Annealing . 2017-05-02 . Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems . https://doi.org/10.1145/3025453.3025912 . CHI '17 . New York, NY, USA . Association for Computing Machinery . 1290–1294 . 10.1145/3025453.3025912 . 978-1-4503-4655-9 . https://research.autodesk.com/app/uploads/2023/03/same-stats-different-graphs.pdf_rec2hRjLLGgM7Cn2T.pdf . 2017-05-02.
  2. Book: Elert, Glenn . 2021 . Linear Regression - Practice . http://physics.info/linear-regression/practice.shtml#4 . The Physics Hypertextbook.
  3. Book: Janert, Philipp K. . Data Analysis with Open Source Tools . . 2010 . 978-0-596-80235-6 . 65–66.
  4. Book: Chatterjee . Samprit . Regression Analysis by Example . Hadi . Ali S. . John Wiley and Sons . 2006 . 0-471-74696-7 . 91.
  5. Book: Saville . David J. . Statistical Methods: The geometric approach . Wood . Graham R. . . 1991 . 0-387-97517-9 . 418.
  6. Book: Tufte, Edward R. . Edward Tufte

    . The Visual Display of Quantitative Information . Graphics Press . 2001 . 0-9613921-4-2 . 2nd . Cheshire, CT . Edward Tufte.

  7. Web site: Cairo . Alberto . Download the Datasaurus: Never trust summary statistics alone; always visualize your data . 2024-02-01.
  8. Web site: Murtagh . Jack . 2024-02-01 . What This Graph of a Dinosaur Can Teach Us about Doing Better Science . 2024-03-08 . Scientific American . en.
  9. Chatterjee . Sangit . Firat . Aykut . 2007 . Generating Data with Identical Statistics but Dissimilar Graphics: A follow up to the Anscombe dataset . . 61 . 3 . 248–254 . 10.1198/000313007X220057 . 27643902 . 121163371.