Skip to content

Anscombe and the Datasaurus: why you always plot

Very different pictures can share the same means, spreads and correlation. See it for yourself, then learn what to look for in any scatterplot.

Introductory ~8 min8 steps

What runs in CodeSplash

You will be able to

  • Explain why a correlation cannot stand in for a scatterplot
  • Name four things to look for in any scatterplot
  • Decide what to do when a plot contradicts a summary number

Read first

01

Four datasets, one summary

Read

In 1973 Francis Anscombe built four small datasets with nearly identical means, variances, correlation and fitted line. One is a tidy cloud. One is a smooth curve. One is a perfect line with a single outlier. One is a vertical stack plus one distant point that creates the whole correlation.

A summary table cannot tell them apart. Only a picture can.

02

Predict the morph

Predict

Predict first

You're about to watch a cloud of points slowly rearrange itself into a dinosaur, then a star, then parallel lines. What happens to the correlation?

r stays nearly the same throughoutr changes a lot as the shape changesr is undefined for most shapes
Reveal

It barely moves. The Datasaurus family keeps means, standard deviations and correlation almost fixed while the picture changes completely.

03

Watch it happen

Explore

CExplorable · Same statistics, different pictures

How can datasets with identical summaries look nothing alike?

As the cloud morphs into this shape, what happens to Pearson's r?

How sure?

Target

1.00

Mean, SD and correlation are held fixed along the way.

Mean of xSD of yPearson rSpearman ρ
54.3026.90−0.060−0.029

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

Keep your eye on the summary numbers while the points move. Then pause on the shape that looks least like "correlation r" should look. Would you report that number to a colleague without showing them the plot?

04

Four things to look for

Read

Every time you see a scatterplot, check four things:

  1. Form: straight, curved, or clustered?
  2. Direction: up, down, or no trend?
  3. Strength: how tightly do points follow the trend, and does spread change along it?
  4. Exceptions: outliers, gaps, or separate groups that a single number would hide.

Separate groups deserve special care. They often mean that a variable you haven't plotted is doing the work.

05

When picture and number disagree

Read

Believe the picture, then find out why. A curve suggests a rank coefficient or a transformation. An outlier calls for checking that row before anything else. Separate groups call for coloring by group or controlling for it.

Scatter with marginalsHow do two variables relate, and how is each distributed?
View data
bill_length_mmflipper_length_mmspecies
37.200203Adelie
44.300188Adelie
45.600193Adelie
39.700196Adelie
41.600192Adelie
36.400187Adelie
35.700191Adelie
37.800204Adelie
35.700183Adelie
40.100187Adelie
42.800196Adelie
39.100194Adelie
37.700185Adelie
32.100183Adelie
39.600182Adelie
40.900190Adelie
42.400193Adelie
35.300190Adelie
36.600193Adelie
43.400190Adelie
38.400182Adelie
43.300201Adelie
42.500204Adelie
38.200198Adelie
42.900200Adelie
46.200189Adelie
35.200197Adelie
43.100190Adelie
36189Adelie
38.900194Adelie
36.700196Adelie
34.900184Adelie
37.900190Adelie
36.300175Adelie
35.400191Adelie
39.300204Adelie
38185Adelie
40.900201Adelie
35.200179Adelie
39.200185Adelie
39185Adelie
35.500186Adelie
36.400191Adelie
45.900194Adelie
35.600191Adelie
37.500187Adelie
43206Adelie
40.400193Adelie
39.600180Adelie
41.100196Adelie
35.900179Adelie
33.700173Adelie
38.700189Adelie
36.800184Adelie
31.900183Adelie
38.100191Adelie
37.100184Adelie
38.900189Adelie
36.500192Adelie
39.100197Adelie

First 60 of 333 rows.

Marginal histograms show each variable's own shape next to the relationship, which makes skew and outliers easier to spot. On a correlation result card, look for the scatterplot and the outlier count before you quote r.

06

Check your understanding

Checkpoint

Check yourself

A report states r = 0.82 with no plot. In the data, all points but one form a vertical stack, and one point sits far to the right. What is the honest reading?

Show the answer

Answer: b

The arithmetic is right, but it describes one point's leverage. This is Anscombe's fourth dataset.

Check yourself

A scatterplot shows two clearly separated clouds, one for each site, and r across the whole dataset is high. What should you do first?

Show the answer

Answer: c

A high overall r can come entirely from the gap between the clouds. Within each site, the relationship may be weak or even reversed.

Check yourself

Put these steps for a new pair of variables in the order that protects you best.

  1. 1Report the coefficient with its interval and the plot
  2. 2Plot the two variables against each other
  3. 3Check form, exceptions and groups
  4. 4Choose a coefficient that fits what you saw

Show the answer

The order:

  1. Plot the two variables against each other
  2. Check form, exceptions and groups
  3. Choose a coefficient that fits what you saw
  4. Report the coefficient with its interval and the plot

Plot first, because the plot decides which summary is honest. Then report the number and the picture together.

07

Plot your own pair

In the app

Open Charts or the chart builder under Data → Explore, then pick two numeric columns from your project. Next, run the correlation and compare what the number says with what you saw.

08

Recap

Recap
  • Very different datasets can share the same summary statistics, including r.
  • Check form, direction, strength and exceptions in every scatterplot.
  • Report the plot together with the number. When they disagree, believe the plot and investigate.

Concepts in this lesson