Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Q3. [2 pt] (submit to this assignment item) An analyst in a company's sales department collected data (Customers_class_tr.csv) from sampled customers in the company's

Q3. [2 pt] (submit to this assignment item) An analyst in a company's sales department collected data

Q3. [2 pt] (submit to this assignment item) An analyst in a company's sales department collected data (Customers_class_tr.csv) from sampled customers in the company's customer database and a survey to build a prediction model for the levels of satisfaction of the new customers. For the prediction (classification), the analyst considers k-nearest neighbor methods for classification. Choose the model parameter k from a positive integer number, and make predictions for the new customers in (Customers_class_new.csv) after applying a standardization or normalization. Then, report the chosen k and the result by summarizing in the following table, each of whose element is for the count of the corresponding cases. Submit your R codes too. Predicted Satisfaction Level Very Dissatisfied Somewhat Dissatisfied Neutral Somewhat Satisfied Very Satisfied Actual Satisfaction Level Neutral Very Somewhat Dissatisfied Dissatisfied Somewhat Very Satisfied Satisfied Hint: Use table () function to summarize such counts from a data.frame for the actual and predicted categorical data.

Step by Step Solution

3.48 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

To solve this problem we can use the knearest ... 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_2

Step: 3

blur-text-image_3

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

Business Statistics For Contemporary Decision Making

Authors: Black Ken

8th Edition

978-1118494769, 1118800842, 1118494768, 9781118800843, 978-1118749647

More Books

Students explore these related Programming questions