Perform a k-nearest neighbors prediction

Assignment Help Data Structure & Algorithms
Reference no: EM131549226

Your task is to run k-nearest neighbors algorithm in XLMiner for both prediction and classification tasks describe below, and submit your answer with your XLMiner execution result files attached in your submission. Since the k-nearest neighbor algorithm can be used for both classification and prediction, there are two menus under XLMiner, Classify and Predict.

The file BostonHousing.xls contains information on over 500 census tracts in Boston, where for each tract 14 variable values are recorded. The last column (CAT.MEDV) was derived from MEDV, such that it obtains the value 1 if MEDV>30 and 0 otherwise. Consider the goal of predicting and classifying the median value (MEDV and CAT.MEDV) of a tract, given the information in the first 12 columns (input variables) in the column list. Partition the data into training (60%) and validation sets.

(For description of the column names in BostonHousing.xls, please make reference to Table 2.2 on page 33 of the textbook)

1. Under Predict menu in XLMiner, perform a k-nearest neighbors prediction with all the predictors from column A (CRIM) to column M (LSTAT) (excluding the CAT.MEDV, the CAT.MEDV column is the outcome variable for classification) for both training data set and validation data set, trying values of k from 1 to 15 to predict the value MEDV. What is the best k chosen? What does it mean? Also attach the execution result file including RMSE (Root Mean Square Errors) in your submission. (you can try run prediction with normalizing data and without normalizing data).

2. Under Classify menu in XLMiner, perform k-nearest neighbors classification with all the predictors from column A (CRIM) to column M (LSTAT) (excluding the MEDV, the MEDV column is the outcome variable for prediction) for both training data set and validation data set, and find the best K for validation data set, trying values of k from 1 to 15 to classify CAT.MEDV (make sure to normalize the data). Also attach the execution result file including confusion matrix, lift chart, and ROC chart in your submission.

3. Try different seed numbers for random partition to see if the K values achieved will be different.

Note:

1. The file BostonHousing.xls is posted along with Written Assignment #2B, and description of columns are given in the same data file.

2. The cloud based XLMiner is accessible

3. For the Windows based XLMiner, please check the XLMiner download instruction posted in the Discussion Forum in Blackboard.

Verified Expert

In this assignment we have studied use of xlminer . XLMINER is data mining tool which is used with excel.It is excellent tool for classification and predictions . Here we have studied Boston housing excel dataset for predictions and classification .

Reference no: EM131549226

Questions Cloud

Critically evaluate the sample size : Critically evaluate the sample size and critically evaluate the statements for meaningfulness - evaluate the statements for statistical significance.
Discuss how the information should be organized : Discuss how the information should be organized, and who will use the information for decision-making.
What is an estimate of growth company cost of equity : What is an estimate of Growth Company's cost of equity What is Growth Company's cost of debt?
How sensitive has the companys value been to changes : How sensitive has this company's value been to changes in macro-economic variables such as interest rates, currency movements, inflation, and the economy?
Perform a k-nearest neighbors prediction : Perform a k-nearest neighbors prediction with all the predictors - classification with all the predictors from column
Which of the given are tax-deductible for a corporation : Which of the following are tax-deductible for a corporation? Which of the following will likely result in a greater use of external funding?
Firm has five-year payback requirement : What is the project's payback period? If the firm has a 5-year payback requirement, should it accept the project? Explain.
Calculate tax paid on gain on disposal : Calculate tax paid on gain on disposal.
Discuss the ethical behavior for the success of a business : Ethical behavior is essential for the success of a business and often times ignored. It seems that no matter where we look today, the erosion of basic moral.

Reviews

inf1549226

7/11/2017 12:47:55 AM

attached are additional files for the assignment 24238712_1BostonHousing2.xls 24238712_2test2.docx

Write a Review

Data Structure & Algorithms Questions & Answers

  Find cost of sorting the relation

Suppose the cost of seek is 5milliseconds, while the disk transfer rate is 40 mgbytes per second. Find the cost of sorting the relation , in seconds, w/bb = 1 & w/ bb= 100.

  Maekawa''s algorithm

Maekawa's Algorithm is used to achieve mutual exclusion for 13 sites. Suppose the sites are labeled 1, 2, ..., 13. Find the request sets R1, R2, ... , R13. Suppose sites 1, 6, 12 want to enter a critical section ( CS ) and they have sent requests in ..

  Describe implementation of algorithm on simd computer

Describe an implementation of that algorithm on an SIMD computer where the processors are connected to form a linear array

  Describe an algorithm to play the game of nim using all of

describe an algorithm to play the game of nim using all of the three tools discussed in class pseudocode flowchart

  Write a pseudocode-function to count the number of items

Write a pseudocode/function that will delete from an unsorted linked list of integers the node that contains the smaller integer. Can you do this with a single traversal of the list.

  Write an algorithm to find the minimum in an array

Write an algorithm to find the minimum in an array.

  Using java, design and implement an api euclidean graph

Using Java, design and implement an API EuclideanGraph for graphs whose vertices are points in the plane that include coordinates.

  Prove that g has a unique minimum spanning tree

Suppose you are given a connected graph G, with edge costs that are all distinct. Prove that G has a unique minimum spanning tree

  Java program to find largest and smallest numbers

Create a Java program that will search a text document of strings representing numbers of type int and will write the largest and the smallest numbers to screen.

  Develop an online shopping system for the stakeholders

Online shopping becomes increasing popular nowadays. It brings many advantages to both sellers and buyers. Metro Shopping (MS) is planning to develop an online shopping system for the stakeholders.

  Create a table that depicts the runtime for arrays of length

Create a table that depicts the runtime for arrays of length 1 to 10. Would you expect the general runtime to be O(n), O(n2), O(n3), or some other function of n? Explain.

  Design a recursive algorithm to implement

Design a recursive algorithm to implement this specification. That is, the body of FindLast should contain a recursive call FindLast(A,..,..).

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