Perform LDA on the training data in order to predict mpg01 using the variables that seemed most associated with mpg01 in (b). What is the test error of the model obtained?
1) Perform LDA on the training data in order to predict mpg01 using the variables that seemed most associated with mpg01 in (b). What is the test error of the model obtained?
2) Perform KNN on the training data, with several values of K, in order to predict mpg01. Use only the variables that seemed most associated with mpg01 in (b). What test errors do you obtain? Which value of K seems to perform the best on this data set?
In the summary document, include your answers to the questions with reasoning/explanation; if R is used to produce outputs, you need to include both the R script (copy & paste at the end of the document) and the critical output (as part of the answers or explanation) to show your work.
The K-NN (K-Nearest Neighbors) algorithm is based on comparing an unknown observation with its nearest known neighbors. In other words, the class or label of the unknown (unlabeled) observation is determined based on the class of its k neighbors (we define k) in the n-dimensional space (n is the number of attributes in the training dataset).
1
Requirements: to be answered
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
