Question: Let ro (4,8) be a prediction (test) point for the midterm data. Let da, b) denote the Euclidean distance between two points a and b,
Let ro (4,8) be a prediction (test) point for the midterm data. Let da, b) denote the Euclidean distance between two points a and b, .e. if a-(a,a2am), b-(bi,b2,b), then: (a) Fill in the following table: (You may use R or similar to help you, but make sure that you have the three columns written on your finished homework!) hours slept night prior | d(z, zo) | Mg(zo)? |..(zo)? midterm score hours studied 6 74 6 10 90 12 6 10 where NK(ro) is the set of K-nearest neighbors to ro b) Compute f(o; K-2), the 2-nearest neighbor estimate for the test point ro (c) Compute (ro, K-4), the 4-nearest neighbor estimate for the test point ro
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
