00:01
All right, so we're looking at income, adjusted gross income in the thousands.
00:06
So this column is, and then the reasonable amount of itemized deductions.
00:10
And this is based on a linear model.
00:13
Y hat is 4 .68 plus 0 .16x.
00:20
All right, so there's our model.
00:23
And this, that's what we have.
00:29
And we want to use this regression coefficient here.
00:34
Or excuse me, this regression equation to make a 95 % confidence interval for the mean amount of total atomized deductions and the 95 % prediction interval.
00:46
Let's give the formulas for those.
00:47
So the confidence interval, and this is for 95 % of course, is going to be the predicted amount, y hat, plus minus t with the alpha.
01:04
Well, the alpha is 0 .05 over 2.
01:09
And degrees of freedom is going to be given is n minus 1.
01:13
Or n minus 2, excuse me.
01:14
So it's going to be, there are 7 here.
01:15
1, 2, 3, 4, 5, 6, 7.
01:18
So it's going to be 5 because degrees of freedom for regression is given as n minus 2.
01:24
All right.
01:25
Then we have the t value.
01:26
And then we'd multiply it by this large square root term.
01:30
So this is for the confidence interval.
01:32
It's the mean square error times 1 over n.
01:36
And that's going to be 7 plus x minus x bar squared divided by the sum of the x is all the x is minus the means quantity squared that's the confidence interval the prediction interval is very similar you take your predicted value plus minus the t scores the same t value and we're going to see some familiar faces here it's the mean square error just like before and we're going to have the one over n just like before so one over seven plus the same x value minus the mean squared divided by the sum of the x minus x bar values squared but we have an extra one plus and this is because we're we're looking for one person an individual this is for an individual for the prediction interval and conference interval this is for the mean, like if you're looking for the average person.
02:53
Ok, so let's go ahead and answer these questions.
02:57
So for part a, we want to make the confidence interval.
03:01
For part b, you want to make the prediction interval.
03:04
So let's see.
03:05
The t value is easy enough to find.
03:07
Let me just show you everything.
03:08
And we'll go through it.
03:15
There we go.
03:18
All right, here we go.
03:19
This is all the stuff we need to calculate this by hand, which is a good exercise to go through.
03:24
So we need the mean.
03:26
See the x bar, we need the mean.
03:27
So we take the average of the x values, the income is the x values, these deductions are the y values, and then the y hat values.
03:36
So let's see, we're going to go ahead and we get the predicted value.
03:45
And what we want to know is, we should say what we're predicting.
03:49
We want to predict the itemized deduction for someone who makes $52 ,500.
03:57
And then using this equation here for the y hat, value, we get $13 ,080.
04:08
All right, so that's the predictive value.
04:10
This is the y hat value.
04:11
So our interval is going to be 13 ,000, but it's 13 .08.
04:17
That's because you have to account for the, it's already given in thousands.
04:22
So 13 .08.
04:23
Plus the t score, which is, i recognize that is, it's not there, but i'll get it back up in just a moment.
04:35
Let's go ahead and go through it.
04:37
So the t score we'll get in a second.
04:39
The mean square error, that's kind of the the pinks that always gave me trouble.
04:42
But the mean square error is equal to the sum of the y values minus the y hat values squared divided by n minus 2.
05:06
So that's how we get that.
05:12
Okay.
05:13
And so the way we do that is we get a column of our predicted values...