Anscombe's Quartet: Visualization and Statistical Illusions
The questions in this article can also be addressedStatistics and Truth: How to use the accident (Statistics and Truth)、Figures don't lie, but the liars make them up: talk about statistical fraud from Benford's particular law.How the concept of a relatively close read together is developed in different contexts.
Introduction: Deceptiveness of values
In data science and statistics, beginners are often caught in the wrong direction:Overdependence on numerical indicators (Metrics) ignores the distribution patterns of data.
When data are available, averages, differences and related coefficients are calculated immediately, and even the regression model is applied directly. The view that earlier was popular in the statistical community:"The numerical calculations are accurate and the charts are not very useful."(Numerical calculations are exact, but graphs are rough)。
To counter this, in 1973, the statisticians Francis Anscombe built four special data sets, known as the "Facebooks"Anscombe Quartet's Quartet)I'm sorry. These four sets of data are almost identical in statistical characteristics, but vary considerably in graphic presentation.
It states:Before statistical extrapolations are made, visualized exploratory data analysis (EDA) is a necessary step to test the validity of the extrapolation.
Anscom Quartet Data Set
Look at these four sets of data first. They're four pairs. $(x, y)$ Composition of variables:
| Observations | $x_1$ | $y_1$ | $x_2$ | $y_2$ | $x_3$ | $y_3$ | $x_4$ | $y_4$ |
|---|---|---|---|---|---|---|---|---|
| 1 | 10.0 | 8.04 | 10.0 | 9.14 | 10.0 | 7.46 | 8.0 | 6.58 |
| 2 | 8.0 | 6.95 | 8.0 | 8.14 | 8.0 | 6.77 | 8.0 | 5.76 |
| 3 | 13.0 | 7.58 | 13.0 | 8.74 | 13.0 | 12.74 | 8.0 | 7.71 |
| 4 | 9.0 | 8.81 | 9.0 | 8.77 | 9.0 | 7.11 | 8.0 | 8.84 |
| 5 | 11.0 | 8.33 | 11.0 | 9.26 | 11.0 | 7.81 | 8.0 | 8.47 |
| 6 | 14.0 | 9.96 | 14.0 | 8.10 | 14.0 | 8.84 | 8.0 | 7.04 |
| 7 | 6.0 | 7.24 | 6.0 | 6.13 | 6.0 | 6.08 | 8.0 | 5.25 |
| 8 | 4.0 | 4.26 | 4.0 | 3.10 | 4.0 | 5.39 | 19.0 | 12.50 |
| 9 | 12.0 | 10.84 | 12.0 | 9.13 | 12.0 | 8.15 | 8.0 | 5.56 |
| 10 | 7.0 | 4.82 | 7.0 | 7.26 | 7.0 | 6.42 | 8.0 | 7.91 |
| 11 | 5.0 | 5.68 | 5.0 | 4.74 | 5.0 | 5.73 | 8.0 | 6.89 |
The figures in the table are not per se visible, but when statistics are calculated, a discrepancy emerges.
Statistical trap: perfect disguise
If no maps are drawn, the results will be highly consistent, relying only on the usual descriptive statistical volumes and linear regression models to analyse the four data sets.
1. Descriptive statistics
The average and the variance are calculated for each of the four sets of data, as follows (to 2-3 decimal places):
- Mean (Mean):
- $E(x) = 9.00$ (Four groups are identical)
- $E(y) = 7.50$ (Four groups are identical)
- Sample variance (Variance):
- $Var(x) = 11.00$ (Four groups are identical)
- $Var(y) \approx 4.12$ (Four groups are essentially the same)
- Related coefficient (Correlation):
- $Corr(x, y) \approx 0.816$ (Four groups are identical)
2. Return analysis
If you're assuming $y$ and $x$ Linear relationships exist and the lowest hyperbolic method (OLS) is used to develop linear regression models $y = \beta_0 + \beta_1 x + \epsilon$The parameters of the four models will also be very consistent:
- Intersection (%2)$\beta_0$): About 3.00
- Slope (%2)$\beta_1$): About 0.50
- Proposed Preference (Present)$R^2$): About 0.67
Conclusions: If we look only at the above figures, we are likely to think that the four sets of data reflect the same pattern:$x$ and $y$ There are significant positive and relevant linear relationships and the extent to which models are ready to be developed is good.
However, this conclusion is not valid.
Visualizing the revelation: Charts don't lie
The differences between these four sets of data are clearly apparent when they are drawn into a scattered map.
Look at these four images one by one:
- Dataset I (top left): Data points are roughly evenly distributed on both sides of the regression line, and random error appears to be subject to normal distribution. For this group of data, linear regression models are appropriate.
- Dataset II (top right): It's a clear one.Non-linear relationships(Looks like a reverse parabolic line. There is a strong relationship of certainty between the data, but the curve is combined with linear models (lines) that ignore the structure between variables.$R^2=0.67$ It's of limited significance here.
- Dataset III (bottom left): This is a...Strong Impact Point (Outlier) The typical case. The vast majority of data points exhibit near-perfect linear relationships (the correlation coefficient is almost 1) but an off-group value changes the slope of the entire regression line and reduces the correlation coefficient. Without visualization, it is difficult to identify this anomaly and to decide whether it should be removed or analysed separately.
- Dataset IV (bottom right): This is a...High Leverage Point The extreme case.$x$ All but one point of the same value (%2)$x=8$I'm not sure. Linear relationships depend on this extreme observation. If we remove this point,$x$ and $y$ There's no lineage between them. $x$ is the constant. The results of the model are determined almost by a single data point and are therefore very vulnerable.
In-depth exploration: Why is visualization important for statistical inferences?
Anscom Quartet shows the risk of being ignored in statistical inferences.
1. Validation of model assumptions (Assumptions Checking)
Classic statistical models (e.g. linear regression) are usually based on a series of strict assumptions, such as:
- Linearity: Linear relationships between variables and cause variables.
- Homoscedastability: The error item is constant.
- Normality (Normality): The error items are subject to normal distribution.
- Independence: Samples are independent of each other.
The numerical indicators themselves cannot judge whether these assumptions are valid or not.I'm sorry. For example, in Datat II, values show correlation, but the graphics immediately negated"Linear"Assumptions. ♪ With the help ofResidual Plt We can only diagnose the applicability of the model when visualization is done.
2. Identification of discrete values and strong effects Points
As shown in Dataet III and IV, individual ioning values are sufficient to change the statistical characteristics of the entire model. Averages and squares are sensitive to discrete values (no. Before calculating and extrapolating, byBoxline (Boxplot) Or the identification and treatment of anomalies in the sprawl map is an essential step in increasing the inference of robustness.
3. "Data Form"Better than"Data indicators"
In addition to focusing on central trends (average values), modern data analysis needs to observe the distribution patterns of data. Skeweness and Kurtosis, while describing distribution, is still not as good asHistogram (Histogram) or Estimates of nuclear density (KDE) Intuitive.
Concluding remarks
The caution of Francis Anskum, which was expressed 50 years ago, remains valid in today ' s big data age. The more common automation machine learning (AutoML) and black box models are, the more easily people lose sight of the raw data.
Do not rely on statistics without charts. No, I'm not.
I'm pressing it. "Run Model" button, draw a picture. This is both a good working habit and a first confirmation that the data really support subsequent inferences.
Appendix: Python Code Achieved
If you want to reproduce the four sets of data and charts in person, you can use the following Python code:
import matplotlib.pyplot as plt import numpy as npAnscombe's Quartet Data
x = [10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5] y1 = [8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68] y2 = [9.14, 8.14, 8.74, 8.77, 9.26, 8.10, 6.13, 3.10, 9.13, 7.26, 4.74] y3 = [7.46, 6.77, 12.74, 7.11, 7.81, 8.84, 6.08, 5.39, 8.15, 6.42, 5.73] x4 = [8, 8, 8, 8, 8, 8, 8, 19, 8, 8, 8] y4 = [6.58, 5.76, 7.71, 8.84, 8.47, 7.04, 5.25, 12.50, 5.56, 7.91, 6.89]
datasets = [(x, y1), (x, y2), (x, y3), (x4, y4)]
fig, axes = plt.subplots(2, 2, figsize=(10, 8), sharex=True, sharey=True) axes = axes.flatten()
for i, (xi, yi) in enumerate(datasets): ax = axes[i] # 绘制散点 ax.scatter(xi, yi, color='orange', edgecolor='k', s=60) # 绘制回归线 m, b = np.polyfit(xi, yi, 1) ax.plot(np.array([4, 19]), m * np.array([4, 19]) + b, color='blue', alpha=0.6)
ax.set_title(f'Dataset {i+1}') ax.set_xlim(3, 20) ax.set_ylim(3, 13)
plt.tight_layout() plt.show()
- Title: Anscombe's Quartet: Visualization and Statistical Illusions
- Author: Hyacehila
- Created at : 2026-01-14 04:00:00
- Link: https://hyacehila.github.io//blog/2026/01/14/anscombes-quartet/
- License: This work is licensed under CC BY-NC-SA 4.0.