Describe your result include the error table

Assignment Help Computer Engineering
Reference no: EM132134660

How to solve this question by using R Language?

You can attach the Boston data set in the MASS package.

library(MASS)

For the Boston data set, we are interested in predicting whether a given suburb has a crime rate above or below the median given other information in the data.

(a) Conduct the logistic regression analysis using all the predictors. To do the prediction, use the first 405 rows as the training set and the rest as the test set. Describe your result, include the error table and report the test error rate.

(b) Employ the LDA method using all the predictors. To do the prediction, use the first 405 rows as the training set and the rest as the test set. Describe your result, include the error table and report the test error rate.

(c) Employ KNN method using all the predictors. To do the prediction, use the first 405 rows as the training set and the rest as the test set. Use 5 fold cross-validation to choose k by splitting the training set into 5 equal-sized subsets. What is the optimal value of k? Describe your result, include the error table and report the test error rate.

(d) Which method is the best? Logistic regression, LDA or KNN? Why?

(e) For the logistic regression in (a), perform forward and backward model selections

[Hint: you can use the step() function in R]. Repeat (a) using only the selected predictors. Compare the full model and selected model(s), which model is better and why?

Reference no: EM132134660

Questions Cloud

Find a set of operations that will leave precisely two liter : Find a set of operations that will leave precisely two liters of water in Four. Hint: Leverage a state-space search formulation of the water-jug puzzle.
Demonstrate the acquired essential skills - criminal justice : Need to demonstrate the acquired essential skills and knowledge in the subject matter - Criminal Justice
What is the running time complexity of your function : What is the running time complexity of your function ? Justify
How stooge works in the most simplified way : Can someone explain to me how Stooge works in the most simplified way. Because am having a hard time understanding it.
Describe your result include the error table : Employ the LDA method using all the predictors. To do the prediction, use the first 405 rows as the training set and the rest as the test set.
Calculate and interpret the regression equation : HA1011 Applied Quantitative Methods - Holmes nstitute - What is the probability that a random sample of 49 different one-hour shopping periods will yield
What do you think would be the best solution to the problem : Cryptographic techniques should be based on recognized algorithms that have not been disputed in their strength or use.
Develop a prototype interface design for the learning engine : You intend to implement an Internet-based "learning engine" that will enable you to deliver course content to a student.
How would you respond in a way that islegal or moral : You are a software engineer working at a large publicly-traded corporation, where a colleague invents a new kind of compiler.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd