UNDERSTAND YOUR RESULT
How to use this tool
- Enter one x, y pair per line.
- Use at least two pairs with different x-values.
- Calculate the fitted line, slope, intercept, correlation and R².
How it works
Slope = Σ((x−x̄)(y−ȳ))/Σ(x−x̄)². Intercept = ȳ−slope×x̄. The fit minimizes squared vertical residuals.
Points (1,2), (2,4), (3,6) give y = 2x, intercept 0 and R² = 1.
Common mistake to avoid
A high R² does not establish causation or guarantee reliable predictions outside the data range.
Limits and assumptions
Requires at least two pairs and varying x-values. Correlation does not prove causation; a straight line may not describe your data.
Common questions
What does the slope mean?
It is the fitted change in y for a one-unit increase in x. Its units are y-units per x-unit.
Why can correlation or R² be undefined?
If all y-values are equal, their variance is zero and the usual correlation denominator is zero.