We have $(x_1, y_1) = (0, 4)$, $(x_2, y_2) = (1, 6)$, and $(x_3, y_3) = (2, 10)$.
The least squares line is given by $y = mx + c$, where $m$ is the slope and $c$ is the $y$-intercept.
We have the formulas:
$m = \frac{n\sum_{i=1}^n x_i y_i - \sum_{i=1}^n x_i
Show more…