Skip to the page
Puzzles, Charts & Dilemmas

Charts

Anscombe's Quartet: One Fitted Line, Four Different Shapes

Published · Puzzles, Charts & Dilemmas

Folded answers print open where the browser allows it; if one prints closed, open it at https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/ first.

Where it lands

Anscombe's quartet, in the values as distributed with the R software, is four sets of 11 x–y points whose means, variances, correlation and least-squares line agree to at least two significant figures, yet each set plots as a different shape. Statistics outside that list already tell the sets apart: the median of y runs from 7.04 to 8.14 across the four.

Sections on this sheet (4)
  1. What the four sets share, and to how many figures
  2. Same data, redrawn
  3. Medians and ranks
  4. Where the 44 points come from

In 1973, the journal The American Statistician published “Graphs in Statistical Analysis,” a paper by Anscombe. The R software ships four small datasets under his name, citing that paper. A reader who sees only their summary table would conclude that the four sets are effectively one dataset printed four times, since every headline number matches to at least two significant figures. That conclusion asks the table about shape, which none of its numbers measures, so here is the inference in standard form.

In standard form:

  1. Premise 1:The four sets have the same mean and variance of x and of y, the same correlation, and the same least-squares line, to at least two significant figures.
  2. Premise 2:(unstated) Those numbers describe the shape of the data.
  3. Therefore, conclusion:The four sets are interchangeable: what is true of one is true of the others.
Illustration: four men stand in a row, heads bowed, each holding an identical straight rod at the same angle above a pile of pebbles laid out differently: a scatter, an arch, a row with one stray, and a column with one apart.

Four figures holding the same straight rod over four differently arranged piles of pebbles.

Illustration: Puzzles, Charts & Dilemmas. Generated schematic illustration — not a photograph or historical record. Reuse: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/), to the extent Puzzles, Charts & Dilemmas holds rights in it.

From the front, the summary table looks like one tidy knot tied four times over. Turn it over by plotting the points, and there are four different knots that happen to show the same face. Premise P2 is the assumption that the face tells you how the knot was tied, and the rest of this page tests that assumption one statistic at a time.

What the four sets share, and to how many figures

We recomputed every statistic below from the R data file, reading the file in two independent ways and computing each value twice, once with exact fractions and once in ordinary floating-point arithmetic. The two calculations agree on every value. Variances use the sample formula, which divides by n − 1 = 10, and the fitted line is the ordinary least-squares regression of y on x.

A few terms recur below. Least squares picks the straight line that makes the sum of the squared vertical gaps between the points and the line as small as possible. The correlation (Pearson's r) measures how closely the points follow a straight line, on a scale from −1 to 1, and R squared, its square, is the share of the variation in y that the fitted line accounts for.

Table of statistics for the four sets: x mean and variance equal exactly; y mean, slope and intercept agree to 3 significant figures; y variance, correlation and R squared to 2; medians and rank correlation differ. Table below.

Wide figure: scroll it sideways, or open it full size.

Which statistics the four sets share, to how many significant figures, and which already differ.

Diagram: Puzzles, Charts & Dilemmas, CC BY 4.0

Copy the full credit line

"Anscombe's quartet: which statistics agree, and to how many figures" by Puzzles, Charts & Dilemmas, https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here

StatisticSet 1Set 2Set 3Set 4Agree to
Mean of x9999exactly
Variance of x11111111exactly
Mean of y7.50097.50097.50007.50093 significant figures (7.50)
Variance of y4.12734.12764.12264.12322 significant figures (4.1)
Correlation (Pearson)0.81640.81620.81630.81652 significant figures (0.82)
Slope of fitted line0.50010.50000.49970.49993 significant figures (0.500)
Intercept of fitted line3.00013.00093.00253.00173 significant figures (3.00)
R squared0.66650.66620.66630.66672 significant figures (0.67)
Residual standard error1.23661.23721.23631.23573 significant figures (1.24)
Median of x9998differ
Median of y7.588.147.117.04differ
Rank correlation (Spearman)0.81820.69090.99090.5000differ
Largest residual−1.9213−1.90093.24111.8390differ
Different x values1111112differ

The x columns match exactly. Sets 1, 2 and 3 use the same eleven x values, the whole numbers 4 to 14 in the same order, while set 4's values (ten 8s and one 19) arrive at the same mean of 9 and variance of 11 by a completely different route.

The y columns do not match exactly. The variance of y runs from 4.1226 to 4.1276 and the correlation from 0.8162 to 0.8165, so those two statistics agree to two significant figures and no further, while the mean of y, the slope and the intercept agree to three. Rounding to two significant figures keeps the first two meaningful digits: 4.1273 and 4.1226 both become 4.1, but at three figures they separate into 4.13 and 4.12.

Even the typical size of the gaps between points and line, the residual standard error, comes out at 1.24 in every set to three figures. Calling these statistics identical would still claim more than the data file supports, so this page keeps the qualifier “to two significant figures” wherever it describes what the four sets share. The rows marked “differ” hold statistics on which the sets disagree, and they return after the plots as quick ways of telling the sets apart.

Try it first: From the summary table alone, which set would you guess is a straight line with some scatter around it?

Show it worked through

Worked through

Set 1. Nothing in the shared rows could tell you that, since those rows are the same for every set. The lower rows offer a hint: set 1 is the only set whose rank correlation (0.8182) sits close to its ordinary correlation (0.8164).

A residual is the vertical gap between a point's observed y and the y that its set's fitted line predicts. Plotting the residuals against x shows whatever is left over once each set's own line has been taken out.

Residual plots for the four sets: set 1 scattered with no pattern, set 2 an arch, set 3 a falling row with one point 3.24 above, set 4 a column at x = 8 and one point at x = 19 with residual zero. Values in the CSV.

Wide figure: scroll it sideways, or open it full size.

Each point's residual from its own set's line, plotted against x.

Diagram: Puzzles, Charts & Dilemmas, CC BY 4.0

Copy the full credit line

"Anscombe's quartet: residuals from each set's line" by Puzzles, Charts & Dilemmas, https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here

For set 1 the residuals fall above and below zero with no visible pattern. That is what a straight line with random scatter looks like. Set 2's residuals rise and fall in an arch. Its eleven points sit within 0.0024 of the parabola y = −5.9957 + 2.7808x − 0.1267x², so a curve describes that set far better than any line.

Set 3 shows ten residuals falling in a straight descending row, with one point, at x = 13, sitting 3.2411 above the line. In set 4, the ten points at x = 8 stack in a single column. The point at x = 19 has a residual of zero because its leverage, a measure of how strongly one point can pull the fitted line, is exactly 1, which means the least-squares line has to pass through it.

Same data, redrawn

The left chart shows what the summary table provides. The right chart draws the 44 points themselves, eleven per panel, with each panel carrying its own least-squares line.

As first charted

Summary panel for Anscombe's quartet: mean of x 9, variance of x 11, mean of y 7.50, variance of y 4.1, correlation 0.82, fitted line y = 3.00 + 0.500x, R squared 0.67, same in all four sets; no points drawn. Values in the CSV.

Wide figure: scroll it sideways, or open it full size.

What the summary table amounts to: shared numbers and one line, with the points left out.

Diagram: Puzzles, Charts & Dilemmas, CC BY 4.0

Copy the full credit line

"Anscombe's quartet: the shared summary and one line" by Puzzles, Charts & Dilemmas, https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here

Same numbers, redrawn

Four scatter plots of 11 points each, values as distributed with R: set 1 scattered around a rising line, set 2 a curve, set 3 a straight row with one high point, set 4 ten points at x = 8 and one at x = 19. Data in the CSV.

Wide figure: scroll it sideways, or open it full size.

The same 44 points plotted, eleven per panel, each with its own least-squares line.

Diagram: Puzzles, Charts & Dilemmas, CC BY 4.0

Copy the full credit line

"Anscombe's quartet: the 44 points in four panels" by Puzzles, Charts & Dilemmas, https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here

The left chart is not wrong. Every number on it is correct for all four sets. It answers the question “which straight line fits best?” and stays silent on whether a straight line is the right description at all.

Set 1 is the picture the table seems to promise: points scattered fairly evenly around a rising line. Set 2 traces a smooth curve that climbs and then falls. Set 3 is a tight straight row of ten points plus one point far above it.

Without that one point, set 3's other ten values lie within 0.0051 of the line y = 4.0056 + 0.3454x, which is noticeably flatter than the shared line, and their correlation rises from 0.8163 to 1.0000 to four decimal places. A single observation moved the slope from about 0.35 to about 0.50.

Set 4's slope rests on a single point. Ten of its points share x = 8, so the least-squares line must run through their average y of 7.0010 at that x, and also through the eleventh point at x = 19 and y = 12.5. Move that one point up or down by a single unit, and the slope changes by 0.0909.

Remove it and every x is 8. The ten points then fix only where the line crosses x = 8, at 7.0010. Any line through that point fits them equally well, and the slope is left undetermined.

Like the shrinking band on Minard's map, the shared line is a summary you have to take apart before you can read it. Here the parts are short enough to print in full, one row per observation.

Observationx, set 1y, set 1x, set 2y, set 2x, set 3y, set 3x, set 4y, set 4
1108.04109.14107.4686.58
286.9588.1486.7785.76
3137.58138.741312.7487.71
498.8198.7797.1188.84
5118.33119.26117.8188.47
6149.96148.1148.8487.04
767.2466.1366.0885.25
844.2643.145.391912.5
91210.84129.13128.1585.56
1074.8277.2676.4287.91
1155.6854.7455.7386.89

Medians and ranks

Two statistics outside the shared list already separate the four sets, and neither of them requires a plot.

Dot charts by set: mean of y 7.50 in all four but median 7.58, 8.14, 7.11, 7.04; Pearson correlation 0.82 in all four but Spearman 0.82, 0.69, 0.99, 0.50. Values in the table below and the CSV.

Wide figure: scroll it sideways, or open it full size.

Mean against median of y, and Pearson against Spearman correlation, for each set.

Diagram: Puzzles, Charts & Dilemmas, CC BY 4.0

Copy the full credit line

"Anscombe's quartet: medians and rank correlations" by Puzzles, Charts & Dilemmas, https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here

SetMean of yMedian of yCorrelation (Pearson)Rank correlation (Spearman)
17.50097.580.81640.8182
27.50098.140.81620.6909
37.50007.110.81630.9909
47.50097.040.81650.5000

The median is the middle value once the 11 y values are sorted. All four means of y round to 7.50, but the medians are 7.58, 8.14, 7.11 and 7.04. In set 2 the median sits above the mean because the low ends of the curve drag the mean downward, while in sets 3 and 4 a single high value (12.74 and 12.5) pulls the mean up past the middle.

Spearman's rank correlation replaces each value with its rank, from 1 for the smallest to 11 for the largest, and then computes the ordinary correlation of those ranks, with tied values sharing the average of their ranks. It measures whether y tends to rise when x rises, regardless of whether the rise follows a straight line.

Set 3 scores 0.9909 because ten of its points rise in strict order and only the high point at x = 13 is out of place. Set 4 scores 0.5000 because its ten tied x values all carry the same average rank, and set 2 scores 0.6909 because its curve turns downward on the right.

Questions to put to a summary table

Neither number replaces the plot. Each is one more question put to the same eleven rows, and for this quartet one more question per set was enough to show that the sets are not alike. The same questions apply to any table that reports a mean, a correlation and a fitted line:

  • Compare the mean with the median. A wide gap means a few values or a lopsided shape are pulling the mean (set 2: 7.5009 against 8.14).
  • Compare the ordinary correlation with the rank correlation. A wide gap means the relationship is not a straight line, or a few points are doing the work (set 4: 0.8165 against 0.5000).
  • Count the different x values. A line fitted through two x values is really a line between two clusters (set 4: 2 different values among 11).
  • Find the largest residual and ask whether one point sets the slope (set 3: 3.2411; set 4: leverage 1).

Where the 44 points come from

Every value on this page comes from the anscombe data file distributed with the R software. The file's documentation gives the source as E. R. Tufte's 1990 book The Visual Display of Quantitative Information, pages 13–14, and lists Anscombe's 1973 paper as its reference.

Source chain for the 44 points: R anscombe data file and documentation read in full; Tufte 1990 pp. 13-14, given as the source, not consulted; Anscombe 1973 and Matejka and Fitzmaurice 2017, bibliographic records only. Table below.

Wide figure: scroll it sideways, or open it full size.

Where the 44 points come from, and how much of each source was read.

Diagram: Puzzles, Charts & Dilemmas, CC BY 4.0

Copy the full credit line

"Anscombe's quartet: where the 44 points come from" by Puzzles, Charts & Dilemmas, https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).

Data: R Core Team, R datasets package documentation, anscombe; bibliographic records from Crossref

YearItemRole hereHow much we read
1973Anscombe, “Graphs in Statistical Analysis,” The American Statistician 27(1): 17–21Cited by the R documentation as its referenceBibliographic record only
1990Tufte, The Visual Display of Quantitative Information, pp. 13–14Given by the R documentation as the sourceNot consulted
2017Matejka and Fitzmaurice, “Same Stats, Different Graphs,” CHI 2017, pp. 1290–1294A later paper on the same themeBibliographic record only
—R datasets package: anscombe data fileAll 44 pointsRead in full
—R datasets package: anscombe documentationThe source and reference aboveRead in full

We take the values from R's data file because it is an official, versioned copy that anyone can download and check against the CSV on this page. If another copy of the quartet differs from it in a digit, this page follows R and does not try to settle which copy is older.

Neither Anscombe's paper nor Tufte's book was read for this page, so we do not describe how the four sets were made or what Anscombe wrote about them. No source we read explains how the datasets were constructed, and the tidiness noted above (a parabola within 0.0024, a line within 0.0051) is our own observation about the numbers.

The theme has a later life. In 2017, Justin Matejka and George Fitzmaurice published a paper titled “Same Stats, Different Graphs” in the proceedings of the CHI conference on human factors in computing systems, pages 1290–1294. We have only its bibliographic record, so we do not summarize its contents here.

Push back:

The strongest objection is that the quartet is a built example, and a built example proves little about real data. Set 2's eleven points sit within 0.0024 of a parabola, and ten of set 3's sit within 0.0051 of a line: numbers that tidy look made, not measured. On that view, the quartet does not show that summary statistics mislead. It shows that a short list of them, fixed in advance, cannot describe shape, and that the fix is to ask more of the table, not to distrust it.

  • Simpson's paradox: Another table with two honest summaries that tell opposite stories.
  • Knights and knaves: One number cannot stand for a whole table: 256 puzzles and how their answers are spread.

Sources

  1. R Core Team, R datasets package, object anscombe, data file src/library/datasets/data/anscombe.R (R source repository, trunk). https://svn.r-project.org/R/trunk/src/library/datasets/data/anscombe.R Read: full data file. Text license: GPL-2 | GPL-3.
  2. R Core Team, Anscombe's Quartet of ‘Identical’ Simple Linear Regressions (anscombe), R datasets package documentation, package version 4.6.0. https://stat.ethz.ch/R-manual/R-devel/library/datasets/html/anscombe.html Read: full documentation page.
  3. F. J. Anscombe, “Graphs in Statistical Analysis,” The American Statistician 27(1): 17–21 (1973). doi:10.1080/00031305.1973.10478966 https://doi.org/10.1080/00031305.1973.10478966 Read: bibliographic record only.
  4. Justin Matejka and George Fitzmaurice, “Same Stats, Different Graphs,” in Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems (ACM, 2017), pp. 1290–1294. doi:10.1145/3025453.3025912 https://doi.org/10.1145/3025453.3025912 Read: bibliographic record only.

Downloads: The 44 points (CSV) (file notes: source, version and license (JSON)) Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here · Statistics for each set (CSV) (file notes: source, version and license (JSON)) Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here · Fitted values and residuals (CSV) (file notes: source, version and license (JSON)) Data: R Core Team, R datasets package, anscombe, values as distributed with R (GPL-2 | GPL-3); original publication Anscombe (1973), The American Statistician 27(1):17-21, not consulted here; source given by the R documentation: Tufte (1990), pp. 13-14, not consulted here · Source chain (CSV) (file notes: source, version and license (JSON)) Data: R Core Team, R datasets package documentation, anscombe; bibliographic records from Crossref

Cite this page

Puzzles, Charts & Dilemmas. “Anscombe's Quartet: One Fitted Line, Four Different Shapes.” Puzzles, Charts & Dilemmas. Published 2026-10-31. https://puzzleschartsanddilemmas.com/charts/anscombes-quartet/. Accessed: add the date you read it.

Dates are given as year-month-day. 31 October 2026 is the latest substantive revision.