Ordinary least squares is a special case of least squares in which given a linear relationship between a set of independent variable
The resulting estimated regression line is:
| 1 | 2 |
| 2 | 3 |
| 3 | 2.5 |
| 4 | 4 |
| 5 | 4.5 |
Data points are shown in
and our calculated best-fit line is shown in