Lecture 7 recommender systems 1

Hybrid Recommender Systems

Content-based filtering

Collaborative Filtering

Similarity measure used: Pearson correlation coefficient (covariance divided by standard deviation, or cosine but over values normalized by average): (1)

If $S_{xy} = $ items rated by both users x and y, then

Screenshot 2019-10-25 at 4.55.40 PM.png

(In the below we switched to an item-item filtering view, but same idea for user-user) In Practice, we estimate the rating $r_{xi}$ of item i for user x as the similarity weighted average:

where $b_{xi}$ is the baseline rating for $r_{xi}$. $b_{xi} = \mu + b_x + b_i$, where

Notes:

Evaluation for RecSys:

Take the original utility matrix, mask a part of it, and use it as a test dataset

Screenshot 2019-10-25 at 5.16.36 PM.png

Ratings metrics used:

Or, in the 0/1 model (implicit feedback, all values are 1 or 0).

Problems wiht Error Measures - Narrow focus on accuracy sometimes misses the point. SOmetimes we also care about

Other Notes

Time complexity of Collaborative Filtering:

Tip for RecSys:

(1) Note: We use Pearson instead of Cosine because treats missing ratings as ’negative’ (zero). Pearson is simply Cosine if the ratings are adjusted by the user’s average rating. This is simply the correlation normalized by stddevaitions, or the Pearson coefficient