ArticleslgStudy

science

Item-item collaborative filtering

Item-item collaborative filtering is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Item-item collaborative filtering rather than just read about it. In short: Item-item collaborative filtering, or item-based, or item-to-item, is a form of collaborative filtering for recommender systems based on the similarity between items calculated using people's ratings of those items. Item-item collaborative filtering was invented and used by Amazon.com in 1998.

Key takeaways

  • Item-item collaborative filtering belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Item-item collaborative filtering to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Item-item collaborative filtering from memory before moving on to harder problems.

Reference excerpt

Item-item collaborative filtering, or item-based, or item-to-item, is a form of collaborative filtering for recommender systems based on the similarity between items calculated using people's ratings of those items. Item-item collaborative filtering was invented and used by Amazon.com in 1998. It was first published in an academic conference in 2001. Earlier collaborative filtering systems based on rating similarity between users (known as user-user collaborative filtering) had several problems:

systems performed poorly when they had many items but comparatively few ratings computing similarities between all pairs of users was expensive user profiles changed quickly and the entire system model had to be recomputed Item-item models resolve these problems in systems that have more users than items. Item-item models use rating distributions per item, not per user. With more users than items, each item tends to have more ratings than each user, so an item's average rating usually doesn't change quickly. This leads to more stable rating distributions in the model, so the model doesn't have to be rebuilt as often. When users consume and then rate an item, that item's similar items are picked from the existing system model and added to the user's recommendations.

Method First, the system executes a model-building stage by finding the similarity between all pairs of items. This similarity function can take many forms, such as correlation between ratings or cosine of those rating vectors. As in user-user systems, similarity functions can use normalized ratings (correcting, for instance, for each user's average rating). Second, the system executes a recommendation stage. It uses the most similar items to a user's already-rated items to generate a list of recommendations. Usually this calculation is a weighted sum or linear regression. This form of recommendation is analogous to "people who rate item X highly, like you, also tend to rate item Y highly, and you haven't rated item Y yet, so you should try it".

Results Item-item collaborative filtering had less error than user-user collaborative filtering. In addition, its less-dynamic model was computed less often and stored in a smaller matrix, so item-item system performance was better than user-user systems.

Example Consider the following matrix :

If a user is interested in Article 1, which other item will be suggested to him by a system which is using Amazon's item-to-item algorithm ? The goal is to propose the user the article with highest cosinus value. This is how we do it :

Firstly, we convert the User-Article matrix into a binary one and we create a simple matrix for each article.

A1 = [1, 1, 0] A2 = [1, 1, 1] A3 = [0, 1, 0]

Secondly, we multiply matrix A1 by each matrix in order to find the dot product.

A1 * A2 = (1*1) + (1*1) + (0*1) = 2 A1 * A3 = (1*0) + (1*1) + (0*0) = 1

Thirdly, we find the norm of each vector.

||A1|| = 12+12+02 = 2 = 1.4142 ||A2|| = 12+12+12 = 3 = 1.7320 ||A3|| = 02+12+02 = 1 = 1

Fourthly, we calculate the cosine.

A1 and A2 = COS(θ) =A1∗A2||A1||∗||A2|| = 22∗3= 63 = 0.8165 A1 and A3 = COS(θ) =A1∗A3||A1||∗||A3|| = 12∗1= 12 = 22 = 0.7071

Conclusion: If a user is interested in article 1. The algorithm item-to-item will suggest article 2.

References

Worked examples

Example 1 — a first encounter with Item-item collaborative filtering

Start with the simplest possible case. Write down what Item-item collaborative filtering claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Item-item collaborative filtering before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Item-item collaborative filtering ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Item-item collaborative filtering

In research
Item-item collaborative filtering appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Item-item collaborative filtering in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Item-item collaborative filtering is common in secondary-school and first-year university syllabi. It links to neighbouring topics Recommender systems, so understanding it makes those chapters shorter.
In everyday life
Look for Item-item collaborative filtering outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Item-item collaborative filtering” →

How to study Item-item collaborative filtering in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Item-item collaborative filtering means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Item-item collaborative filtering out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Item-item collaborative filtering in simple terms?

Item-item collaborative filtering, or item-based, or item-to-item, is a form of collaborative filtering for recommender systems based on the similarity between items calculated using people's ratings of those items. Item-item collaborative filtering was invented and used by Amazon.com in 1998.

Why does Item-item collaborative filtering matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Item-item collaborative filtering?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Item-item collaborative filtering.

Tags

  • Recommender systems

Keep exploring