Question: ISOM 2 6 0 0 - Assignment 2 In this assignment, you are given a dataset about bodyfat measure collected from a clinic. As a
ISOM Assignment
In this assignment, you are given a dataset about bodyfat measure collected from a clinic. As
a nutritionist, you want to use regression model to check whether your patients are in danger
of high bodyfat. The data contains physical measurements of patients:
explantory variables: Age in year Weight in pounds Height in inches and BMI.
response variable: bodyfat in
Complete the tasks. Notice each of the missing code to be filled is a single line
command, more than one command line will be downgraded
Task : Compute the correlation matrix; which variable has the strongest correlation with
bodyfat? pts
Task : Split the data into train and test set by random use as the random seedstate
pts
Task : Using the train set, fit a simple regression model for bodyfat by the variable from
Taskthe one with max correlationpts
Task : Using the train set, fit a multiple regression model for bodyfat by all of the
explanatory variables ie age, weight, height and bmipts
Task : Multicollinearity is reflected from above. Does bmi cause the problem? Briefly
explain using your understanding about bmi. pts
Task : Using the train set, fit a multiple regression model for bodyfat by all of the
explanatory variables except bmi. pts
Task : Compute the RMSE for MLRpts
Task : Refit the better model from Task using the full dataset. pts
Task : Predict the body fat for a new patient using the final model from Task : age
weight pounds. Height inches, BMIpts
Task : by using residuals from final model outlier analysis, report those patients are in
danger ie of fat is much higher than what we expected from the final modelpts
After completion of all task and questions,
For Jupyter NotebookJupyter lab user: Once you finish implementing all the codes Please DO
NOT clear the outputs please export the notebook as HTML see instruction in next page and
submit both your notebook and HTML to Canvas.
For Google Colab user: Once you finish implementing all the codes Please DO NOT clear the
outputs use the link below to convert the ipynb file to HTML and submit both your notebook and
HTML to Canvas.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
