This blog is about Simon, a young gifted mathematician and programmer, who had to move from Amsterdam to Antwerp to be able to study at the level that fits his talent, i.e. homeschool.

The notes above are from a couple days ago when Simon was trying to explain to me, where the formula for calculating similarity s = 1/1+c comes from. He linked it to the Euclidean distance formula and explained how Eucledean distance is related to the Pythagorean theorem.

The similarity formula comes from the Nearest Neighbour Recommendation Engine Coding Challenge by Daniel Shiffman that Simon was doing. the coding challenge was about creating a movie recommendation engine using the a “nearest neighbor” algorithm and thus calculating a similarity score between two data points.

One thought on “Nearest Neighbour Coding Challenge. Euclidean Distance.”

(Didn’t watch the entire coding challenge video, but guessing…) since there are ten variables that need to be compared in the coding challenge, it’s a bit like finding the distance between two points in a 10D (think 2D + eight more dimensions) space. The variables on the right side of the equation might be z, y, x, w, v, u, v, t, s, r in this case. But it still works the same, basically.

(Didn’t watch the entire coding challenge video, but guessing…) since there are ten variables that need to be compared in the coding challenge, it’s a bit like finding the distance between two points in a 10D (think 2D + eight more dimensions) space. The variables on the right side of the equation might be z, y, x, w, v, u, v, t, s, r in this case. But it still works the same, basically.

LikeLiked by 2 people