Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We are interested in predicting which houses have median value greater than $30,000 using the variables in the Boston housing dataset . The dataset Boston

We are interested in predicting which houses have median value greater than $30,000 using the variables in theBoston housing dataset.

The datasetBostonwill be loaded into the environment once the following command is run:

library(MASS)

Please run the following code in R to learn more about the variables in the dataset:

?Boston

Create a new binary variableResultwith a value of 1 if themedv(median value of owner-occupied homes in $1000s) variable is greater than $30k and 0 otherwise.

Create logistic regression to model this question using all the variables in theBostondataset.

Please do not forget to remove themedvvariable while building the model. Use the information from the model to answer the following two questions. Select the closest answer.

How should one interpret the coefficient ofrm?

If rm increases by 1 unit, the natural log of the odds of the house median value being greater than $30,000 will increase by 2.3549, holding all other variables fixed.

If rm increases by 1 unit, the odds of the house median value being greater than $30,000 will increase by 2.3549, holding all other variables fixed.

If rm increases by 1 unit, the probability of the house median value being greater than $30,000 will increase by 2.3549, holding all other variables fixed.

If rm increases by 1 unit, the number of houses with median value greater than $30,000 will increase by 2.3549, holding all other variables fixed.

unanswered

What is the Sensitivity of the model? Please use 0.5 as threshold.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algebra And Trigonometry Enhanced With Graphing Utilities (Subscription)

Authors: Michael, Michael Sullivan III, Michael III Sullivan, Michael Sullivan 111, III Sullivan

6th Edition

0321849132, 9780321849137

More Books

Students also viewed these Mathematics questions