Summer MGT 6203 FINAL EXAM
PART2 – CODING
Week 4
Use the abalone.csv dataset to answer questions from 1 to 3:
1. Using the function lm, create a linear regression that regresses “Rings” onto “Diameter” and
“Height”
...
Summer MGT 6203 FINAL EXAM
PART2 – CODING
Week 4
Use the abalone.csv dataset to answer questions from 1 to 3:
1. Using the function lm, create a linear regression that regresses “Rings” onto “Diameter” and
“Height” (i.e., “Rings” is the response variable and “Diameter” ,“Height” are the
independent variables). Which one of the following statements is FALSE?
a. Diameter is significant at a 5% Confidence Interval
b. R-Squared is 0.35
c. The intercept is 11.71
d. One unit of change in height causes the number of rings to increase by 19.81 on
average keeping "Height" constant
Explanation: The intercept is 2.3939 (Lesson 1, Video 7, Slide 4)2. Using the function lm, create a linear regression that regresses “Rings” onto all the features
except “Type”. From this new model, which three features have the highest VIF score?
a. LongetstShell, WholeWeight, Diameter
b. Height, Diameter, ShellWeight
c. ShellWeight, ShuckedWeight, VisceraWeight
d. VisceraWeight, Height, LongestShell
Explanation: See code below (Lesson 1 / Video 8/ Slides 12 - 15)
3. Create two separate datasets from abalone.csv. The first data set will contain Male (M)
abalones and infant (I) abalones. The second dataset will contain Female (F) abalones and
infant (I) abalones. Now use a linear regression model to compute the difference estimator
(average difference in diameter) for each dataset (taking infant as the reference in each
case).
a. 0.125, 0.118
b. 0.113, 0.128
c. 0.128, 0.113
d. 0.118, 0.125
Explanation: The b1 coefficient for each model is 0.113 and 0.128 respectively. See
summaries below (Lesson 5/ Video 3 / Slide 4 and Lesson 5/ Video 4/1-10)
[Show More]