Exercise 4 - Simple Linear Regression
Exercise 4 - Simple Linear Regression
1. Estimate the relationship between GPA and ACT using OLS; that is, obtain the intercept and
slope estimates in the equation
------------------------------------------------------------------------------
gpa | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
act | .1021978 .035692 2.86 0.029 .0148626 .189533
_cons | .5681319 .9284214 0.61 0.563 -1.703633 2.839897
------------------------------------------------------------------------------
2. Compute the fitted values and residuals for each observation, and verify that the residuals
(approximately) sum to zero.
4. How much of the variation in GPA for these eight students is explained by ACT? Explain
------------------------------------------------------------------------------
gpa | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
act | .1021978 .035692 2.86 0.029 .0148626 .189533
_cons | .5681319 .9284214 0.61 0.563 -1.703633 2.839897
------------------------------------------------------------------------------