Question

In: Advanced Math

Please show that answer step by step and explain clearly, thx!!!! 5. Does the accuracy of...

Please show that answer step by step and explain clearly, thx!!!!

5. Does the accuracy of a kNN classifier using the Euclidean distance change if you (a) translate the data

(b) scale the data (i.e., multiply the all the points by a constant), or (c) rotate the data? Explain.

Answer the same for a kNN classifier using Manhattan distance.

Solutions

Expert Solution

Euclidean distance is the ordinary distance between two point in Euclidean Space.

Euclidean Distance can be written between two points- point P(X1,Y1) and point Q(X2,Y2).

PQ=

a) If you translate the data there will be change in distance, and the kNN classifier's accuracy is the function of distance.There will be Change the accuracy.

b) If we scale the data means multiply by a constant it will not change the accuracy.

c) If we rotate the data the coordinates will get transformed thus changing the accuracy.

Manhatten Distance can be written between two points- point P(X1,Y1) and point Q(X2,Y2).

PQ=

a) If you translate the data there will be change in distance, and the kNN classifier's accuracy is the function of distance.There will be Change the accuracy.

b) If we scale the data means multiply by a constant it will not change the accuracy.

c) If we rotate the data the coordinates will get transformed thus changing the accuracy.


Related Solutions

I need a step by step way to solve this, not just an answer please. THX...
I need a step by step way to solve this, not just an answer please. THX On Jan 1, 2017 Sharpsburg, Inc. issued $400,000, ten-year, 10% bonds for $354,200. The bonds pay interest on June 30 and December 31. The market rate is 12%. What is the carrying value of the bonds at the end of the ten years. According to the book the answer should be $400k, NOT $355,452 like another Clegg member answered.
Show step by step the answer and write clearly Consider a steam power plant operating on...
Show step by step the answer and write clearly Consider a steam power plant operating on the ideal reheat Rankine cycle. The steam enters the high-pressure stage turbine at 15 MPa and 600 oC and the condenser pressure is 10 kPa. If the intermediate pressure is 4 MPa and the steam enters the low-pressure stage turbine at 600 oC, determine the following: (a) Enthalpy at the end of each process (b) Heat added (c) Heat rejected (d) Work of pump...
Please explain your answer clearly. Please show all the formulas and calculations (please do not use...
Please explain your answer clearly. Please show all the formulas and calculations (please do not use excel): Anchor Ltd paid $15,000 last quarter for a feasibility study regarding the demand for motorboat replacement parts which would require the purchase of a new metal-shaping machine. Today, they wish to conduct an analysis of the proposed project. The machine costs $250,000 and will operate for five years and tax rules allow the machine to be depreciated to zero over a five-year life....
Please, explain your answer clearly (step-by-step), so I can trace the output without using the Visual...
Please, explain your answer clearly (step-by-step), so I can trace the output without using the Visual Studio Program. Please, clearly describe how the mechanism of the loop works. The answers in bold. What is printed by the following code snippet? for (int i = 0; i < 5; i++) {    for (int j = 0; j <= i; j++)    {       cout << i << " ";    } } 0 1 2 3 4 5 0 0...
Please explain the steps to calculate the answer. thx! 1. Your investment has a 10% chance...
Please explain the steps to calculate the answer. thx! 1. Your investment has a 10% chance of earning a 30% rate of return, a 50% chance of earning a 10% rate of return and a 40% chance of losing 6%. What is your expected return on this investment? 2. Consider a T-bill with a rate of return of 5 percent and the following risky securities: Security A: E(r) = 0.15; Variance = 0.04 Security B: E(r) = 0.10; Variance =...
Please answer the problem below for all parts. Please show all work and write clearly. Thanks....
Please answer the problem below for all parts. Please show all work and write clearly. Thanks. (Apply total probability and Bayes’ rules) A large industrial firm uses three local motels to provide overnight accommodations for its clients. From past experience it is known that 22% of the clients are assigned rooms at the Ramada Inn, 50% at the Sheraton, and 28% at the Lakeview Motor Lodge. If the plumbing is faulty in 5% of the rooms at the Ramada Inn,...
Please read clearly and answer with explanation Thanks! B ) Show how each of the following...
Please read clearly and answer with explanation Thanks! B ) Show how each of the following would affect the U.S. balance of payments. Include a description of the debit and credit items, and in each case identify which specific account is affected (e.g., imports of goods and services, IM; exports of assets, EXA; and so on). a). The U.S. central bank purchases $500 million worth of U.S. Treasury bonds from a British financial firm and sells pound sterling foreign reserves.
Please show work and explain. Use the following to answer questions 5 and 6: On January...
Please show work and explain. Use the following to answer questions 5 and 6: On January 1, 2017, Nevada Corporation issued 8% bonds with a face value of $10,000,000. The bonds sold for $11,487,747. They mature in ten years and pay interest semiannually on June 30th and December 31st. The market rate of interest at the time the bonds were issued was 6%. Nevada uses the effective interest method for amortizing bond discounts and premiums. Total interest expense Nevada would...
**PLEASE ANSWER ALL SUB-QUESTIONS AND EXPLAIN STEP BY STEP. PLEASE INCLUDE FORMULAE IN CORRECT FORMAT NOT...
**PLEASE ANSWER ALL SUB-QUESTIONS AND EXPLAIN STEP BY STEP. PLEASE INCLUDE FORMULAE IN CORRECT FORMAT NOT COMPUTED VERSIONS, PLEASE INCLUDE NOMENCLATURE FOR ALL FORMULAE USED.THANK YOU!*** Discuss the following in detail: (1) Equimolar counterdiffusion and unimolecular diffusion in liquids (2) For diffusion in liquids between counterdiffusion and unimolecular diffusion which is more commonly observed? Why is this observed?
**PLEASE ANSWER ALL SUB-QUESTIONS AND EXPLAIN STEP BY STEP. PLEASE INCLUDE FORMULAE IN CORRECT FORMAT NOT...
**PLEASE ANSWER ALL SUB-QUESTIONS AND EXPLAIN STEP BY STEP. PLEASE INCLUDE FORMULAE IN CORRECT FORMAT NOT COMPUTED VERSIONS, PLEASE INCLUDE NOMENCLATURE FOR ALL FORMULAE USED.THANK YOU!*** Methyl alcohol and water are brought into contact in such a way that the two components form a layer 1.00 cm thick on top of a 3cm deep layer of water. Both components(water and methyl alcohol) are mutually diffusing into each other at 270C, there is no mixing of water and methyl alcohol and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT