Recently, I learned about the concept of using euclidean distance between one observation and every other…