00:04
All right, having created the scatter plot for this life expectancy data and decided that the correlation is positive in the previous exercise, now we're tasked with finding a prediction equation.
00:18
Well, to find a prediction equation, we need to draw a or estimate a line of fit that would go through these points reasonably well.
00:28
And depending on how you decide to draw that line, you may get slightly different versions.
00:34
Of an equation.
00:36
So i'm going to say, let's say that we connect this point here to this point here.
00:41
To me, those look like they line up pretty darn good.
00:43
And so i'm going to say, let's draw our line, our prediction line, to be this one here.
00:50
And then let's use those two points.
00:52
Remember, this point is the year 1990 with a life expectancy of 75 .4.
00:58
And this point here is the year 1960, with a life expectancy of 69 .7, we're going to use those two points to generate a prediction equation.
01:08
So to get the prediction equation, that's going to be something in the y equals mx plus b form.
01:14
The first thing we need to do is find the m or the slope between these two points.
01:19
So the slope, again, would be y2 minus y1 over x2 minus x1, or the x difference in the y coordinates, and then the difference in the x coordinates.
01:30
Now, in this case, the y coordinates are life expectancy.
01:34
So i'm going to go to my two points, the red one and the green one here, and i'm going to subtract the life expectancy of the first point from the life expectancy of the second point...