Any solution of the following equation is a valid response function:
XTXb=XTY
The general solution is
b=3100+t−5−211,t∈R.
Let t=0, the developed response function is
Y^=3+10X1
b.
The intersection is
{X2=5+21X1,Y=3+10X1.
Prob-2
a.
β0: Mean of Y if X1=X2=0
β1: The change in the mean of Y if entrance test score is one unit higher holding all other variables fixed
β2: The change in the mean of Y if the student had indicated a major field of concentration at the time of application holding all other variables fixed
b.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Call: lm(formula = Y ~ X1 + X2, data = d)
Residuals: Min 1Q Median 3Q Max -2.70304 -0.35574 0.02541 0.45747 1.25037
Residual standard error: 0.6241 on 117 degrees of freedom Multiple R-squared: 0.07749, Adjusted R-squared: 0.06172 F-statistic: 4.914 on 2 and 117 DF, p-value: 0.008928
c.
From the table above we have p−value of b2 is 0.4 > 0.01, so it can be dropped.
H0:β2=0, Ha:β2=0.
Decision rule: reject if p-value is smaller than 0.01
Conclusion: cannot reject. No enough evidence that β2 is not 0 in the model.
d.
Seems no linear relationship between X1X2 and the residuals. I think it would not be helpful to include an interaction term.
Residual standard error: 0.6124 on 116 degrees of freedom Multiple R-squared: 0.1194, Adjusted R-squared: 0.09664 F-statistic: 5.244 on 3 and 116 DF, p-value: 0.001982
b.
H0:β3=0
Ha:β3=0
Decision rule: reject if p-value is smaller than 0.05
Conclusion: reject. The interaction term cannot be dropped.
The nature of the interaction effect: the effect of X1 depends on X2.