Scatter Plot Calculator

Scatter Plot Calculator

Plot paired data to see how two variables move together, with an optional best-fit line, the correlation coefficient and a quadrant count around the means.

ŷ = a + bx · r = Sxy ÷ √(Sxx Syy)

Enter matching lists of X and Y values

What Is a Scatter Plot?

A scatter plot shows paired measurements as dots, with one variable along the horizontal axis and the other up the vertical axis. Each dot is one person, day or item measured on both.

The cloud of dots reveals the relationship: whether it rises or falls, how tightly the dots follow a line, whether it curves, and which points sit apart from the rest. No single number captures all of that.

The dashed crosshairs mark the two means. Dots in the top-right and bottom-left quarters are above or below average on both variables and pull the correlation up. Dots in the other two quarters pull it down.

Scatter Plot Formulas

As given in OpenStax Introductory Statistics, sections 12.2 to 12.4. See Sources.

1. Sums of squares and products

Sxx = Σ(x − x̄)² · Syy = Σ(y − ȳ)² · Sxy = Σ(x − x̄)(y − ȳ)

2. Correlation coefficient

r = Sxy ÷ √(Sxx × Syy)

3. Best-fit (least-squares) line

b = Sxy ÷ Sxx · a = ȳ − b x̄

The line always passes through the point (x̄, ȳ), where the crosshairs meet.

Worked Example: Temperature and Ice Cream Sales

Given:
A kiosk records the midday temperature (°C) and ice cream sales (£) on 10 days. Temperatures: 14, 16, 11, 15, 18, 22, 19, 25, 23, 20. Sales: 215, 325, 185, 332, 406, 522, 412, 614, 544, 421.
Step 1:
Means and quadrants:
x̄ = 18.3 °C · ȳ = £397.6 · 9 of 10 days in the agreeing quadrants
Step 2:
Correlation:
r = 5,366.2 ÷ √(172.1 × 172,678.4) = 0.9844
Step 3:
Best-fit line:
b = 31.18 · a = 397.6 − 31.18 × 18.3 = -173
Result:
r = 0.984, about £31 more per extra degree

The dots hug a rising line. 9 of 10 days sit in an agreeing quadrant; the one exception (18 °C, £406) is a whisker from both means. Temperature explains about 97% of the day-to-day variation in sales. The line shouldn't be stretched to a 35 °C heatwave, which is outside the data.

Scatter Plot Patterns

Common scatter plot patterns and what they suggest
PatternTypical rWhat it suggests
Tight rising band0.9 to 1Strong positive linear link
Loose rising cloud0.4 to 0.7Moderate positive link with lots of scatter
Falling band−0.7 to −1Strong negative link
Round, shapeless cloudNear 0No linear link
Curve (U shape or arch)Near 0A real but non-linear link that r misses
Two separate clustersMisleadingA hidden grouping, such as two sites or two years
One point far awayDistortedAn influential point that can make or break r

Common Scatter Plot Mistakes

  • Reading causation into the pattern. Ice cream sales and drownings rise together because both follow hot weather, not because one causes the other.
  • Joining the dots. Lines between points imply an order, as in a time series. A scatter plot's points have no sequence.
  • Putting the variables the wrong way round. The explanatory variable (the one you think drives the other) goes on the x-axis.
  • Extrapolating the line. A trend fitted between 11 °C and 25 °C says nothing reliable about 35 °C.

Scatter Plot FAQs

Which variable goes on which axis?

The explanatory (independent) variable on x, the response (dependent) variable on y.

What do the dashed lines show?

The mean of x and the mean of y. They split the plot into the four quadrants used in the quadrant count.

What does the quadrant count tell me?

How many points support a positive link (top-right, bottom-left) versus a negative one. It’s a rough, outlier-resistant check on the sign of r.

How strong is a correlation of 0.6?

Moderate. The labels used here are rough guides: 0.9+ very strong, 0.7+ strong, 0.4+ moderate, 0.2+ weak.

What if the pattern is curved?

r understates a curved relationship. Try quadratic or exponential regression instead.

Is the correlation significant?

Use the Pearson correlation calculator for the p-value and confidence interval.

Can I plot more than two variables?

Not here. Colour or size the dots by a third variable in a spreadsheet, or draw a matrix of scatter plots.

How many points do I need?

At least 2 to plot, but you need about 10 or more before a pattern is worth describing.

Sources

Related Tools