Scatter Plot Generator
Plot bivariate data, compute the line of best fit (LSRL), and find the Pearson correlation coefficient — all with a downloadable graph.
Enter Data Points
Enter x,y pairs and click Generate Plot
Regression Statistics
Regression Equation
How to Use This Tool
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.
Generate Plot — Click the button to render the scatter diagram. The LSRL (line of best fit) appears when enabled.
Read the statistics — Check Pearson r, r², slope, and intercept below the chart. Download the PNG for your report.
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)
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
3, 7 or
3 7 both work. You can also paste two columns
directly from a spreadsheet.