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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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