Lelifi·tools

Scatter Plot Calculator

Five paired points can reveal a positive or negative pattern. This calculator plots X and Y values, reports the Pearson correlation coefficient, and shows the direction and strength of a linear relationship. Use it to inspect a data set before fitting a line or making a claim about association. A value near 1 indicates a strong positive pattern, while a value near -1 indicates a strong negative pattern.

Enter matching numeric lists.

All calculations happen in your browser. No data is uploaded.

Paste paired X and Y values to draw a scatter plot and calculate Pearson correlation in your browser.

By the Lelifi editors ·

Key takeaways

X values increase left to right
A scatter plot keeps each paired observation visible as a separate dot.
negative direction
A falling cloud indicates negative linear association, while the line is only a visual guide.
On this page
  1. What a scatter plot shows
  2. How to enter data correctly
  3. Pearson correlation and direction
  4. Shape, spread, and unusual points
  5. Using the result responsibly
  6. A careful workflow for analysis
  7. Limits, privacy, and reproducible notes

What a scatter plot shows

A scatter plot places paired observations on a coordinate grid. One value from each pair goes on the horizontal x-axis, and its partner goes on the vertical y-axis. Each dot represents one observation, so the picture lets you inspect a relationship without hiding the individual values.

NIST describes a scatter plot as a plot of Y versus corresponding X values and says it can reveal association, linear or nonlinear shape, changing spread, and unusual observations. Penn State describes the explanatory variable on x and the response variable on y. The labels are part of the analysis, not decoration.

For example, the pairs (1,2), (2,4), (3,3), (4,5), and (5,6) create 5 points. The calculator reports mean X = 3 and mean Y = 4, then draws those points. The middle point is below the general upward pattern, which is useful information rather than a problem to erase.

PairXYReading
112first observation
224above the trend
333near the center
445above the trend
556last observation

How to enter data correctly

Enter one comma-separated list for X and a second comma-separated list for Y. The first X must belong with the first Y, the second X with the second Y, and so on. The widget ignores blank entries but requires the two cleaned lists to have the same length and at least 2 pairs.

Keep units and meaning consistent. If X is study time in hours, Y might be a test score in points. Do not sort one list without applying the same reorder to the other list. Sorting separately breaks the pairs and can invent a pattern that was not present in the data.

The sample input contains 5 pairs and produces r about 0.9000. This is a strong positive linear pattern for this small example, but it is not a universal rule about study time or scores. A larger sample and a careful study design would be needed for a broader conclusion.

CheckGood inputWhy it matters
Count5 X values, 5 Y valuesevery point needs a partner
Ordersame row orderpreserves observation identity
Unitshours and pointsmakes axes interpretable

Pearson correlation and direction

The widget calculates Pearson’s sample correlation r. It first finds each list’s mean, subtracts the mean from every value, multiplies paired deviations, and divides their sum by the product of the two deviation lengths. In notation, r = sum((xi - x mean)(yi - y mean)) / sqrt(sum((xi - x mean)^2) sum((yi - y mean)^2)).

Penn State states that r ranges from -1 to +1, has no units, and describes the direction and strength of a linear relationship. A positive value means larger X values tend to accompany larger Y values. A negative value means larger X values tend to accompany smaller Y values. A value near 0 means little linear pattern, though another shape may still exist.

For a second numeric example, pairs (1,10), (2,8), (3,6), and (4,4) have a perfect downward line, so r = -1. The sign tells direction and the magnitude tells linear strength. With a constant X or constant Y list, the denominator is zero and r is undefined rather than 0.

r valueLinear readingCaution
+1perfect positive linerare in measured data
+0.90strong positive patternsample size still matters
0no linear patterncurves can remain
-1perfect negative linedoes not establish cause

Shape, spread, and unusual points

Inspect the cloud before relying on a single number. A straight rising band suggests positive linear association; a falling band suggests negative association. A curved arc can have a modest Pearson r even when X and Y are closely related. A widening fan suggests that the spread of Y changes as X changes.

Look for clusters, gaps, and outliers. One unusual point can pull the correlation toward a stronger or weaker value. Compare the plot with and without a questionable observation only when you have a defensible reason to investigate it, such as a recording error. Do not delete a point just because it disagrees with a preferred story.

NIST emphasizes that association does not prove causality. A third factor may affect both variables, the direction may be reversed, or the pattern may be accidental. A scatter plot is an exploratory diagnostic. It does not replace a controlled experiment, a confidence interval, or subject-matter knowledge.

Visual cluePossible meaning
tight straight bandstrong linear association
wide cloudweak linear association
U-shaped curvenonlinear relationship
isolated dotpossible outlier or special case

Using the result responsibly

Use the x-axis for the variable that explains or predicts and the y-axis for the response when that role is clear. Add descriptive labels in a report, include the measurement units, and state how many pairs were used. A result such as n = 5 and r = 0.9000 is more informative than a bare r value.

This calculator uses the entered values as a sample and does not calculate a p-value, regression line, confidence interval, or causal effect. Those tasks require additional assumptions and context. If the data come from a survey, consider selection bias. If observations repeat the same person or device, consider dependence.

For the 5-point example, the upward pattern is easy to see and the calculated r is about 0.9000. For the 4-point descending example, the plot is a straight line and r is -1. Use these figures as checks on your own work, not as evidence for a claim about a population.

Report itemExample
sample sizen = 5 pairs
directionpositive
statisticr = 0.9000
limitationassociation is not causation

A careful workflow for analysis

Start by naming both variables and recording the unit for each. Then preserve the observation order while entering the two lists. Check the count, inspect the cloud, and only after that read Pearson r. This sequence keeps a numerical summary from replacing the evidence in the graph. NIST's Exploratory Data Analysis handbook, updated by the National Institute of Standards and Technology, presents scatter plots as a way to check relationships, changing variation, and outliers.

Next, ask whether the visible shape is straight. A rising straight band supports positive linear association, while a falling band supports negative association. A tight curve can be a strong relationship that Pearson r describes poorly. Groups may also overlap or separate, so color or separate plots may be needed in a full report. Keep the original data available so a reader can audit any decision.

StepQuestionOutput
1Are pairs matched?valid observations
2What shape is visible?linear or nonlinear description
3Are points unusual?outlier review
4What does r summarize?direction and linear strength

For the sample lists, n = 5 and r = 0.9000 to four decimal places. That value is a description of those five pairs. It is not a forecast for every future observation, and it does not supply a population claim without a sampling plan.

Limits, privacy, and reproducible notes

The widget draws the points in the browser and does not upload the lists. It also reports means and Pearson r, but it does not fit a regression line or compute a significance test. If you need either, state the model, sample design, missing-value rule, and confidence method in the report. A small r can reflect a curve, a small sample, or measurement noise.

Use a constant-list warning as a mathematical check. When every X value is equal or every Y value is equal, the corresponding deviation sum is zero and the denominator of r is zero. The correct result is undefined. A calculator should not silently turn that case into a zero correlation.

OpenStax Contemporary Mathematics, published in 2023, describes ordered pairs as the matching of explanatory and response data and explains that values near plus or minus 1 indicate a strong linear relationship. Together with the NIST guidance, that gives a sound reading rule: plot first, calculate second, and explain the study context.

ResultSafe statementUnsafe statement
r = 0.90strong positive linear pattern in this sampleX causes Y
r = 0.00little linear associationno relationship of any kind
r undefinedone list has no spreadcorrelation equals zero

Save the original lists beside the chart, include n, units, and collection dates, and write down any excluded records. Those notes make the analysis reproducible when a value is corrected or a new sample is added.

Frequently asked questions

How many pairs do I need for a scatter plot?

Use at least 2 paired observations. More than 5 points usually gives a clearer view of pattern and unusual values.

What does a positive scatter plot mean?

As X increases, Y tends to increase. The dots generally rise from left to right.

What does r = 0.9000 mean?

It indicates a strong positive linear pattern in the entered sample, not proof that one variable causes the other.

What does r = -1 mean?

It means the entered points lie exactly on a straight line with a negative slope.

Can r be greater than 1?

No. Pearson r is between -1 and +1. A value outside that range signals an input or calculation error.

What if my X and Y lists have 5 values each?

The calculator treats them as 5 paired points in their entered order.

Why is correlation undefined for a constant list?

If every X or every Y value is the same, its standard deviation is zero, so the correlation denominator is zero.

Does a curved pattern produce a high r?

Not necessarily. Pearson r measures linear association, so inspect the plot for curves.

Does correlation prove causation?

No. NIST warns that association does not establish cause and effect.

What is an outlier?

An outlier is an observation separated from the main cloud. Check it for data quality and context before removing it.

What is the sample example result?

For X = 1,2,3,4,5 and Y = 2,4,3,5,6, the calculator reports r about 0.9000.

Can I use text labels in the lists?

No. Enter numeric values separated by commas, with one X value matched to one Y value.

Spotted a wrong number or a broken result?

More Kids School tools

See all Kids School tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.