Linear regression for (1, 2), (2, 4), (3, 5), (4, 4), (5, 6)
Fit the least-squares line and report the correlation coefficient r.
Solution
- Means x̄ = 3, ȳ = 4.2
- Sums of squares Sxx = 10, Sxy = 8
- Slope b = Sxy / Sxx = 0.8
- Intercept a = ȳ − b·x̄ = 1.8
- Correlation r = 0.852803, r² = 0.727273
- Regression line y = 0.8x + 1.8
Try a similar problem yourself
Use the Linear Regression Calculator to solve a similar problem with your own values.
Open the solver