Scatter Plot Generator

Plot bivariate data, compute the line of best fit (LSRL), and find the Pearson correlation coefficient — all with a downloadable graph.

FBISE CBSE IGCSE O Levels A Levels IB

Enter Data Points

One pair per row: x, y — or paste two columns from a spreadsheet.
Load example:

Enter x,y pairs and click Generate Plot

How to Use This Tool

1

Enter your data — Type or paste x,y pairs, one per line (e.g. 3, 7). Add axis labels and a title for a polished chart.

2

Generate Plot — Click the button to render the scatter diagram. The LSRL (line of best fit) appears when enabled.

3

Read the statistics — Check Pearson r, r², slope, and intercept below the chart. Download the PNG for your report.

💡 Tip: Use the example datasets to see how strong vs weak correlations look, then replace with your own data.

Correlation & Regression

Pearson Correlation (r)

r measures the strength and direction of the linear relationship between two variables. It ranges from −1 to +1. Values close to +1 indicate strong positive correlation; close to −1 indicate strong negative correlation; near 0 means little or no linear relationship.

Line of Best Fit (LSRL)

ŷ = b₀ + b₁x

The Least Squares Regression Line minimizes the sum of squared vertical distances from data points to the line. b₁ is the slope and b₀ is the y-intercept.

Coefficient of Determination (r²)

r² tells you what proportion of the variation in y is explained by x. For example, r² = 0.85 means 85% of the variation in y is explained by the linear relationship with x.

Curriculum Notes

  • IGCSE / O Levels: Drawing scatter diagrams and estimating lines of best fit by eye
  • A Levels / IB: Calculating Pearson r, LSRL, and interpreting r²
  • FBISE / CBSE: Scatter diagrams and rank correlation (Spearman)

Frequently Asked Questions

Enter one x,y pair per line. You can use a comma, space, or tab as the separator — e.g. 3, 7 or 3 7 both work. You can also paste two columns directly from a spreadsheet.
No. All calculations and chart rendering happen in your browser using JavaScript. Your data is never uploaded to any server and the tool works offline once loaded.
r ranges from −1 to +1. Values close to +1 indicate a strong positive relationship; close to −1 indicate strong negative; near 0 means little or no linear relationship. Use |r| ≥ 0.7 as a rough threshold for "strong" correlation.
Yes — after generating the plot, click the Download PNG button below the chart to save a high-quality image for use in your report or assignment.
You need at least 2 data points for the tool to run, but correlation statistics are much more meaningful with 8–10 or more points. Very small samples can produce misleadingly high r values.