The lesson
Summary statistics tell you what they summarize—not what your data look like.
Francis Anscombe constructed four small datasets with nearly identical means, variances, correlations and least-squares regression lines. A table of results makes them look interchangeable. A graph immediately shows that they are not.
What is nearly identical?
| Summary | Each dataset | What it cannot tell you |
|---|---|---|
| Mean of x | 9.0 | Whether x values have useful spread |
| Mean of y | 7.5 | Shape, clusters or unusual observations |
| Correlation | about 0.816 | Whether the relationship is linear |
| Regression | y ≈ 3 + 0.5x | Whether one point determines the line |
| R² | about 0.667 | Whether residuals support the model |
What the plots reveal
- Dataset I: a roughly linear pattern where a straight line is a plausible summary.
- Dataset II: a clear curve; the linear slope hides systematic structure in the residuals.
- Dataset III: one vertical outlier strongly affects the fit.
- Dataset IV: ten x values are identical and one high-leverage observation creates the apparent relationship.
A defensible regression workflow
- Start from the scientific question and measurement process.
- Plot every observation with meaningful axes and units.
- Choose a model whose form corresponds to the question—not merely the best-looking fit.
- Inspect residual patterns, influential observations and leverage.
- Report the fitted parameters with uncertainty, not only correlation or R².
- Explain exclusions and sensitivity analyses; never remove a point only because it changes P.
What Plotwright checks
Plotwright's executable published-example suite runs dataset I through the actual linear-regression and Pearson-correlation engine. The release gate expects slope 0.500, intercept 3.00, R² 0.667, r 0.816 and two-sided P approximately 0.00217 within explicit tolerances. That validates the numerical route; the graph remains essential for judging whether the route answers the scientific question.
Sources and reproducibility
- Anscombe, F. J. (1973), “Graphs in Statistical Analysis”—the original article in The American Statistician.
- R documentation: Anscombe's quartet—the four machine-readable datasets and references.
- Plotwright statistical validation—published expected values, numerical tolerances and evidence limits.