Question 2: Statistical Significance – 4 points a. Using the…

Question 2: Statistical Significance – 4 points a. Using the unstandardized data (trainData), build a new model using only the variables whose coefficients were found to be statistically significant at the 95% confidence level. Call it model2. Display the model summary. Using model2, interpret the coefficient of bp in the context of the data description. State any assumptions while interpreting the coefficient. (2 points) b. Perform a Partial F-test to compare the reduced model(model2) with the full model (model1) and interpret it at the 95% confidence level. Which one would you prefer? Is it good practice to select variables based on the statistical significance of individual coefficients? Why or why not? (2 points)

Instructions The R Markdown/Jupyter Notebook file includes t…

Instructions The R Markdown/Jupyter Notebook file includes the questions, the empty code chunk sections for your code, and the text blocks for your responses. Answer the questions below by completing the R Markdown/Jupyter Notebook file. You may make slight adjustments to get the file to knit/convert but otherwise keep the formatting the same. Once you’ve finished answering the questions, submit your responses in a single knitted file as HTML only. Partial credit may be given if your code is correct but your conclusion is incorrect or vice versa. Next Steps: 1. Save the .Rmd/.ipnyb in your working directory – the same directory where you will download the “diabetes_dataset_raw.csv” data file into. Having both files in the same directory will help in reading the “diabetes_dataset_raw.csv” file.  2. Read the question and create the code necessary within the code chunk section immediately below each question. Knitting this file will generate the output and insert it into the section below the code chunk.  3. Type your answer to the questions in the text block provided immediately after the response prompt.  4. Once you’ve finished answering all questions, knit this file and submit the knitted file as HTML on Canvas.  Mock Example Question  This will be the exam question – each question is already copied from Canvas and inserted into individual text blocks below, you do not need to copy/paste the questions from the online Canvas exam. “`{r}# Example code chunk area. Enter your code below the comment““Mock Response to Example Question:  This is the section where you type your written answers to the question. Depending on the question asked, your typed response may be a number, a list of variables, a few sentences, or a combination of these elements.  Ready? Let’s begin. We wish you the best of luck! Data Set diabetes_dataset_raw.csv Starter TemplatesYou may use either the R Markdown or Jupyter Notebook Starter Template: R Markdown Starter Template: Final Exam_Fall2024_starter_template_R-3.Rmd Jupyter Notebook Python Starter Template: Final Exam_Fall2024_starter_template_Python-.ipynb Jupyter Notebook R starter Template: Final_Exam_Fall2024_starter_template_R.ipynb

Question 4: Full Model Search – 9 points For this question,…

Question 4: Full Model Search – 9 points For this question, use the unstandardized data (trainData). i. How many models can be constructed using subsets drawn from the full set of variables? (2 points) ii. Compare all possible models using Mallow’s Cp. Display the variables included in the best model and the corresponding Mallow’s Cp value. (2 points) iii. Use the selected variables from Q4aii to fit another multiple linear regression model, call it best_model. Display the model summary. (2 points) b. Compare the models (model1, model2, forward_model, best_model, both_model) using Adjusted R^2 and AIC. Which model is preferred based on this? (3 points)

You witness one of you colleagues taking a small machine fro…

You witness one of you colleagues taking a small machine from the stock room and putting it into his bag. When you ask him why, he says he was going to practice how to use it at home and ask you not to tell anyone. Considering your ethical responsibilities, what should you do and why.