00:01
So in this problem, we're given the following dataset.
00:03
And what we want to first do is come up with a scatter diagram for this data.
00:06
So i did this in excel and i found the following plot.
00:09
And what is the relationship that we see in between the two variables? so on the horizontal axis, we have the x and on the vertical we have the y.
00:17
And what i see is as the x increases, the y decreases.
00:23
So that would be the relationship between these two.
00:26
Another way of saying that is by calling it by its official, name a negative linear relationship and what this linear part tells us is that it's changing at a constant rate so if we were to draw a line of best fit through our data points we would get something that looks like this i assume that this is a straight line and you would see that as x increases so at 5 x would be over here and at 10 we over here the change here is the same the change here is the same as the same as the change from 10 to 15 if my drawing was accurate.
01:09
So that is the basic idea of a linear relationship and because we see that as our dependent variable our x increases our y decreases, we call it a negative linear relationship.
01:21
Now we also answered part c by doing this and by drawing in this line of best fit.
01:28
And now we have to come up with an estimated regression equation.
01:32
Now, the regression equation in general is always y, or a linear regression equation is always y equals beta sub 0 plus beta sub 1 times x.
01:41
And what beta sub 1 represents is our slope, and beta sub 0 represents our error.
01:52
Now, if you remember back in algebra 1, we had something that looked like y equals mx plus b.
01:58
M was the slope in b was our y intercept.
02:01
It's basically the same idea.
02:03
Our slope represents our model.
02:05
And what we mean by model is something to represent our data that is kind of accurate.
02:12
And by error, we don't mean something that is wrong.
02:14
It just means something that our model can't capture.
02:17
So now we have to come up with beta sub 1 and beta sub 0.
02:21
And the formula for beta sub 1 is equal to the sum of each individual data point minus the mean for our x's times each individual y value minus the y mean over the sum of squared x residual so what that means is the sum the difference between each individual x value and the x mean sorry this isn't the residual but this is our this is our beta sub one formula and now for our beta sub 0 that is simply going to be equal to our mean of y minus the beta sub 1 that we found times our mean for x.
03:06
So let's first find a beta sub 1, beta sub 1.
03:12
And to do this we have to first come up with an x bar.
03:14
So let's go back to our dataset and our x bar.
03:17
Let me do this in a different color...