Exercise 1 - Nearest Neighbors 2D for binary classification: We are given the following training examples in ((-3,5), +), ((-4, –2), +), ((2,1), -), ((4,3),–) Assume that we want to classify the points (-2,0) and (-1,5) using (a) . .a 1-nearest neighbor rule, and (b) a 3-nearest neighbor rule. Use the Euclidean distance (L2-norm) for calculating the distance between the points, in order to determine the k nearest neighbors to the query points given. What is the classification of these two points in each case?

College Algebra
7th Edition
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:James Stewart, Lothar Redlin, Saleem Watson
Chapter6: Matrices And Determinants
Section: Chapter Questions
Problem 4P
icon
Related questions
Question
Exercise 1 - Nearest Neighbors
We are given the following training examples in
2D for binary classification:
((-3,5), +), ((-4, –2), +), ((2,1), -), ((4,3),–)
Assume that we want to classify the points (-2,0) and (-1,5) using
(a).
.a 1-nearest neighbor rule, and
(b)
a 3-nearest neighbor rule.
Use the Euclidean distance (L2-norm) for calculating the distance between the points, in order to
determine the k nearest neighbors to the query points given. What is the classification of these two
points in each case?
Transcribed Image Text:Exercise 1 - Nearest Neighbors We are given the following training examples in 2D for binary classification: ((-3,5), +), ((-4, –2), +), ((2,1), -), ((4,3),–) Assume that we want to classify the points (-2,0) and (-1,5) using (a). .a 1-nearest neighbor rule, and (b) a 3-nearest neighbor rule. Use the Euclidean distance (L2-norm) for calculating the distance between the points, in order to determine the k nearest neighbors to the query points given. What is the classification of these two points in each case?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
College Algebra
College Algebra
Algebra
ISBN:
9781305115545
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra: Structure And Method, Book 1
Algebra: Structure And Method, Book 1
Algebra
ISBN:
9780395977224
Author:
Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:
McDougal Littell