Question: Use the iris data set that is in base R (no special packages are required). Perform KNN classification analysis. The dependent variable is Species. Use
Use the iris data set that is in "base" R (no special packages are required). Perform KNN classification analysis. The dependent variable is Species. Use all available independent variables and set.seed(111). Do not use cross validation on this problem. Center and scale the data in preprocessing, and set k to equal 9. Use new data to predict species. In the new data, Sepal.Length equals 4.3; Sepal.Width equals 3.0; Petal.Length equals 1.1; and Petal.Width equals 3.0. What is the probability of versicolor? Answers: a. 0.667 b. 0.916 c. 0.222 d. 0.333 e. 0.833
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
