00:01
And this problem, we're given a bunch of infant mortality data from 1980 to 2005.
00:08
So we're told to basically set 1980 as year zero.
00:13
So i said here we zero, then the next was 90, 85, then 90, then 95, then 2000, then 2005.
00:22
So every five years we have some data.
00:24
And since we want a quadratic fit, well, we want it both.
00:28
They ask us for you find that least squares lines with data and also least squares quadratic so both both a line and a quadratic function they asked this for so i made a column of x squared values and again watch problem video for problem 24 to get details of why i did this so i put these in and i got and i squared each one of them obviously you can see.
00:59
And then here's the y data.
01:01
So the infant mortality rate.
01:04
And then to get the quadratic fit, i just did this.
01:13
You use the linear estimate function on x and x squared.
01:21
So to get y as functions of both linear combination of x and x squared.
01:28
And we see the this for a, this for b, and this for c, and this expression here.
01:34
And then for the linear one, i just did a linear estimate on x, but on y and x, where you see there's no x squared here because i didn't want x squared in my fit.
01:48
So here we can see here, there's two things.
01:51
Now, what we can do, if we plot the data, so we plot the data, and it's just, same date over here and here's our quadratic fit a second order polynomial and we can see here the coefficients are the same as what we got here although this is some extra significant digits that obviously i could have you know increased the number of significant digits here let's actually just do that and see what uh let's see here number uh plus yeah so there we go you can see that you know they basically exactly match up.
02:33
So what we have then, we can see this quadratic fit goes, that's pretty good, because we can see that this data kind of tapers off.
02:41
And in fact, we'd expect that, you know, there's going to be some infant mortality no matter what we do.
02:47
So no matter how good medical practices we have, there's going to be some.
02:52
And so we can see that it's dropped, but it may have, it may have leveled out, and there might be not a whole lot of ways we can get it below this value here...