Correlation Playground

Click the grid to drop a point, drag it to move it. The correlation r and the best-fit line recompute on every pixel. Then load the four classic datasets below: identical averages, identical spread, identical r, identical line — and four pictures that look nothing alike.

set I · n 11 · r 0.816

Scatter · drag anything

click add · drag move · alt+click remove

Keyboard: arrow keys move a crosshair, hold shift for bigger steps. Enter drops a point at the crosshair. Press N or P to step through the existing points; with a point selected the arrow keys move that point. Delete removes it. Escape deselects.

hover a point to inspect it

Load a dataset · the four look different, the numbers do not

the lesson

A plain rising trend with ordinary scatter. This is what people picture when they hear “r = 0.82” — and it is only one of the four shapes that produce it.

Same summary, four shapes · every number computed in your browser

setmean xmean y sd xsd yr fitwhat it looks like