Skip to content

Anscombe's Quartet: Same Fit, a Different Dataset Each Time

Anscombe's quartet is four small datasets that share the same means, the same regression line, and the same correlation, yet look completely different when you plot them. Frank Anscombe published them in 1973 to show that a regression summary can mislead. As Gerard Dallal's course notes put it, they share "not only the same correlation coefficient, but also the same value for any other summary statistic that is usually calculated."

Each dataset has 11 points. The course notes report one set of summary statistics for all four: the mean of x is 9.0 and the mean of y is 7.5. The fitted line is y = 3 + 0.5x, the sum of squared x-deviations is 110.0, the regression sum of squares is 27.5, the residual sum of squares is 13.75 on 9 degrees of freedom, the standard error of the slope is 0.118, and r = 0.816 (R² = 0.667). Report those numbers for any of the four and nobody could tell which one you meant.

Now draw them. The first looks like the picture in your head when you read a regression equation: a scatter around a line. The second is a perfect smooth curve, so a straight line is the wrong model. The third is a straight line except for one outlier, at x = 13. Leave that outlier out and the other ten points fit a line with slope 0.345 and intercept 4.006, so the one stray point is what tilts the fitted line up to 0.5. The fourth is the most troublesome: ten of the eleven points have x = 8, and one lone point sits at x = 19. A straight line may be fine there, but the line is decided entirely by that one observation.

Try it by hand. Take the fourth set. The ten points at x = 8 have a mean y of 7.001, so on their own they say nothing about slope: every one of them sits at the same x. The lone point is (19, 12.50). The line through (8, 7.001) and (19, 12.50) has slope (12.50 − 7.001)/(19 − 8) = 0.4999, which rounds to the 0.5 in the table, and the intercept is 7.001 − 0.5 × 8 = 3.0. Remove that one point and x no longer varies at all, so there is no slope to estimate. The whole regression line is one observation's doing. (I also recomputed all four sets from the two-decimal values printed in the course notes. The slopes come out at 0.500 and the intercepts between 3.000 and 3.002. The residual sums of squares are close to 13.75 and r comes out between 0.816 and 0.817. They are close to the published common values, not identical, because the printed data are rounded.)

The trap: thinking that equal summary statistics mean equal datasets, or equally suitable models. They mean the numbers are equal, nothing more. The pictures are where the differences live.

Prof Rod's rule: plot the data before you trust the line, and ask which single points the line depends on.

Anscombe, "Graphs in Statistical Analysis," The American Statistician 27, 17–21, 1973; summary statistics and data as reproduced in Dallal, Frank Anscombe's Regression Examples, Duke University