00:01
Finding the regression line is essentially a least squares problem.
00:05
And we know that to solve that, we need to form the matrix x of the coefficients, where we have as many rows as the points we have.
00:18
So we have four rows, and the first column is all ones.
00:22
And on the second column, we have the axes of the given points.
00:27
So we have two, three, five, and six.
00:30
And then for the constant term, little y, we have again four rows, as many as the points, and we put the y's of the given points.
00:44
So 3 -2 -1 -0.
00:47
So since we need to compute the normal equation, we start by computing x transpose x and x transpose y...