Why is manhattan distance not used in knn machine learning algorithm to calculate the distance between nearest neighbors?



Why is manhattan distance not used in knn machine learning algorithm to calculate the distance betwe..

Answer / Krishn Mohan Pandey

The reason Manhattan distance is not typically used in the k-nearest neighbors (knn) algorithm is because it considers only the absolute differences along each feature dimension. This can lead to a less accurate calculation of similarity for data that exhibits skewness or non-linear patterns, as it ignores the direction of change in the features. Euclidean distance, which is more commonly used in knn, takes into account both the magnitude and direction of differences between points, resulting in a more suitable measure of similarity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AI Machine Learning Interview Questions

What is the benefit of naïve bayes mcq?

1 Answers  


Do you think that treating a categorical variable as a continuous variable would result in a better predictive model?

1 Answers  


In what areas Pattern Recognition is used?

1 Answers  


What are the classification problems in machine learning?

1 Answers  


Tell us what is the difference between supervised and unsupervised machine learning?

1 Answers  


Define a fourier transform?

1 Answers  


What is batch normalization?

1 Answers  


What are different types of Compilers and also define how to convert NFA to DFA?

1 Answers   Tavant Technologies, Verifone,


List down various approaches for machine learning?

1 Answers  


What are the last machine learning papers you've read?

1 Answers  


When will you use classification over regression?

1 Answers  


What’s your favorite algorithm, and can you explain it to me in less than a minute?

1 Answers  


Categories
  • AI Algorithms Interview Questions AI Algorithms (74)
  • AI Natural Language Processing Interview Questions AI Natural Language Processing (96)
  • AI Knowledge Representation Reasoning Interview Questions AI Knowledge Representation Reasoning (12)
  • AI Robotics Interview Questions AI Robotics (183)
  • AI Computer Vision Interview Questions AI Computer Vision (13)
  • AI Neural Networks Interview Questions AI Neural Networks (66)
  • AI Fuzzy Logic Interview Questions AI Fuzzy Logic (31)
  • AI Games Interview Questions AI Games (8)
  • AI Languages Interview Questions AI Languages (141)
  • AI Tools Interview Questions AI Tools (11)
  • AI Machine Learning Interview Questions AI Machine Learning (659)
  • Data Science Interview Questions Data Science (671)
  • Data Mining Interview Questions Data Mining (120)
  • AI Deep Learning Interview Questions AI Deep Learning (111)
  • Generative AI Interview Questions Generative AI (153)
  • AI Frameworks Libraries Interview Questions AI Frameworks Libraries (197)
  • AI Ethics Safety Interview Questions AI Ethics Safety (100)
  • AI Applications Interview Questions AI Applications (427)
  • AI General Interview Questions AI General (197)
  • AI AllOther Interview Questions AI AllOther (6)