00:02
Hello everyone.
00:03
This is c7 of computer exercises on chapter 3.
00:08
So the first thing we want to do is to estimate the model that mat 10 is equal to beta 0 plus beta 1, log expenditure plus beta 2 lunch program plus you.
00:22
Here, mat 10 is the percentage of students passing the meap mats 10.
00:30
Log expenditure is a log of expenditure and expenditure.
00:33
Is for per students in terms of dollars and lunch program is the percentage of students in school lunch program.
00:44
So first we estimate the model that math -san is equal to constant plus beta 1, log expansion plus beta 2.
00:54
This is the code regress math -sen on log -expandition launch program.
01:01
So the constant beta 0 had is minus 20 .36.
01:12
Beta 1 -1 -6.
01:13
Which is the coefficient on log expenditure is 6 .23 and beta 2 had which is the coefficient on launch program is negative point 305 and r squared from this regression is point 18 are the signs of the slope coefficients what you expect it so let's see beta 1 hat which is the coefficient of log expenditure is positive, which means that spending more per student will increase the percentage of students passing the test.
02:02
This is something we would expect.
02:05
Beta 2 hat has a negative side.
02:11
So this is the coefficient of lunch program, which means as the percentage of students in school lunch program increases, the percentage of students passing the math test decreases.
02:25
That's, well, that could be because it could mean that in some schools where the percentage of students in the last program, it might be that they are spending less.
02:41
There could be some other factors, but this is a little bit weird, maybe i expected.
02:50
Okay, the second question is, what do you make with the intercept? you estimated in part one, in particular, does it make sense to set the two explanations? three variables to zero.
03:01
So beta zero hat in the first part we find is minus 20 .36, which means unlocks expenditure and launch program is equal to zero, then the percentage of students passing the math test is going to be negative 20, which of course doesn't make sense because it should be in between zero or 100.
03:26
But so let's see if it makes sense to set explanatory variables to equal to 0.
03:35
And when we actually look at the data, we see that the minimum that the log expenditure gets is 8.
03:42
Something.
03:44
So it doesn't make sense to set this to be equal to 0.
03:51
And also in the data, we see the minimum that the launch expenditure, launch program percentage is 1 .4.
04:06
So it could make sense to set the large program to equal to zero that like nobody is in school lunch program...