Answered step by step
Verified Expert Solution
Link Copied!

Question

...
1 Approved Answer

Question 1 5 Points Consider two people, characterized by the following features. What is the Euclidean distance between them? Height Age 191 24 180 18

image text in transcribed
Question 1 5 Points Consider two people, characterized by the following features. What is the Euclidean distance between them? Height Age 191 24 180 18 A) SQRT((191-180)12 + (24-1872) = SQRT(121 + A 36) = 5QRT(157) = 12.53 B ABS(191-180) + ABS(24-18) - 17 SORT((191-24)2 + (180-18)\\2) = SQRT(16742+16242) = 232.66 D None of the other answers are correct. Question 5 Points According to the rating data in the training spreadsheet, what rating did user 2 give to song 138? (A) D 4 Question 3 5 Points For a user who resides in New York, what three values would you find in the following three columns user_LA, user_NY and user_M A 0, 1.0 B 1.0.0 1 0.0,1 Question 4 5 Points Exercise Instructions Open the Excel workbook. There are several tabs in thi workbook. Th k. The first two tabs contain historical user song ratings, randomly partitioned into training. data and test data, respectively. The third tab contain a partially populated template for generating k-NN predictions. The remaining tabs contain pairwise distance calculations between each test observation, and each training data observation, For example, the tab named "29-167" contains the pairwise distance calculations between test obs etween test observation 29-167, and every training data observation. On the k-NN predictions tab, you will find that three sets of predictions have been pre-populated for you These include i) a popularity-based predictor, i.e., the average rating that has been provided in the training data for the song ID in question (this is a common, intuitive approach, but it is also unsophisticated), ii) a continuous k-Nearest Neighbor prediction (i.e., kNN regression) and ill) a discrete k-Nearest Neighbor prediction (kNN classification). All three sets or predictions are provided for a set of 20 test provided for you to capture performance (error) metrics for all three approaches, including the continuous popularity and kNN based predictions (MAE, RMSE) and discrete (accuracy, error and a confusion matrix) prediction implementations. you adjust the value of K, you will see the predictions change, as well as the individual error values for each test observation. Question 5 (5 Points Vary the value of k from 1 through 10. Based on the ntinuous (kNN regression) prediction error measures, what is the optimal number of nearest neighbors employ? A B 2 1 4 Question 6 5 Points Based on the confusion matrix you observe when k = 5. calculate the prediction accuracy of the kNN classifier in cell 830 (Hint: overall accuracy is the proportion of the 20 predictions that were correct, le., on the diagonal of the confusion matrix). A 65% B 35 C 40% D We cannot answer this question without more information. Question 7 5 Points Vary the value of k from 1 through 9. Considering the discrete, kNN classifier's prediction accuracy, what is arest neighbors employ, i.e. what value of k maximizes the prediction accuracy? A 3 1 4 1 5 Question 8 5 Points Yes or no? Would either of these kNN predictive models be useful for generating recommendations ust been released, i which has not yet been rated by any users, or for a nev user, i.e., a user who has not yet entered any song ratings? (Hint: you can assume that you would have details on the new user or the new song). A ve B N Remember to click "Submit" on the lower right of this page to complete your assignment submission

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Statistics For The Behavioral Sciences

Authors: Frederick J Gravetter, Larry B. Wallnau

9th Edition

9781111830991

Students also viewed these General Management questions