Documentation

    Hosted installer: at launch

    Anscombe's quartet

    Back to the chart gallery

    In 1973 F. J. Anscombe published four datasets with almost identical summaries and sharply different shapes. Plotting each set shows what a mean, variance or fitted equation can conceal.

    A summary cannot show you the shape

    Almost the same summary

    The published observations are rounded, so the fitted values differ slightly. The means and x variance agree at the precision below; the small differences in y variance and correlation remain visible. Each rounded fitted relationship is y = 3.00 + 0.500x. The annotation repeats that shared rounded fit in each panel; it is not an extra set of observations.

    StatisticSet ISet IISet IIISet IV
    Mean x9.009.009.009.00
    Sample variance x11.011.011.011.0
    Mean y7.507.507.507.50
    Sample variance y4.134.134.124.12
    Correlation r0.8160.8160.8160.817

    The same chart in each style

    Source

    Rich Markdown
    ---
    title: "Anscombe's quartet"
    styles: [scientific]
    ---
    
    ```chart
    {
      "annotations": [
        {
          "at": {
            "x": 8,
            "y": 13
          },
          "kind": "text",
          "text": "y = 3.00 + 0.500x"
        }
      ],
      "axes": {
        "x": {
          "label": "x"
        },
        "y": {
          "label": "y"
        }
      },
      "data": {
        "csv": "data.csv"
      },
      "encoding": {
        "facet": "set",
        "x": "x",
        "y": "y"
      },
      "title": "A summary cannot show you the shape",
      "type": "scatter"
    }
    ```
    
    

    Data and credits

    Complete report and provenance · Rich Markdown source · CSV observations.

    Was this page useful? Suggest an edit