Advertisement

Scatter plot data calculator

Enter matching x and y lists to prepare the plot data and inspect its summary. This engine returns coordinates and statistics; it does not draw a scatter chart.

Calculator

Observation count
4.00000000
Distinct plotted locations
3.00000000
Additional observations at repeated locations
1.00000000
Mean x
2.25000000
Mean y
2.75000000
Smallest x
1.00000000
Largest x
4.00000000
Smallest y
1.00000000
Largest y
4.00000000
x range
3.00000000
y range
3.00000000
Pearson linear correlation
-1.00000000
Point table (x, y)
(1, 4); (2, 3); (2, 3); (4, 1)

Advertisement

How this calculator works

A scatter plot places each observed pair at its x and y coordinates. Pairing must be preserved: sorting one list on its own changes the observations. The point table can retain input order or sort complete pairs by x. Repeated locations represent multiple observations and remain in the statistics, even though their marks would overlap in a drawing. Ranges help choose axis limits. Correlation measures linear alignment and is omitted when either axis has no variation. This tool does not fit a regression line or render the chart.

Formula

x range=max(x)-min(x); y range=max(y)-min(y); means=sum(values)/n. Pearson r=sum((x-xMean)(y-yMean))/sqrt(sum((x-xMean)^2) sum((y-yMean)^2)).

Worked example

The pairs (1,4), (2,3), (2,3), (4,1) contain four observations at three distinct locations. Their means are x=2.25 and y=2.75. Each axis spans 3 units, and the perfect decreasing alignment gives correlation -1.

Advertisement

Frequently asked questions

Why do repeated pairs count more than once?

They are separate observations, even when a scatter plot places their marks at the same location.

Can I use a constant x value?

Yes. Those points form a vertical stack. The x range is zero and linear correlation is undefined, so that output is omitted.

Does correlation describe the whole pattern?

No. A curved relationship can have zero linear correlation. A rendered scatter plot is needed to assess shape, clusters and outliers.

Can this page draw the chart?

The current engine supports numeric and text outputs. Use the returned pairs in a plotting application for a visual scatter plot.

Sources

Advertisement