a. Make up a set of three records, each with two numeric predictor variables and one categorical
Fantastic news! We've Found the answer you've been seeking!
Question:
a. Make up a set of three records, each with two numeric predictor variables and one categorical target variable, so that the classification would not change regardless of the value of k.
b. Refer to Exercise a. Alter your data set so that the classification changes for different values of k.
c. Refer to Exercise b. Find the Euclidean distance between each pair of points. Using these points, verify that Euclidean distance is a true distance metric.
Note:
Topic: k-NEAREST NEIGHBORALGORITHM
Book: Discovering Knowledge in Data: An Introduction to Data Mining (Second Edition).
Related Book For
Elementary Statistics
ISBN: 978-0538733502
11th edition
Authors: Robert R. Johnson, Patricia J. Kuby
Posted Date: