00:01
Okay, so question is we need to find best fit line using lee square method and the model is y is equals to beta 0 plus beta 1 times x and the points are given to us.
00:12
So let's assume a solution is in matrix form is x beta equals to y.
00:20
Here, your x is matrix representing coefficient of beta not and coefficient of beta 1.
00:26
So since beta not coefficient is 1, so it will be 1.
00:31
And here coefficient is x, so that is 0.
00:34
So 1 .0.
00:35
Next will be 1 1, 1, 1, 2 and 1, 3.
00:40
So this is our x and y is the output that is represented by this value.
00:45
So that is 1, 1, 2.
00:49
Okay.
00:50
So now we have all the data and here beta is nothing but beta not and beta.
00:58
1.
00:59
Okay.
01:00
So now we can substitute that in our matrix equation.
01:03
So we have 1 .11, 1 2 ,13 times beta.
01:10
So we'll write it as beta only.
01:12
Here we have 1 .1 .2.
01:16
Okay.
01:17
So now to solve this, we need to have a square matrix.
01:20
So we'll multiply by x transpose, a pre -multiplying.
01:24
So x transpose will be 1 -0 -11...