00:01
Given the points 03 -1220 and 4 negative 1, which were taken from the graph on the textbook corresponding to exercise 52, we will use the formulas obtaining exercise 49 to find and draw the regression line.
00:28
This line is given by y equals m times x plus b, where m and b are given by these two equations we got to calculate first n because we use it to calculate v in this equation and the points we were given 0 3 1 2 to 0 and 4 negative 1 we identify there x 1 is 0 y 1 is 2 x 3 x2 is 2 y 2 is 2 x 3 is 2 y 3 is 2 2 y 3 is 0 is 0, here is y3, x4 is 4 and y4 is negative 1.
01:21
So with this information, we can now apply the formulas to calculate all the coefficients here.
01:28
We start with the sum of the x of i.
01:34
In this case, x1 plus x2 plus x3 plus x4, and that's equal to 0 plus 1 plus 2 plus 2 plus 2 plus 4.
01:46
Equal 7.
01:53
Now we calculate the sum of the y -soup i from 1 to n and that's equal to y1, y2 plus y2 plus y3 plus y4, and that is 3 plus 2 plus 0 plus negative 1, and that's equal to 4.
02:21
Now we calculate the sum of the product of the coordinates, that is the sum of x sub i, times y -so -by and that's equal to x1 times y1 that is 0 times 3 plus x2 times y2 is 1 times 2 plus x3 3 times y 3 that is 2 times 0 plus 4 times negative 1 which is x4 times y 4 and it's equal to 0 plus 2 plus 0 minus 4 that is negative 2.
03:15
Now we calculate the sum of the squares of the x of i and that is equal to 0 square which is x1 square plus x2 square that is 1 square after that we have 2 square plus 4 square that is 0 plus 1 plus 4 square that is 0 plus 1 plus 4 plus 16 and that is 21 now we have all the coefficients we need to calculate m and b so now m is equal to and we see here that we have n times sum of the product of the coordinates that is and it is say here but we can see easily that n equals 4 you can put it in here n equals 4 because we have 4 4 points.
04:19
So it's four times the product and the sum of the product of the coordinates that is negative two.
04:29
Then we have minus the product of the sum of the x and the y's...