how to calculate similarity between users based on movie ratings Hi I am working on a movie recommendation system and I have to find alikeness between the main user and other users. For example, the main user watched 3 specific movies and rated them as 8,5,7. A user who happened to watch the same movies rated them as 8,2,3 and an another user of the same kind rated those movies as 7,6,6 and some other user only watched first two movies and he rated them as 8,5. Now the question is to which user the main user is close. I tried to come up with functions, but they are prone to fail. Can you help me?
Use euclidean distance
1
$d(p,q) = \sqrt{\sum_{i=1}^{n}(q_i - p_i)^2}$
and check main user vs all other users.