least-squares regression line
y-hat = 1.3 + 0.9x
r = 0.9, r² = 0.81: about 81% of the variation in y is explained by the linear relationship with x.
| x | y | predicted | residual |
|---|---|---|---|
| 1 | 2 | 2.2 | -0.2 |
| 2 | 3 | 3.1 | -0.1 |
| 3 | 5 | 4 | 1 |
| 4 | 4 | 4.9 | -0.9 |
| 5 | 6 | 5.8 | 0.2 |
Steps
Linear regression calculator (r, r-squared, line) · free from StatsLearn