Correlation Scatter Plot screenshot

Correlation Scatter Plot

A scatter plot with Pearson r, r squared and the two-tailed p printed beside the fitted line.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

What this page computes

Type the x and y values as comma-separated lists. The page draws the points, the least-squares line, and prints Pearson r, r² and the two-tailed p for r = 0 on n − 2 degrees of freedom in the chart title and note. The statistic and the picture come from the same sums, so they cannot disagree. The output pane holds the SVG source, which you can copy or download.

A high r does not mean the relationship is straight: the plot is there to show the shape the coefficient hides. The page runs no test of linearity and no rank alternative. Fewer than three pairs, or a constant variable, is refused with the reason.

The drawing and the arithmetic both run in the tab, so the same pairs always give the same r and the same picture.

The page draws a scatter of paired values with Pearson’s r printed on the chart and the test for r = 0 in the note, so the picture and the statistic agree instead of telling different stories. It needs at least three pairs, and a variable that never changes is refused because a correlation with a constant is undefined. The same numbers can be checked on the correlation page, which prints r, r², t and the two-tailed p as text.

Draw a scatter of paired values with r and its two-tailed test on the chart.

How to use it

Type the x values as a comma-separated list and the y values the same way; unequal lengths are refused with both counts shown. Each point is one pair, so the two lists are read position by position — the third x belongs with the third y.

What the printed r adds to the picture

The chart is the same least-squares view the scatter page draws, with the correlation statistic added rather than a fitted line emphasised. The p-value tests r = 0 with n − 2 degrees of freedom and is two-tailed; it answers whether the sample is large enough to distinguish the observed r from no association at all, not whether the association is strong. A strong curve with r near zero will show exactly that, which is the case a single number hides.

What to Expect

Best for

  • Seeing the shape and reading the correlation in one place

What this tool keeps

  • Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.

Frequently asked questions

How do I pair the two lists?

Position by position: the first x goes with the first y, the second with the second. The lists must be the same length, and an unequal pair is refused with both counts named.

Why is r near zero on a curved scatter?

Pearson’s r measures a straight-line association. A strong curve can have r near zero, and the chart is what shows the difference between no association and a non-linear one.

Is my data uploaded?

No. The points, r and the SVG are computed in this page, so nothing is sent anywhere and a reload discards the chart.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.