Recode the Binary Feature Private - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 

For this assignment you will be analyzing the College data frame included in the ISLR package, which contains 18 features for 777 U.S. colleges obtained from the 1995 issue of U.S. News and World Reports. The goal of this assignment is to become more familiar with linear and logistic regression. All analyses must be performed in R using tidyverse and other packages discussed in class. Provide all responses in the designated spaces in this Word document, then save it as a pdf and upload it to Canvas.

Recode the binary feature Private with the value 0 in place of No and the value 1 in place of Yes, and store it in a new data frame called College.recoded.

Provide code below:

Fit a multiple linear regression model to predict Private from the 17 other features. Print a summary of the model output to the console. Which feature is most statistically important in this model, and how do you know?

Provide code and console output below:

Provide answers to questions below:

Fit a simple linear regression model to predict Private from the most statistically important feature you identified in question 2. Print a summary of the model output to the console. Is the feature from question 2 still statistically important, and how do you know?

Provide code and console output below:

Provide answer to question below:

Visualize the simple linear regression model from question 3 on a scatterplot.

Provide code below:

Provide figure below:

Use the simple linear regression model from question 3 to predict classes for the training data. Add these predictions to the data frame College.recoded from question 1. Print a confusion matrix and an estimate of classification training accuracy to the console.

Provide code and console output below:

Perform the same operations as in question 5, except using the multiple linear regression model from question 2. Is the performance of the multiple linear regression model better, worse, or the same as the simple linear regression model? Justify your answer, and then provide a reason for your finding.

Provide code and console output below:

Provide answers to questions below:

Fit a multiple logistic regression model to predict Private from the 17 other features. Print a summary of the model output to the console. Which feature is most statistically important in this model, and how do you know?
Provide code and console output below:

Provide answers to questions below:

Fit a simple logistic regression model to predict Private from the most statistically important feature you identified in question 7. Print a summary of the model output to the console. Is the feature from question 7 still statistically important, and how do you know?

Provide code below:

Provide answers to questions below:

Visualize the simple logistic regression model from question 8 on a scatterplot.

Provide code below:

Provide figure below:

Use the simple logistic regression model from question 8 to predict classes for the training data. Add these predictions to the data frame College.recoded from question 1. Print a confusion matrix and an estimate of classification training accuracy to the console.

Provide code and console output below:

Perform the same operations as in question 10, except using the multiple logistic regression model from question 7. Is the performance of the multiple logistic regression model better, worse, or the same as the multiple linear regression model? Justify your answer, and then provide a reason for your finding.

Provide code and console output below:

Provide answers to questions below:

 

This IT Assignment has been solved by our IT experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.