Jump to content

User:Rangi42/Mathematical

From Wikipedia, the free encyclopedia

I use this page for writing that includes a good deal of equations, since Wikipedia automatically typesets them in LaTeX. (Here is a LaTeX formatting guide.)

GroupLens

[edit]

Recommender systems take groups of users and items, where the users have rated some of the items, and recommend new items by predicting what rating the users would assign. Predictions can be based on the items' inherent characteristics (content-based) or on the ratings of other users (collaborative filtering).

A survey of collaborative filtering techniques describes a "memory-based" technique called GroupLens designed by GroupLens Research to recommend Usenet articles. Intuitively, it recommends items to you which are rated highly by users who tend to agree with you or rated lowly by users who tend to disagree with you.

Given a set of users , a set of items , and a sparse matrix of ratings , to predict the rating that the "active user" would give to the "active item" , we can try averaging all the other ratings by that user:

This formula is not very useful, since it predicts the same rating for every item. If other users have rated item more highly than , user will probably do so too.

This still does not account for differing tastes. Users whose ratings are correlated with the active user should be weighted more heavily; likewise, those whose ratings inversely correlate should be weighted negatively.

Here is the weight of user with respect to the active user . One way to weight them is to use the Pearson correlation coefficient:

The Pearson correlation coefficient is calculated based on all the items rated by both users. The adjusted cosine similarity can be used instead, which is based on all the items rated by either user; in this case, is taken to be 0 when user has not rated item . Doing this decreases the numerator of relative to the denominator, which "dampens" weights towards 0 when fewer rating pairs exist with which to estimate them.

Case amplification can be used to increase the significance of extreme ratings by dampening all ratings towards 0, but doing so more for those already close to 0:

Here is the case amplification power, typically 2.5.

The above system can be modified to calculate based on the ratings given by user to other items, rather than the ratings given to item by other users. In this case correlation would be measured between items rather than between users. This "item-based" collaborative filtering may be more accurate than "user-based" filtering when there are fewer items than users, such that the average item has more ratings than the average user.

Memory-based collaborative filtering does not account for item categories. Users' tastes may correlate with regard to one kind of item, anti-correlate with regard to another, and be uncorrelated with regard to a third. If the relevant categories are explicitly available to the recommender system, it can limit the set in the calculation of to those of the same kind as . For instance, a movie recommender system could separately test correlation by genre or by lead actor; however, it could not independently derive relevant categories like "movies where a scene is repeated via a time loop or multiple perspectives" (Groundhog Day, Primer, Run Lola Run, Source Code, Rashomon, Puella Magi Madoka Magica).

Divisibility by 3

[edit]

Proof that if is divisble by 3, so is the sum of its digits: