Eroxl's Notes
Ordinary Least Squares

Ordinary least squares is a special case of least squares in which given a linear relationship between a set of independent variable and a set of dependent variables the parameters of the linear regression are defined as:

The resulting estimated regression line is:

Example

1 2
2 3
3 2.5
4 4
5 4.5

Y axisX axis00-1-1112233445566224466Expression 1Expression 2Expression 3Expression 4Expression 5Expression 6

Data points are shown in and our calculated best-fit line is shown in