Scatter Plot Maker
Paste your (x, y) data and instantly build a scatter plot, complete with the correlation coefficient and a least-squares regression line.
Input
(x, y) data (one pair per line, separated by comma or space)
Pairs read: 7
Result
Correlation r
0.9984
Strong positive correlation
Regression line
y = 1.9964 x + 0.0143
R-squared (R²)
0.9968
Data points
7 pairs
Full results
| Item | Value |
|---|---|
| Data points | 7 pairs |
| Correlation r | 0.9984 |
| Strength of correlation | Strong positive correlation |
| R-squared (R²) | 0.9968 |
| Regression line | y = 1.9964 x + 0.0143 |
| Slope a | 1.9964 |
| Intercept b | 0.0143 |
| Mean of x | 4 |
| Mean of y | 8 |
| Range of x | 1 to 7 |
| Range of y | 2.1 to 14.3 |
How it works
- Enter one "x, y" pair per line. Values can be separated by a comma, space or tab, and any line that does not contain two numbers is ignored automatically.
- The correlation coefficient r measures the strength of the linear relationship between the two variables on a scale of -1 to 1. Values near 1 indicate a strong upward trend, values near -1 a strong downward trend, and values near 0 little or no relationship.
- The orange dashed line is the least-squares regression line. From the slope a and intercept b in the equation y = a x + b you can estimate the approximate y for a given x.
- R-squared (R²) indicates how well the regression line explains the data; the closer it is to 1, the better the fit.
- Correlation does not imply causation. Spurious correlations and outliers can distort the result, so always interpret the numbers together with the shape of the chart.
- All calculations run entirely in your browser (on your device); the data you enter is never sent anywhere.
Related calculators
Flash Shooting Distance
HobbyCalculate the ideal shooting distance to your subject from a flash unit's guide number, aperture and ISO.
Open calculator →Flash Aperture Calculator
HobbyCalculate the correct f-stop for flash photography from guide number, distance, and ISO. Instantly see the nearest standard f-stop and the correct distance for each aperture.
Open calculator →Lens Focal Length Calculator
HobbyEstimate the lens focal length (mm) and 35mm equivalent you need from your subject distance, real size, and sensor width.
Open calculator →Camera Angle of View Calculator
HobbyEnter a lens focal length and image sensor size to instantly calculate how wide a scene the camera captures: the horizontal, vertical, and diagonal angle of view. Includes presets for full frame, APS-C, Micro Four Thirds and more (plus custom sensor sizes) and shows the 35mm equivalent focal length too.
Open calculator →