Skip to content

Anscombe's quartet

Four datasets share their means, variances, correlation and regression line. Are they the same?

Mystery 1~20 minintro Anscombe's quartet

The story

In 1973 the statistician Frank Anscombe published four tiny datasets, eleven points each, to make a point his colleagues kept forgetting. A junior analyst has been handed them as four "sites" and told to report the relationship between x and y at each. Their draft says the same thing four times: the means agree, the correlation is about 0.82 everywhere, and the fitted line is the same.

Everything in the draft is correct, and the conclusion is still wrong. Your job is to find out why, using only what CodeSplash shows you: the summaries, the result cards and the assumption checks that come with every fit. By the end you should be able to say what is different about each site, and which of the four the straight line describes honestly.

Data: Anscombe's quartet · R-datasets. datasets::anscombe. Anscombe, F. J. (1973). Graphs in statistical analysis. The American Statistician, 27, 17–21.

Stage 1 · analyze · ~6 min

The numbers agree

Start where the draft did. Describe all eight columns and compare the four x columns with each other, and the four y columns with each other.

How close are the four sites' means and standard deviations?

  1. Open Analyze and find Descriptive statistics.
  2. Choose anscombe (sample) and add all eight columns, x1 to x4 and y1 to y4, to Variables.
  3. Press Run.
  4. Compare the means and standard deviations. How different are the four y columns?

Stage 2 · analyze · ~9 min

Correlate each site

Run the correlation for each site in turn and look at the result card each time, not only at r. The card draws the points it computed r from.

What is r at each site, and what do the four scatter plots show?

  1. Open Correlation test (Pearson / Spearman / Kendall) on anscombe (sample).
  2. Set X to x1 and Y to y1, and press Run.
  3. Now x2 and y2. Run, then look at the chart on the result card.
  4. Now x3 and y3.
  5. Now x4 and y4.
  6. Four runs, four nearly identical values of r. Describe what each scatter plot shows.A correlation summarizes one thing, how well a straight line fits. It cannot tell you whether a straight line was the right shape.

Stage 3 · analyze · ~6 min

Let the checks speak

Fit the straight line at site 2 and site 3 and read the assumption checks that come with every regression. They catch what r cannot: a curve, and a single point pulling the line.

Which assumption fails at site 2, and which at site 3?

  1. Open Linear regression (OLS) on anscombe (sample) with y2 as the outcome and x2 as the predictor, and press Run.
  2. Read the assumption checks and the residual plots. What do they say about a straight line here?
  3. Change the outcome to y3 and the predictor to x3, and press Run.
  4. Read the influence checks. Which point is pulling the line, and how far?One point can tilt a fitted line. The checks name it so you can decide whether it belongs.
Hints
  • Every number in the draft is right. The question is what the numbers leave out.
  • Look at the chart on each correlation result card, not only at r.
  • Fit the regression at sites 2 and 3 and read the assumption checks; they name the curve and the influential point.

explainer

What the numbers missed

Explain the mystery: what all four sites share, what each one looks like, which site the straight line describes honestly, and what the analyst should have done before writing the draft.

  1. What the four sites share
  2. What each site looks like
  3. Which line is honest
  4. The lesson
Rubric
CriterionPoints
States the shared summaries: means, variances, correlation and fitted line.1
Describes each site correctly (linear; curved; one outlier; one high-leverage point).3
Names the assumption checks that flag sites 2 and 3.2
Concludes that summaries need a picture and diagnostics before interpretation.1

Model answer

Show the model answer

What they share. At every site the mean of x is 9 and its variance 11, the mean of y is 7.50 and its variance about 4.12, the correlation is 0.816 and the least-squares line is y = 3.00 + 0.500x, with R² of 0.67. The summaries in the draft are correct.

What each looks like. Site 1 is an ordinary noisy straight-line relationship, the one the summary describes. Site 2 is a smooth curve: y rises and then falls, so a straight line misses its shape and the residuals bend. Site 3 lies almost perfectly on a straight line except for one point far above it, which pulls the line up and makes the correlation smaller than it would be without it. Site 4 has the same x for ten points; a single point at x = 19 decides the whole slope.

Which line is honest. Only at site 1. At site 2 the relationship is not linear; at site 3 the line is bent by one point; at site 4 the line rests on one observation.

The lesson. Look at the data and at the assumption checks before interpreting any summary. In CodeSplash the scatter plot on the correlation card and the residual and influence checks on the regression card show all of this without extra work.