Question

SECTION B. This part is about using KNN algorithms. In this section we will consider the following points and we will use the

0 0
Add a comment Improve this question Transcribed image text
Answer #1
d1=(2,2)          
T =(3,3)            

dis=sqrt(1+1)
    =1.14

d2=(1,3)
T= (3,3)

dis=sqrt(4)
    =2


d3=(4,3)
T= (3,3)

dis=sqrt(1)
    =1


d4=(5,4)
T= (3,3)

dis=sqrt(4+1)
    =2.23



B1)1NN Algorithm

near point to T is d3
d3 lable is x
So Lable of T is x

B2)2NN Algorithm

near point to T is d3,d1
d3 lable is x
d1 lable is 0
So Lable of T is 50% 0 and 50% x


B3)3NN Algorithm

near point to T is d1,d2,d3
d3 lable is x
d1 lable is 0
d2 lable is 0
So Lable of T is 0
Add a comment
Know the answer?
Add Answer to:
SECTION B. This part is about using KNN algorithms. In this section we will consider the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part C. The following dataset has 6 instances where each instance has two attributes al and...

    Part C. The following dataset has 6 instances where each instance has two attributes al and a2 and a label x, o, or +: pl: (0,1,x) p2: (1,1, x) p3: (1,2,0) p4: (2,2,0) p5: (2, 3, +) p6: (3, 2, +) Cl. If the city block distance is used along with INN classi- fication, then what would be the class of a new point pnew: (2.4,3) (a) + c) x (b) o d) no decision can be made C2. If...

  • 1. Four objects are weighed 2 at a time on a spring balance. Denote the 4...

    1. Four objects are weighed 2 at a time on a spring balance. Denote the 4 unknown weights by B1,...,BA. Six observations are made and are expressed in these forms: Y = B: + 32 + €1. Y = B1 + B3 + €2, Y3 = B1 + B1 + €3, Y4 = 32 +33 + €4, Y = B2 + 4 + €5, Y6 = 33 +34 + €6. Assume that €, N (0,0%), i = 1,...,6. (a) Find...

  • 4.11.3 P4.11.3 Prove the claim at the end of the section about the Euclidean Algorithm and...

    4.11.3 P4.11.3 Prove the claim at the end of the section about the Euclidean Algorithm and Fibonaci numbers. Specifically, prove that if positive naturals a and b are each at most F(n), then the Euclidean Algorithm performs at most n -2 divisions. (You may assume that n >2) P4.11.4 Suppose we want to lay out a full undirected binary tree on an integrated circuit chip, wi 4.11.3 The Speed of the Euclidean Algorithm Here is a final problem from number...

  • Question 1 Consider the following Multiple Regression Model yı BoB1B2 + El, y2 BIB2E2 y3 B2Es,...

    Question 1 Consider the following Multiple Regression Model yı BoB1B2 + El, y2 BIB2E2 y3 B2Es, and y4 Bo+BI4 Suppose that & 's are independent and identically distributed N(0, o2 ) a) Write down the model in the matrix form b) Show that 2 2 1 X'X2 3 2 1.67 -1.33 0.33 (X'X) 1.67 Note that -1.33 -0.67 1 2 3 0.33 -0.67 0.67 c) Find unbiased estimators for Bo, Bi, and B2 given that y 3, y2 1, y3-...

  • Q1. Consider these four points: P [,,5| , P2 = 2], P3 = [H]. Plot these...

    Q1. Consider these four points: P [,,5| , P2 = 2], P3 = [H]. Plot these three points. (a) Find the Manhattan distance between Pi and P2 (b) Find the Manhattan distance between P1 and P3. (e) Find the Manhattan distance between P2 and P3. Q2. Consider the same points in Q1 and find the Euclidean distances between the points specified in parts (a), (b), and (e). In other words, you will be doing the above question again but now...

  • Suppose the initial conditions of the economy are characterized by the following equations. In this problem,...

    Suppose the initial conditions of the economy are characterized by the following equations. In this problem, we assume that prices are fixed at 1 (the price index is 100 and when we deflate, we use 1.00) so that nominal wealth equals real wealth. 1) C = a0 + a1 (Y - T) + a2 (WSM) + a3 (WRE) + a4 (CC) + a5 (r) 1') C = a0 + a1 (Y - 200) + a2 (10,000) + a3 (15,000) +...

  • Please Answer part A & B. The item we are working on is a new medication....

    Please Answer part A & B. The item we are working on is a new medication. Part I: Maximizing profits - the "Science": Your firm is a profit-maximizing monopolist - you are a small startup, this is your first product and you must determine pricing and decide whether to stay open in the short run. A. What price will you charge and what quantity will you produce in your first launch market? Price: Quantity: B. Should you stay open or...

  • PLEASE ROUND TO THE DECIMAL PLACES GIVEN. The following regression output was obtained from a study...

    PLEASE ROUND TO THE DECIMAL PLACES GIVEN. The following regression output was obtained from a study of architectural firms. The dependent variable is the total amount of fees in millions of dollars. Predictor Constant X2 Coefficient 9.387 0.232 -1.214 -0.273 0.642 -0.060 SE Coefficient 3.069 0.204 0.584 0.424 0.362 0.028 p-value 0.010 0.000 0.028 0.114 0.001 0.112 3.059 1. 137 -2.079 -0.644 1.773 -2.143 x3 X4 Analysis of Variance Source DF SS Regression 5 2,364.50 Residual Error 53 2,436.07 Total...

  • C5) If we have two planes i : AX + B y + Cy + D,...

    C5) If we have two planes i : AX + B y + Cy + D, = 0 and 1: A x + B x + C + D = Othat are parallel but not coincident, what must be true of the coefficients A1, A2, B1,B2, C1,C2, D1,D2? (2 marks)

  • (8) Any depressed quartic can be solved via Ferrari's algorithm. For simplicity, we consider a sp...

    (8) Any depressed quartic can be solved via Ferrari's algorithm. For simplicity, we consider a special case which is easier to deal with by assuming p= 0, Thus we seek to solve f(x) +r r o. The algorithm proceeds as follows (a) Rewrite the equation as b) Add 2r2m m2 to both sides. Here m is a constant we have not yet determined. Show this yields 2 + m)2mm2 (c) Now choose m so that the right hand side is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT