00:01
Okay, this problem gives us the formula for linear regression, basically, for a simple one.
00:08
I guess it's a formula nb, so n is the number of points that we're talking about plus sigma times of our x values times a.
00:20
And sigma x just means add up all the x values equals sigma y, so we're going to add up all the y values.
00:28
Our second equation is going to be sigma xb.
00:32
So again, adding up our x value.
00:34
So we've already done it once plus sigma x squared.
00:41
So that means we're going to square each x value and then add them up.
00:46
And then that's going to equal sigma of x times y.
00:51
So multiply each value and then add them all up.
00:54
Okay, so our values for this problem, the x values are simple.
00:58
So 0 1, 2, 3, 4, and 5.
01:03
So we have 6 points.
01:06
No, 0, 1, 2, 3, and 4.
01:08
So no 5.
01:09
5 points.
01:10
I was thinking 5 points, i wrote the 5.
01:12
We got a, for our y values, we have 2 .1, it's 2 .9, 4 .2, 5 .2, and 5 .8.
01:28
Okay, so we need some values here.
01:32
We need to add up our x values.
01:37
So adding up all of our x values, 4 plus 3 plus 2 plus 1 is just 10.
01:45
Adding up our y values.
01:50
So 5 .2 and 5 .8 is 11.
01:54
2 .1 and 2 .9 is 5 .9 is 5 .6 and 4 .2 is 20 .2.
02:04
Okay.
02:04
The sum of all of our x values squared.
02:07
Okay, that's going to be 16 plus 9 plus 4 plus 1.
02:13
16 plus 9 is 25 plus 4 is 29 and 1 is 30.
02:18
So this one's not looking out too bad.
02:22
And then the sum of all of our values multiplied, that's going to be a little bit more difficult to do in our heads.
02:27
So it took the time to go ahead and punch that into the calculator.
02:31
And that comes out to be 50 .1.
02:38
Okay, so i'm going to use these to create our equations on the next slide.
02:43
Okay, the number of values was first.
02:45
So we have 5b plus the sum of our x values was 10.
02:51
So that's 10a...