6.2 Recommendations Worth a Million: An Introduction to Clustering

Quick Question

The movie "The Godfather" is in the genres action, crime, and drama, and is defined by the vector: (0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0)

The movie "Titanic" is in the genres action, drama, and romance, and is defined by the vector: (0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0)

What is the distance between "The Godfather" and "Titanic", using euclidean distance?

Exercise 1

Explanation

The distance between these two movies is the square root of 2. They have a difference of 1 in two genres - crime and romance.