User-User Collaborative Filtering
Consider the following ratings matrix. As the usual convention, each row represents a user and each column represents a movie.
Alice
5
4.5
5
2
1
Bob
4.5
4
2
2
Carol
2
3
1
5
5
Intutively, we see that Bob's ratings are similar to Alice's, thus he is likely to also like Star Wars.
"Math-Speak", Alice's and Bob's ratings are highly correlated.
Average Rating
Using average ratings has its limitations. It treats everyone's rating of the movie equally. For example, when using the average rating methodolgy, Bob's rating equally depends on Alice's and Carol's rating, even though he doesn't agree with Carol.
Following is the equation for average rating:
Weighted Rating
Weighted rating overcomes the limitation of average rating as it takes into account weightage of each rating. Following is the equation to calculate weighted rating of movie ​ by user .
Deviation
In recommender systems, rather than caring about absolute ratings, we care how much it deviates from a user's own average rating.
For example, if a user's average rating is 2.5, and the user rates a particular movie as a 5, it must be really good.
For a known rating ​ by user ​, deviation is given by the following equation:
​
Last updated